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

The number of filter for generate offset is [num_deformable_groups * 2 * kH * kW]? #18

Closed
gzhcv opened this issue Mar 30, 2019 · 3 comments

Comments

@gzhcv
Copy link

gzhcv commented Mar 30, 2019

Inside the paper of Deformable ConvNets V2, a modulation scalars was used to modulate the input feature amplitudes from different spatial locations/bins. As the following description,

image

So, i'm curious about the usage example of DeformConv() in test.py , which setting the number of filter for generate offset as num_deformable_groups * 2 * kH * kW. Shouldn't it be num_deformable_groups * 3 * kH * kW?

Thanks a lot for your code, hope for your reply.

@gzhcv
Copy link
Author

gzhcv commented Mar 31, 2019

One more question, i trained a Deformable ConvNets for Classification task and have gained accurancy. Then i extract the value of feature map used for predicting the offset, the value range from -99 to 99 approximately. This result also bothered me, whether the value should be squeezed to a reasonable range, such as [-5, 5]

@xvjiarui
Copy link
Collaborator

xvjiarui commented Apr 2, 2019

num_deformable_groups * 2 * kH * kW is for normal Deformable Conv.
num_deformable_groups * 3 * kH * kW is for modulated Deformable Conv.

@gzhcv
Copy link
Author

gzhcv commented Apr 2, 2019

@xvjiarui Thanks for your reply! The second question about the offset value range, any help?

@gzhcv gzhcv closed this as completed May 6, 2019
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