Skip to content

Commit

Permalink
is_coco list fix (ultralytics#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhminhmr authored Jun 16, 2021
1 parent ca569c0 commit 2fb8aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test(data,
with open(data) as f:
data = yaml.safe_load(f)
check_dataset(data) # check
is_coco = data['val'].endswith('coco/val2017.txt') # COCO dataset
is_coco = type(data['val']) is str and data['val'].endswith('coco/val2017.txt') # COCO dataset
nc = 1 if single_cls else int(data['nc']) # number of classes
iouv = torch.linspace(0.5, 0.95, 10).to(device) # iou vector for [email protected]:0.95
niou = iouv.numel()
Expand Down

0 comments on commit 2fb8aa1

Please sign in to comment.