Skip to content

Commit

Permalink
fix warning typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shensheng272 authored Sep 2, 2022
1 parent 803afca commit 130c870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yolov6/core/evaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def check_thres(conf_thres, iou_thres, task):
'''Check whether confidence and iou threshold are best for task val/speed'''
if task != 'train':
if task == 'val':
if conf_thres > 0.01:
LOGGER.warning(f'The best conf_thresh when evaluate the model is less than 0.01, while you set it to: {conf_thres}')
if conf_thres > 0.03:
LOGGER.warning(f'The best conf_thresh when evaluate the model is less than 0.03, while you set it to: {conf_thres}')
if iou_thres != 0.65:
LOGGER.warning(f'The best iou_thresh when evaluate the model is 0.65, while you set it to: {iou_thres}')
if task == 'speed' and conf_thres < 0.25:
Expand Down

0 comments on commit 130c870

Please sign in to comment.