judwhite/YoloTrain

Anchors

judwhite opened this issue · 0 comments

See also #2

Once labels have been created anchors can be calculated with:

darknet detector calc_anchors data\obj.data -num_of_clusters 9 -final_width 32 -final_heigh 32 -show

darknet detector calc_anchors data\obj.data -num_of_clusters 9 -width 608 -heigh 608 -show

Need clarity on what -num_of_clusters, -final_width, -final_heigh do (heigh is not a typo).

Currently known:

  • -num_of_clusters should not be increased if it doesn't help IoU (Intersection over Union).
  • final_width and -final_heigh may have to do with the distance between objects? May need to adjust down for closer objects - or may be self adjusting now? Output says width = 13 even when -final_width of 32 or 16 given, and anchors output is the same.
  • For YOLOv3, use -width and -heigh (not -height) from yolo.cfg. May need to round output to integers. See discussion at AlexeyAB/darknet#527.