Skip to content

grid_sample() behavior changed in pytorch #15

@photonman86

Description

@photonman86

running OFT gets me the following warnings:
torch/nn/functional.py:3828: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.

I use pytorch 1.4 (as this project does not include a conda environment / pip requirements file, I just tried current standard setup)

my question:
what is the target pytorch version?
OR:
in oft.py: OFT.forward(), does the F.grid_sample(..) need to have align_corners set to True or False?

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