Skip to content

Commit

Permalink
Shuffle train dataloader (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
samet-akcay authored Dec 21, 2021
1 parent f14d195 commit 5c9f9a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions anomalib/data/mvtec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 5c9f9a9

Please sign in to comment.