Update dataset/definition_dataset.py
Browse files
dataset/definition_dataset.py
CHANGED
|
@@ -29,7 +29,7 @@ class SemanticSegmentationDatasetFusion(Dataset):
|
|
| 29 |
- transforms applied to images (ToTensor + Normalize) and mask -> LongTensor
|
| 30 |
- optional JOINT augmentations applied consistently to HR/LR + masks
|
| 31 |
"""
|
| 32 |
-
def __init__(self, image_dir: Path, mask_dir: Path, transform: Optional[transforms.Compose] = None):
|
| 33 |
self.image_dir = Path(image_dir)
|
| 34 |
self.mask_dir = Path(mask_dir)
|
| 35 |
self.image_filenames = sorted(os.listdir(self.image_dir))
|
|
|
|
| 29 |
- transforms applied to images (ToTensor + Normalize) and mask -> LongTensor
|
| 30 |
- optional JOINT augmentations applied consistently to HR/LR + masks
|
| 31 |
"""
|
| 32 |
+
def __init__(self, image_dir: Path, mask_dir: Path, transform: Optional[transforms.Compose] = None, augment = None):
|
| 33 |
self.image_dir = Path(image_dir)
|
| 34 |
self.mask_dir = Path(mask_dir)
|
| 35 |
self.image_filenames = sorted(os.listdir(self.image_dir))
|