Difference between 'conf-thresh' and 'iou-thresh' #7906
-
Hello,
In val.py In detect.py |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
@aonsafdar 👋 Hello, thanks for asking about the differences between train.py, detect.py and val.py in YOLOv5 🚀. These 3 files are designed for different purposes and utilize different dataloaders with different settings. train.py dataloaders are designed for a speed-accuracy compromise, val.py is designed to obtain the best mAP on a validation dataset, and detect.py is designed for best real-world inference results. A few important aspects of each: train.py
val.py
detect.py
YOLOv5 PyTorch Hub InferenceYOLOv5 PyTorch Hub models are Lines 276 to 282 in 7ee5aed
Good luck 🍀 and let us know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
@aonsafdar 👋 Hello, thanks for asking about the differences between train.py, detect.py and val.py in YOLOv5 🚀.
These 3 files are designed for different purposes and utilize different dataloaders with different settings. train.py dataloaders are designed for a speed-accuracy compromise, val.py is designed to obtain the best mAP on a validation dataset, and detect.py is designed for best real-world inference results. A few important aspects of each:
train.py
yolov5/train.py
Lines 210 to 213 in 7ee5aed