diff --git a/ultralytics/data/dataset.py b/ultralytics/data/dataset.py index 6d62039..041d8eb 100644 --- a/ultralytics/data/dataset.py +++ b/ultralytics/data/dataset.py @@ -145,6 +145,7 @@ class YOLODataset(BaseDataset): # TODO: use hyp config to set all these augmentations def build_transforms(self, hyp=None): """Builds and appends transforms to the list.""" + self.augment = False if self.augment: hyp.mosaic = hyp.mosaic if self.augment and not self.rect else 0.0 hyp.mixup = hyp.mixup if self.augment and not self.rect else 0.0