AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.66k stars 7.96k forks source link

YOLOv3 grid question #2968

Open doobidoob opened 5 years ago

doobidoob commented 5 years ago

Hi AlexeyAB! Thanks for your support. I have a question about YOLOv3.

Is YOLOv3 able to detect only one object in each grid cell? (I knew YOLO and YOLOv2 can detect only one object in each grid cell.)

AlexeyAB commented 5 years ago

@doobidoob Hi,

Yolo can detect number of objects in each grid cell = number of anchors in this cell.

So default yolov3-spp.cfg model can detect 22743 objects on one image.

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

for training with a large number of objects in each image, add the parameter max=200 or higher value in the last [yolo]-layer or [region]-layer in your cfg-file (the global maximum number of objects that can be detected by YoloV3 is 0,0615234375(widthheight) where are width and height are parameters from [net] section in cfg-file)

doobidoob commented 5 years ago

@AlexeyAB Thank you very much!