-
-
Notifications
You must be signed in to change notification settings - Fork 15.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Differences between YOLOv5 models #7152
Comments
you can see the affect of depth_multiple and width_multiple in this function Line 243 in 7a2a118
|
@Averen19 yes the YOLOv5 models are all compound-scaled variants of the same architecture. I did this following the EfficientDet compound scaling model, minus the image scaling. |
Dear @glenn-jocher, I am doing similar experiments that also need to vary the model size. I see that what yolov5* models (e.g. yolov5n.yaml, yolov5s.yaml, etc.) differ are |
@bryanbo-cao yes of course. You can modify each model infinitely by removing/adding heads, layers, modules etc. That's the main idea behind the yaml files, to make them easy to modify and view. |
Yup. Suppose I am trying to design my own architecture in
or
But later after some investigations of the code and architecture, I realized that the
Anyway it was fixed. I liked the |
@bryanbo-cao yes that's right! You can delete some layers, but be careful that later layers that use skip connections from earlier in the model then must also be updated to the new layer index they are coming from. |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
@glenn-jocher |
@Robotatron To me it's just a scaling factor in network depth (# layers). You can try whatever you want YOLOv5 scales from the base network, depending on your customized settings, e.g. use case, hardware constraints of cloud/edge GPU, GPU memory, inference time etc. In general, the gain of detection performance (mAP) will diminish when the network goes deeper. |
@bryanbocao |
Search before asking
Question
What is the difference between the YOLOv5s, YOLOv5m, and YOLOv5l? I know that the mAP, number of layers and the depth_multiple and width_multiple in the yolov5.yaml files are different between , but is there any documentation that states what are the differences in layers?
Does the width and depth multiple affect the train.py file?
Im trying to do a research paper on the YOLOv5 models and would like to get any kind of help if possible.
Additional
No response
The text was updated successfully, but these errors were encountered: