yolov3-polygon icon indicating copy to clipboard operation
yolov3-polygon copied to clipboard

About anchor generation

Open Sebastian-X opened this issue 3 years ago • 3 comments

Hello, thanks for your work. I want to generate preset anchors for my own dataset , and my current label files are like 'cls x1 y1 x2 y2 x3 y3 x4 y4 ', how should I reorganize them?

Sebastian-X avatar Oct 28 '20 07:10 Sebastian-X

First, generate anchor settings via utils/kmeans.py, and you'll obtain infomationfor anchor shapes in anchor-cluster.txt. Next copy them and paste into cfg/yolov3.cfg like this.

ming71 avatar Oct 29 '20 07:10 ming71

@ming71 My dataset does not have a center, width, height, and theta, it only has the 4 coordinates of the bounding box, how to run your kmeans.py on my dataset as it requires width and height.

HimanchalChandra avatar May 21 '21 20:05 HimanchalChandra

I have the same issue. I work with not rectangular bounding boxes. @HimanchalChandra did you find a solution for your dataset?

MaxPrinz avatar Feb 26 '22 20:02 MaxPrinz