Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 17, 2023
1 parent e925e2a commit ba3ef94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions references/segmentation/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def main(args):
else:
torch.backends.cudnn.benchmark = True

dataset, num_classes = get_dataset(args, "train", get_transform(True, args), args)
dataset_test, _ = get_dataset(args, "val", get_transform(False, args), args)
dataset, num_classes = get_dataset(args, is_train=True)
dataset_test, _ = get_dataset(args, is_train=False)

if args.distributed:
train_sampler = torch.utils.data.distributed.DistributedSampler(dataset)
Expand Down

0 comments on commit ba3ef94

Please sign in to comment.