Closed sammilei closed 3 years ago
Hello @sammilei, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.
If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com.
Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7
. To install run:
$ pip install -r requirements.txt
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
@sammilei P and R are computed at conf 0.1: https://github.com/ultralytics/yolov5/blob/7aeef2dca518916a13b7e516505a87c2e77155fd/utils/metrics.py#L41
mAP is computed at conf 0.001: https://github.com/ultralytics/yolov5/blob/7aeef2dca518916a13b7e516505a87c2e77155fd/test.py#L287
I see what happened. My bad. Thanks, @glenn-jocher for your kind reminder!
I think this might be also related to this issue https://github.com/ultralytics/yolov5/issues/1563, since I see u flagged save-txt in zour command ....
❔Question
Hi, I am fine-tuning a single class model with yolov5l.pt and confused by the high mAP at all the testing sets. The model did not perform perfectly on its validation set but it shows perfect scores as 1 or .0999 at mAP.5 and mAP.5:0.95 at test sets even if precision is not 1. Also, the label was almost perfect too. A lot of the time, they perfectly overlay with my labels.
Additional context
one test result: !python test.py --weights "/content/yolov5/runs/train/exp/weights/best.pt" --data /content/ms.yaml --img 416 --task test --save-txt --verbose --conf-thres 0.5 --save-conf
training plot:
Does anyone know what happened? Anything I did wrong?