oft icon indicating copy to clipboard operation
oft copied to clipboard

grid_sample() behavior changed in pytorch

Open photonman86 opened this issue 3 years ago • 1 comments

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?

photonman86 avatar Jun 10 '21 09:06 photonman86

@photonman86 What is the solution that worked for you in this case?

IAMShashankk avatar May 13 '22 09:05 IAMShashankk