Skip to content

Commit

Permalink
Dont augment val-set
Browse files Browse the repository at this point in the history
  • Loading branch information
relativityhd committed Dec 24, 2024
1 parent 9c5b6f1 commit ef18e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darts-segmentation/src/darts_segmentation/training/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def setup(self, stage: Literal["fit", "validate", "test", "predict"] | None = No
train_idx, val_idx = list(kf.split(dataset))[self.current_fold]
self.train = Subset(dataset, train_idx)
self.val = Subset(dataset, val_idx)
self.val.dataset.transform = False
self.val.dataset.transform = None

def train_dataloader(self):
return DataLoader(self.train, batch_size=self.batch_size, num_workers=self.num_workers, shuffle=True)
Expand Down

0 comments on commit ef18e6c

Please sign in to comment.