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

cannot find your "w" code #27

Open
daxiongpro opened this issue Jun 9, 2021 · 2 comments
Open

cannot find your "w" code #27

daxiongpro opened this issue Jun 9, 2021 · 2 comments

Comments

@daxiongpro
Copy link

Hello, I find your code "class Fusion_Conv" concact point_features and img_features directly. Where is your "w" part in your code?

@russellyq
Copy link

@happinesslz

Hi thanks for your work. I have similar questions on the code of 'fusion' module.

How did you make the 'correspondence' and the 'Point-wise Image Feature'. Could u explain some codes of this part.

Thanks

@Biblbrox
Copy link

Biblbrox commented May 27, 2024

Hi @happinesslz ! Thanks for the great work.

I join the question about the fusion part. As I understood, the main correspondence happens with grid_sample call where point cloud coordinates represented in normalized form [-1; 1]. But I have doubts if these coordinates can be directly mapped to image feature maps except the original image with projection matrix. How this mapping works?

Speaking about this code:

def Feature_Gather(feature_map, xy):
    """
    :param xy:(B,N,2)  normalize to [-1,1]
    :param feature_map:(B,C,H,W)
    :return:
    """

    # use grid_sample for this.
    # xy(B,N,2)->(B,1,N,2)
    xy = xy.unsqueeze(1)

    interpolate_feature = grid_sample(feature_map, xy)  # (B,C,1,N)

    return interpolate_feature.squeeze(2) # (B,C,N)

How can we be sure that coordinates xy mapped to feature_map correctly? I have these question because CNN layers have produce images with different sizes

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

3 participants