From 09ba6f6eec8f9eb245300dcf6dc119c448bf1199 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 27 May 2022 11:49:30 +0200 Subject: [PATCH] =?UTF-8?q?Add=20warning=20emoji=20=E2=9A=A0=EF=B8=8F=20on?= =?UTF-8?q?=20`--conf=20>=200.001`=20(#8005)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add warning emoji on `--conf > 0.001` * Update val.py --- val.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/val.py b/val.py index 42b0e18..dc7f28f 100644 --- a/val.py +++ b/val.py @@ -38,7 +38,7 @@ from models.common import DetectMultiBackend from utils.callbacks import Callbacks from utils.dataloaders import create_dataloader from utils.general import (LOGGER, check_dataset, check_img_size, check_requirements, check_yaml, - coco80_to_coco91_class, colorstr, increment_path, non_max_suppression, print_args, + coco80_to_coco91_class, colorstr, emojis, increment_path, non_max_suppression, print_args, scale_coords, xywh2xyxy, xyxy2xywh) from utils.metrics import ConfusionMatrix, ap_per_class, box_iou from utils.plots import output_to_target, plot_images, plot_val_study @@ -363,7 +363,7 @@ 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 will produce invalid mAP values.') + LOGGER.info(emojis(f'WARNING: confidence threshold {opt.conf_thres} > 0.001 produces invalid results ⚠️')) run(**vars(opt)) else: