Selaa lähdekoodia

Add `--conf-thres` >> 0.001 warning (#5567)

Partially addresses invalid mAPs at higher confidence threshold issue https://github.com/ultralytics/yolov5/issues/1466.
modifyDataloader
Glenn Jocher GitHub 2 vuotta sitten
vanhempi
commit
0de4a9c35d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      val.py

+ 2
- 0
val.py Näytä tiedosto

@@ -330,6 +330,8 @@ def main(opt):
check_requirements(requirements=ROOT / 'requirements.txt', exclude=('tensorboard', 'thop'))

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 will produce invalid mAP values.')
run(**vars(opt))

elif opt.task == 'speed': # speed benchmarks

Loading…
Peruuta
Tallenna