Unverified 提交 f258cf8b authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Add `--save-hybrid` mAP warning (#9050)

* Add `--save-hybrid` mAP warning Signed-off-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com> * Update val.py Signed-off-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com>
上级 fc8758a4
...@@ -365,6 +365,8 @@ def main(opt): ...@@ -365,6 +365,8 @@ def main(opt):
if opt.task in ('train', 'val', 'test'): # run normally if opt.task in ('train', 'val', 'test'): # run normally
if opt.conf_thres > 0.001: # https://github.com/ultralytics/yolov5/issues/1466 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 ⚠️') 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)) run(**vars(opt))
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论