From c46503311c82f1ca56cd26050662cda12a201903 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 20 Aug 2022 17:17:35 +0200 Subject: [PATCH] Add `--save-hybrid` mAP warning (#9050) * Add `--save-hybrid` mAP warning Signed-off-by: Glenn Jocher * Update val.py Signed-off-by: Glenn Jocher Signed-off-by: Glenn Jocher --- val.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/val.py b/val.py index 7b4fab4c63be..fcaca889d7e2 100644 --- a/val.py +++ b/val.py @@ -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: