Comments (1)
Hey there! 👋
It looks like you're noticing slight differences in Precision (P) and Recall (R) between your training (via train.py
) and validation (via val.py
) processes, although mAP scores remain consistent.
This variation is quite normal and can be attributed to a few factors, especially considering that P and R are more sensitive to the specifics of the dataset and detection thresholding than mAP scores. A slight change in model's confidence on certain samples can influence P and R without significantly affecting the mAP. It's also important to remember that during training, data augmentation and other regularization techniques might slightly alter the model's behavior on your training data compared to the validation phase, where your data is not augmented.
To ensure you're getting consistent evaluations, make sure to use the same dataset, model weights (like your best.pt
), and evaluation settings (e.g., confidence thresholds, NMS settings) in both training and validation scripts.
If the slight variation in P and R still persists, this is generally not a cause for concern if your mAP scores are stable. However, ensuring model consistency across every metric is key to understanding your model's performance fully.
Hope this helps clear things up! Keep exploring with YOLOv5, and don't hesitate to reach out if you have more questions. Happy detecting! 🚀
from yolov5.
Related Issues (20)
- Confusion Matrix wrong output HOT 2
- Zero recall and zero precision even after 100 epochs and pretrained weights HOT 2
- May I ask yolov5 how to port the method of calculating P, R, AP, MAP in val.py to adapt to detect.py, what code need to be packed? HOT 2
- CONVERT yolov5 TO onxx and openvino format HOT 4
- Inference model after convert to tflite file. HOT 16
- No detections on custom data training HOT 2
- Freeze detection on training HOT 2
- Why is the number of FP, TP calculated by val.py for a certain class different from the number predicted by detect.py and then calculated? HOT 1
- Saving Augmented Images HOT 1
- TensorRT is slower than pytorch HOT 7
- The accuracy of the .pt model will decrease after being converted to .engine model. HOT 4
- Guide on how to utilize 'Weighted Loss' method in yolov5 custom training HOT 2
- Extract information of Coordinates HOT 2
- ModuleNotFoundError: No module named 'models.yolo' on custom trained weight. Is it a bug? HOT 6
- Why 'targets' values from train.py are different from the ground truth annotation in txt files? HOT 3
- A question between yolov5s-p5 and the parameters imgsz HOT 2
- YOLOv5 Output Size Issue HOT 2
- What Should Be the Output Size of Predictions for Object Detection? HOT 3
- stuck training on NVIDIA H100 HOT 2
- Problem running inference on YOLOv5s for custom trained model using Python HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov5.