Skip to content

Commit

Permalink
Fix inconsistent NMS IoU value for COCO (#3934)
Browse files Browse the repository at this point in the history
Evaluation of 'best' and 'last' models will use the same params as the evaluation during the training phase. 
This PR fixes ultralytics/yolov5#3907
  • Loading branch information
SecretStar112 committed Jul 8, 2021
1 parent e893a91 commit 828cda1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,6 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
results, _, _ = test.run(data_dict,
batch_size=batch_size // WORLD_SIZE * 2,
imgsz=imgsz_test,
conf_thres=0.001,
iou_thres=0.7,
model=attempt_load(m, device).half(),
single_cls=single_cls,
dataloader=testloader,
Expand Down

0 comments on commit 828cda1

Please sign in to comment.