diff --git a/anomalib/data/mvtec.py b/anomalib/data/mvtec.py index 953c60e178..1bfe3fe200 100644 --- a/anomalib/data/mvtec.py +++ b/anomalib/data/mvtec.py @@ -460,9 +460,7 @@ def setup(self, stage: Optional[str] = None) -> None: def train_dataloader(self) -> DataLoader: """Get train dataloader.""" - return DataLoader( - self.train_data, shuffle=False, batch_size=self.train_batch_size, num_workers=self.num_workers - ) + return DataLoader(self.train_data, shuffle=True, batch_size=self.train_batch_size, num_workers=self.num_workers) def val_dataloader(self) -> DataLoader: """Get validation dataloader."""