darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 416 -height 416
darknet.exe detector train data/voc.data cfg/yolov3-voc.cfg darknet53.conv.74
Should step 2 be performed after step 1?
in step 1. you calculate your anchors that can be used in step 2. for training.
you can add calculated anchors in: https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L610
https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L694
https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L778
you can perform step 2. without step 1. if you want to use default anchors for training.
Should step 2 be performed after step 1?
Yes.
Most helpful comment
in step 1. you calculate your anchors that can be used in step 2. for training.
you can add calculated anchors in: https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L610
https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L694
https://github.com/AlexeyAB/darknet/blob/6390a5a2ab61a0bdf6f1a9a6b4a739c16b36e0d7/cfg/yolov3-voc.cfg#L778
you can perform step 2. without step 1. if you want to use default anchors for training.