Replies: 1 comment 10 replies
-
yes I think this is task dependent, linear works well in this case, could you help confirm @kate-sann5100 @YipengHu |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I saw that in the 3D registration tutorial,
https://github.com/Project-MONAI/tutorials/blob/master/3d_registration/paired_lung_ct.ipynb
the label is using the same warper/resampler as the image, which by default uses mode='bilinear' in torch.nn.functional.grid_sample.
Why shouldn't we use mode='nearest' here? Is it because if we use mode='nearest', the gradient wrt grid would be zero?
https://discuss.pytorch.org/t/does-the-nn-funtional-grid-sample-backwards-grad-to-grid/31736
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions