Skip to content

Commit c465033

Browse files
glenn-jocherClay Januhowski
authored andcommitted
Add --save-hybrid mAP warning (ultralytics#9050)
* Add `--save-hybrid` mAP warning Signed-off-by: Glenn Jocher <[email protected]> * Update val.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
1 parent 1669c74 commit c465033

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

val.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ def main(opt):
365365
if opt.task in ('train', 'val', 'test'): # run normally
366366
if opt.conf_thres > 0.001: # https://github.com/ultralytics/yolov5/issues/1466
367367
LOGGER.info(f'WARNING: confidence threshold {opt.conf_thres} > 0.001 produces invalid results ⚠️')
368+
if opt.save_hybrid:
369+
LOGGER.info('WARNING: --save-hybrid will return high mAP from hybrid labels, not from predictions alone ⚠️')
368370
run(**vars(opt))
369371

370372
else:

0 commit comments

Comments
 (0)