Skip to content
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 many objects are detectable in Yolo? #3896

Closed
Knuust opened this issue Sep 10, 2019 · 5 comments
Closed

How many objects are detectable in Yolo? #3896

Knuust opened this issue Sep 10, 2019 · 5 comments

Comments

@Knuust
Copy link

Knuust commented Sep 10, 2019

Hello,
I read a lot of comments about the process of detecting objects with Yolo, but I still have some questions concerning the detection process:
Yolov3 divides the input image in 13x13 parts and on each part, yolo checks for anchor-points, right?
So when you have 9 anchors in your .cfg-file, you can detext up to 13x13x9 objects?

Thanks for your help!

Knust

@AlexeyAB
Copy link
Owner

How many objects are detectable in Yolo?

https://github.com/AlexeyAB/darknet#how-to-improve-object-detection

the global maximum number of objects that can be detected by YoloV3 is 0,0615234375*(width*height)

@Knuust
Copy link
Author

Knuust commented Sep 10, 2019

Ok, thank you very much!
But it seems, I didn't understand the whole process at all.
Can you give me a hint where to find a good explanation of the yolov3 net? I just find questions to specific topics.

@gnefihs
Copy link

gnefihs commented Sep 12, 2019

I assume you're asking about YOLOv3. Then this diagram might be helpful.

image
source: https://www.cyberailab.com/home/a-closer-look-at-yolov3

In short, predictions are made at 3 scales, 1/8, 1/16 and 1/32 of the original dimension. For input size of 416x416, it'll be 52x52, 26x26, 13x13. For every grid in each scale, 3 anchor boxes are predicted. There are 9 anchor boxes given, because there are 3 for every scale.

So the total no. of prediction is (52x52 + 26x26 + 13x13)*3 = 10647. AlexeyAB's formula will give you the same number.

@Knuust Knuust closed this as completed Sep 19, 2019
@Knuust
Copy link
Author

Knuust commented Sep 19, 2019

thank you very much. that helped a lot

@SpongeBab
Copy link

@gnefihs have the chart about yolov4 like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants