darts_segmentation.training.DartsDatasetZarr¶
Bases: torch.utils.data.Dataset
Source code in darts-segmentation/src/darts_segmentation/training/data.py
indices
instance-attribute
¶
indices = (
darts_segmentation.training.data.DartsDatasetZarr(
indices
)
if darts_segmentation.training.data.DartsDatasetZarr(
indices
)
is not None
else list(
range(
darts_segmentation.training.data.DartsDatasetZarr(
self
)
.zroot["x"]
.shape[0]
)
)
)
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.DartsDatasetZarr(
augment
)
else None
)