naver / r2d2

Other
461 stars 86 forks source link

How to solve warning about "torch.nn.functional.grid_sample()" due to Pytorch version 1.3.0. #13

Closed GabbySuwichaya closed 4 years ago

GabbySuwichaya commented 4 years ago

I have received the warning about "torch.nn.functional.grid_sample()" due to Pytorch version 1.3.0. Can you tell us how to solve this warning ? It seems that it does matter to check whether align_corners=True or False for this function.

The following pictures display the location where I received the warning and the warning message. Screenshot from 2020-05-13 22-06-06

Screenshot from 2020-05-13 22-12-09

jrevaud commented 4 years ago

I was using pytorch 1.1 at the time, and the default behavior up to version 1.2.0 was align_corners = True

But I'm not sure if it will change much in the end anyway :)

GabbySuwichaya commented 4 years ago

Got it... Thanks for the answer. :)