The YOLO authors used k-means clustering to select the number of and shapes of anchor boxes. There are many places where the approach is discussed out on the interweb. There is also one here:
The YOLO authors used k-means clustering to select the number of and shapes of anchor boxes. There are many places where the approach is discussed out on the interweb. There is also one here: