And the default setting is mode='bilinear', padding_mode='zeros', align_corners=False. I set the align_corners=True in all the settings in the file. But the backpropogatiion results from this grid_sample and F.grid_sample are different. Anyone have the idea why?
Hi!
I was trying the grdi_sample() function from https://github.com/NVlabs/stylegan3/blob/407db86e6fe432540a22515310188288687858fa/torch_utils/ops/grid_sample_gradfix.py#L28
And the default setting is
mode='bilinear'
,padding_mode='zeros'
,align_corners=False
. I set the align_corners=True in all the settings in the file. But the backpropogatiion results from this grid_sample and F.grid_sample are different. Anyone have the idea why?