Skip to content

Commit

Permalink
fix a bug of COCOdataset
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh0410 committed Mar 27, 2023
1 parent b1520f3 commit 265a02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def build_dataset(args, trans_config, device, is_train=False):
dataset = COCODataset(
img_size=args.img_size,
data_dir=data_dir,
image_set='train2017',
image_set='train2017' if is_train else 'val2017',
transform=train_transform,
trans_config=trans_config,
is_train=is_train
Expand Down

0 comments on commit 265a02b

Please sign in to comment.