darts_segmentation.training.DartsDataset¶
Bases: torch.utils.data.Dataset
Source code in darts-segmentation/src/darts_segmentation/training/data.py
transform
instance-attribute
¶
transform = (
albumentations.Compose(
[
albumentations.HorizontalFlip(),
albumentations.VerticalFlip(),
albumentations.RandomRotate90(),
albumentations.RandomBrightnessContrast(),
albumentations.MultiplicativeNoise(
per_channel=True, elementwise=True
),
]
)
if darts_segmentation.training.data.DartsDataset(
augment
)
else None
)
x_files
instance-attribute
¶
x_files = sorted(
darts_segmentation.training.data.DartsDataset(data_dir)
/ "x".glob("*.pt")
)
y_files
instance-attribute
¶
y_files = sorted(
darts_segmentation.training.data.DartsDataset(data_dir)
/ "y".glob("*.pt")
)