ultralytics / ultralytics

Ultralytics YOLO11 🚀
https://docs.ultralytics.com
GNU Affero General Public License v3.0
31.85k stars 6.1k forks source link

为什么ultralytics的yolov5和yolov5-master的训练结果不同 #17239

Open lqh964165950 opened 2 days ago

lqh964165950 commented 2 days ago

Search before asking

Question

为什么ultralytics的yolov5和yolov5-master的训练结果不同,希望解答一下

Additional

No response

UltralyticsAssistant commented 2 days ago

👋 Hello @lqh964165950, thank you for your interest in Ultralytics 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. It seems you are comparing the results of ultralytics/yolov5 with yolov5-master. It would be helpful if you could give us more context or an example of how you are conducting these experiments and the parameters used.

For custom training ❓ Questions, ensure you provide as much detail as possible, including dataset examples and training logs. Also, verify you are following our Tips for Best Training Results.

Join the Ultralytics community where it suits you best. For real-time chat, head to Discord 🎧. Prefer in-depth discussions? Check out Discourse. Or dive into threads on our Subreddit to share knowledge with the community.

Upgrade

Upgrade to the latest ultralytics package, including all requirements, in a Python>=3.8 environment with PyTorch>=1.8 to verify your issue is not already resolved in the latest version:

pip install -U ultralytics

Environments

YOLO may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python, and PyTorch preinstalled):

Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

Please note that this is an automated response, and an Ultralytics engineer will assist you soon.

Y-T-G commented 2 days ago

ultralytics YOLOv5 is different from the YOLOv5 in the yolov5 repository. It's anchor-free while the version in that repository is anchor-based

lqh964165950 commented 2 days ago

论文对比试验是使用哪个版本的呢?

Y-T-G commented 2 days ago

yolov5 refers to the one in yolov5 repo. The one in ultralytics is called yolov5u.

lqh964165950 commented 2 days ago

了解了,谢谢您的解答

lqh964165950 commented 2 days ago

验证时batchsize会影响精度吗?为什么训练结束后的评估结果与运行val.py的不一致,但都是在验证集上进行评估的?

Y-T-G commented 2 days ago

It will affect it slightly. You can run with rect=False to avoid that.