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

how to stead of deform_sampling? #4

Open
2anchao opened this issue Aug 31, 2021 · 1 comment
Open

how to stead of deform_sampling? #4

2anchao opened this issue Aug 31, 2021 · 1 comment

Comments

@2anchao
Copy link

2anchao commented Aug 31, 2021

Hi Author:
def deform_sampling(self, feat, offset): """ Sampling the feature x according to offset. Args: feat (Tensor): Feature offset (Tensor): Spatial offset for for feature sampliing """ # it is an equivalent implementation of bilinear interpolation b, c, h, w = feat.shape weight = feat.new_ones(c, 1, 1, 1) y = deform_conv2d(feat, offset, weight, 1, 0, 1, c, c) return y
https://github.com/fcjian/TOOD/blob/master/mmdet/models/dense_heads/tood_head.py
how to use bilinear interpolation stead of deform_conv2d?

@ghostxsl
Copy link

you can use grid_sample to stead of deform_conv2d

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