ClementPinard / SfmLearner-Pytorch

Pytorch version of SfmLearner from Tinghui Zhou et al.
MIT License
1.01k stars 226 forks source link

grid_sample issue in inverse_warp.py #92

Closed KeyaoLi10 closed 3 years ago

KeyaoLi10 commented 4 years ago

pytorch < 1.3 does not have the attribute 'align_corners' for torch.nn.functional.grid_sample() , without dropping it will raise error

ClementPinard commented 4 years ago

Yes, but this option is needed for pytorch > 1.4 because the default behaviour is not working anymore, I introduces border effect on interpolation that prevents the whole thing from converging. The only advice I can give you is either update pytorch or remove this option, either by yourself or revert the last commit. I can make a tag to indicate which commit you should pick for pytorch 1.3