Skip to content

Commit

Permalink
Add --save-hybrid mAP warning (ultralytics#9050)
Browse files Browse the repository at this point in the history
* Add `--save-hybrid` mAP warning

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update val.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
glenn-jocher authored and Clay Januhowski committed Sep 8, 2022
1 parent 1669c74 commit c465033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions val.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ def main(opt):
if opt.task in ('train', 'val', 'test'): # run normally
if opt.conf_thres > 0.001: # https://github.com/ultralytics/yolov5/issues/1466
LOGGER.info(f'WARNING: confidence threshold {opt.conf_thres} > 0.001 produces invalid results ⚠️')
if opt.save_hybrid:
LOGGER.info('WARNING: --save-hybrid will return high mAP from hybrid labels, not from predictions alone ⚠️')
run(**vars(opt))

else:
Expand Down

0 comments on commit c465033

Please sign in to comment.