Skip to content

Question on F.grid_sample for mesh to pixel #33

@YiruS

Description

@YiruS

Hi there,

Thanks for providing the code for pixel2mesh, nice work!

I have one question for computing the 2D image features by computing the correspondence between pixel and vertex in mesh. In models/layers/gprojection.py line 86787, why do you divide the w and h by half of image dimension? Is that to align the coordinate system in PyTorch in order to use F.grid_sample? Some details would be highly appreciated!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions