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
How do I set the grid size when I use yolo v3? #1042
Comments
Any news on this? |
I solved this problem and have a example for this. I just modified cfg file. |
im interested , which parameter of the cfg file did you modify? |
If you give me your email address, I will send you some examples for that. It depends on your input size and the position of yolo layer in cfg file. But the grid size cannot be contorlled freely. It has some constraints. |
hey man i received your message, could you explain it a little more? i cant get to conclusion of what you did , i see you have 3 detection layers |
Hi there. My email is luke.igel@gmail.com. Could you reach out to me as well? I really appreciate it. |
Hi there. My email is saksham.vikram12@gmail.com.Could you please share the code with me as well. |
Could you send me a copy of modification of cfg and source code, my e-mail is: newforrestgump@163.com, thanks a lot! |
Could you send the file to me as well? dustink.ftw@gmail.com |
please send me also what change has to be done in cfg file. |
I'll be happy if you could send me as well an example on how to do that. |
Has anyone found a solution to this? please, I need to change the grid size to visualize its effect. |
@developer0hye Hey, kindly share the changes to .cfg file with me as well at ayush11shivali@gmail.com |
grid size depends on input image size and feature map size downsampled by convolution with stride or pooling. |
@developer0hye Hey man. Please SHARE your .cfg . |
@developer0hye. Can you send me tour .cfg file to vietnamican@gmail.com? Thank you!! |
Hey, can i get a copy of your cfg file to solaimanjawad@gmail.com? thanks! |
In my oppinion it's not possible to manually change the grid size (unless you change the source code "not sure about that") to do it you need to change the input size (width and height) in cfg file so YOLO will automaticaly output a different grid size to perform detection. |
It's Completely easy. Just by changing width and height of input size, you could change grid size. For example in Grid size: 7*7
Grid size: 5*7
As you see, 11th layer shows grid size and 0 layer shows size of input to network. |
Thank you, u save me 👍 🙋🏻♂️ |
@blackCmd After i investigate, i relize that a cell has size 32x32, so if you want to change the grid cell, you have to change the size of input. |
just set input size and it will automatically scale based on magic number 32 |
The way I solved this was to use YoloV3 tiny configuration. https://github.com/pjreddie/darknet/blob/master/cfg/yolov3-tiny.cfg I believe that the grid size is indirectly sized by your anchor boxes on the yolo layer in conjunction with the size of your input layer. |
Please send it |
I can`t find a way to set the grid size in "yolov3.cfg".
The text was updated successfully, but these errors were encountered: