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

A question about anchors #140

Open
frankTian92 opened this issue Jul 6, 2018 · 1 comment
Open

A question about anchors #140

frankTian92 opened this issue Jul 6, 2018 · 1 comment

Comments

@frankTian92
Copy link

Sorry to bother you. As a beginner, I have been confused by the setting of numbers of anchors. In cfg, IS_MULTISCALE = False, and __C.TRAIN.ASPECTS = (1, 0.75, 0.5, 0.25) was commented. Why choosing A = len() * 3 as the numbers of anchors in lib/networks/VGGnet_train.py in line 51-54?

@Benzlxs
Copy link

Benzlxs commented Jul 11, 2018

Actually, author didn't use scale parameters in config.py like _C.TRAIN.ASPECTS and _C.TRAIN.SCALE.

The method that author employ to change the number and scale of anchor is pretty hard-coding.
You can check the code below

self._anchors = generate_anchors(cfg.TRAIN.RPN_BASE_SIZE, cfg.TRAIN.RPN_ASPECTS, cfg.TRAIN.RPN_SCALES)

def generate_anchors(base_size=16, ratios=[0.5, 1, 2],

A = len() * 3 is also little bit hard-code, 3 is fixed, but it should depend on scale ratio

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