Skip to content

About InterpolateSparse2d in interpolator.py #114

@IkariKlein

Description

@IkariKlein

In modules/training/interpolator.py, I noticed author use “2. * (x/(torch.tensor([W-1, H-1], device = x.device, dtype = x.dtype))) - 1.” in function normgrid(self, x, H, W) when align_corners = False. But normally, when align_corners = False, shouldn't “(2.* x + 1.) / torch.tensor([W, H], device=x.device, dtype=x.dtype) - 1.” be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions