visual-pushing-grasping icon indicating copy to clipboard operation
visual-pushing-grasping copied to clipboard

NotImplementedError: nn.functional.grid_sample got unsupported mode: 'nearest'

Open me2george opened this issue 7 years ago • 2 comments

Hello,while running main.py, I got some error. Any solutions or suggestions for this issue? My enviroment: windows10 + NVIDIA GTX 1080(which has 8GB GPU memory) + python3.6+pytorch0.4+V-rep3.5. And I use the code for pytorch 0.4. image Thanks for your answer.

me2george avatar Aug 02 '18 12:08 me2george

Removing mode='nearest' for all nn.functional.grid_sample calls in models.py should fix it. The behavior of nn.functional.grid_sample should remain the same (bilinear sampling instead of nearest neighbor), since mode='nearest' was never implemented and the "unsupported mode" warning only started showing up in PyTorch 0.4.

andyzeng avatar Aug 02 '18 17:08 andyzeng

Thanks very much ! The problem solved !

me2george avatar Aug 03 '18 01:08 me2george