added flipping x and y for dataset loader

This commit is contained in:
Jaret Burkett committed 2023-09-17 08:42:54 -06:00
1 parent c698837241
commit 181f237a7b
5 files changed
+51 -7

No files matched your search

@@ -47,6 +47,8 @@ class FileItemDTO(LatentCachingFileItemDTOMixin, CaptionProcessingDTOMixin, Imag
self.crop_y: int = kwargs.get('crop_y', 0)
self.crop_width: int = kwargs.get('crop_width', self.scale_to_width)
self.crop_height: int = kwargs.get('crop_height', self.scale_to_height)
self.flip_x: bool = kwargs.get('flip_x', False)
self.flip_y: bool = kwargs.get('flip_x', False)
self.network_weight: float = self.dataset_config.network_weight
self.is_reg = self.dataset_config.is_reg