You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
Recently I'm working on some head detection works, and to deploy the model on devices with weak computation ability, I used a yoloface-500k model and tried to train it in yolov5 framework. The model yaml is defined as followed:
The arrows in the file just denote the change on size I have made in this layer from a previous version, which is not important in this issue.
My problem is, As I defined in layer 27, 33 and 39, these three layers should output a 18 channel feature map, respectively. However, in my experiment, where I run detect.py with the .pt weight file I get after training, it turns out that the output of these layers are all 24 channels:
Which is a similar one except that the stride of some of the convolution layers are different with that in the latter version. By the way, I made these changes only to reduce the size of feature maps from 80, 160, 320 to 40, 80, 160 in order to have a better performance on the edge device. In this version, on the contrary, it outputs three feature maps with channel 18 each.
I wonder what makes the output channel different? It seems that the yolov3 framework has modified the last several layers of the new model automatically... Since the output channel of last four layers, in my design is 18, 18, 24, 24. However in the first txt file I showed above, it's 24, 24, 24, 24. Why does this change take place?
Additional
No response
The text was updated successfully, but these errors were encountered:
👋 Hello @tobymuller233, thank you for reaching out to us with your concern about the feature map channels in YOLOv5! 🚀 This is an automated response to acknowledge your issue and provide some guidance, and an Ultralytics engineer will be with you shortly to assist further.
For your configuration and layer setup, it's crucial to ensure compatibility and consistency across layers. It seems there might be a discrepancy between the defined model and the output you're observing when running detect.py. To help us investigate further, could you please provide a minimum reproducible example (MRE)? This example should include any relevant scripts, configurations, and the complete command you are using.
In the meantime, you might find our Tutorials helpful, which cover various aspects of customizing and troubleshooting YOLOv5 models, including insights into Custom Data Training and similar issues.
Quick Check
Ensure you meet the following requirements and setup steps:
@tobymuller233 thank you for identifying the issue with the anchor settings in your hyp.yaml. If you have any further questions or need assistance, feel free to ask!
Search before asking
Question
Recently I'm working on some head detection works, and to deploy the model on devices with weak computation ability, I used a yoloface-500k model and tried to train it in yolov5 framework. The model yaml is defined as followed:
The arrows in the file just denote the change on size I have made in this layer from a previous version, which is not important in this issue.
My problem is, As I defined in layer 27, 33 and 39, these three layers should output a 18 channel feature map, respectively. However, in my experiment, where I run
detect.py
with the .pt weight file I get after training, it turns out that the output of these layers are all 24 channels:What makes it more weird is that, in my previous version, just as I mentioned above,
Which is a similar one except that the stride of some of the convolution layers are different with that in the latter version. By the way, I made these changes only to reduce the size of feature maps from 80, 160, 320 to 40, 80, 160 in order to have a better performance on the edge device. In this version, on the contrary, it outputs three feature maps with channel 18 each.
I wonder what makes the output channel different? It seems that the yolov3 framework has modified the last several layers of the new model automatically... Since the output channel of last four layers, in my design is 18, 18, 24, 24. However in the first txt file I showed above, it's 24, 24, 24, 24. Why does this change take place?
Additional
No response
The text was updated successfully, but these errors were encountered: