Skip to content

Commit

Permalink
Update test.py with yaml.SafeLoader (ultralytics#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-Artist committed Jan 18, 2021
1 parent ebe280e commit e5d19d9
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 @@ -68,7 +68,7 @@ def test(data,
model.eval()
is_coco = data.endswith('coco.yaml') # is COCO dataset
with open(data) as f:
data = yaml.load(f, Loader=yaml.FullLoader) # model dict
data = yaml.load(f, Loader=yaml.SafeLoader) # model dict
check_dataset(data) # check
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 mAP@0.5:0.95
Expand Down

0 comments on commit e5d19d9

Please sign in to comment.