Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anchors in your code #8

Open
KennithLi opened this issue Nov 2, 2020 · 1 comment
Open

anchors in your code #8

KennithLi opened this issue Nov 2, 2020 · 1 comment

Comments

@KennithLi
Copy link

KennithLi commented Nov 2, 2020

Hi, thank you for your work! I want to know how you get your anchors for the datasets? Could you share the code or anything else? I did not find any detailed explainations in your paper. Only a little information is shown in model/mcn_model.py line 451:

anchor_mask = [[6,7,8], [3,4,5], [0,1,2]] if num_layers==3 else [[0,1,2]] ##due to deleting 2 scales  change [[6,7,8], [3,4,5], [0,1,2]] to [[0,1,2]]

But the data in your data/yolo_anchors.txt is

137,256, 248,272, 386,271

for [[0,1,2]], deleting [[6,7,8], [3,4,5] scales. I want to get the whole anchors for the datasets.

Hearing from you, thanks~

@luogen1996
Copy link
Owner

Hi, thank you for your work! I want to know how you get your anchors for the datasets? Could you share the code or anything else? I did not find any detailed explainations in your paper. Only a little information is shown in model/mcn_model.py line 451:

anchor_mask = [[6,7,8], [3,4,5], [0,1,2]] if num_layers==3 else [[0,1,2]] ##due to deleting 2 scales  change [[6,7,8], [3,4,5], [0,1,2]] to [[0,1,2]]

But the data in your data/yolo_anchors.txt is

137,256, 248,272, 386,271

for [[0,1,2]], deleting [[6,7,8], [3,4,5] scales. I want to get the whole anchors for the datasets.

Hearing from you, thanks~

Thank you for your interest. The most of objects in Ref-series are middle or large size, so we only keep one detection branch. And the corresponding anchor is set to 137,256, 248,272, 386,271. If you want to use more scales/anchors, you can utilize kmeans to calculate appropriate anchors for your datasets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants