motokimura / PyTorch_Gaussian_YOLOv3

PyTorch implementation of Gaussian YOLOv3 (including training code for COCO dataset)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How did you get the anchors on COCO?

sisrfeng opened this issue · comments

ANCHORS in your code is
: [[10, 13], [16, 30], [33, 23],
[30, 61], [62, 45], [59, 119],
[116, 90], [156, 198], [373, 326]]

Would you mind telling me how you get the anchors or sharing the code? I want to get anchors on another dataset.
Many thanks!

I just used the anchors defined in this repo I forked.
https://github.com/DeNA/PyTorch_YOLOv3

Maybe this blog post is what you need.
https://lars76.github.io/object-detection/k-means-anchor-boxes/
It provides detailed explanation and python codes to compute anchors from annotated bounding boxes.