darknet_scripts icon indicating copy to clipboard operation
darknet_scripts copied to clipboard

How to choise value of num_clusters ?

Open liumusicforever opened this issue 8 years ago • 2 comments

How to choise value of num_clusters ? what it mean ? Thanks!!

liumusicforever avatar Jun 21 '17 09:06 liumusicforever

It is number of anchors. Yolo-voc uses 5 anchors (num = 5) https://github.com/AlexeyAB/darknet/blob/master/cfg/yolo-voc.cfg#L246

For the case of VOC, author choose 5 experimentally (refer to figure 2 in the paper) https://pjreddie.com/media/files/papers/YOLO9000.pdf

Depending on your case you can set 1, 3, 5 anchors and see which setting works best

Jumabek avatar Jun 21 '17 10:06 Jumabek

thanks @Jumabek! Just to be sure and for better comprehension, why are there set 5 anchors on line 246 when on Line 242 10 Anchors are being used? Edit: got it, for every anchor 2 coordinates

4F2E4A2E avatar Sep 27 '17 02:09 4F2E4A2E