grid_sample() and align_corners parameter - new default value in pytorch v1.4.0
See original GitHub issueIt is said pytorch devs are going to change the default behavior of grid_sample()
in pytorch v1.4.0:
from align_corners=True
to align_corners=False
Here is the link: https://pytorch.org/docs/stable/nn.functional.html#grid-sample
What do you think about explicitly adding align_corners=True
everywhere in grid_sample()
so as not to ruin the current behavior of kornia (and your tests of course)?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Suggest to add more tips in F.grid_sample() function - vision
Hi, I notice that in the newest version Pytorch, when query the coords in ... will assign the values of the padding part...
Read more >Module — PyTorch 1.13 documentation
For example, BatchNorm's running_mean is not a parameter, but is part of the module's state. Buffers, by default, are persistent and will be...
Read more >torch.nn.functional.affine_grid — PyTorch 1.13 documentation
A grid generated by affine_grid() should be passed to grid_sample() with the same setting for this option. Default: False. Returns:.
Read more >Grid sample and align corners - PyTorch Forums
I want to understand this, as I prefer to leave default values as is in practice. Here's my example: image = torch.arange(0., 10.,...
Read more >Using Torch-TensorRT in C++ - PyTorch
This new TorchScript file can be loaded into Python (note: you need to import torch_tensorrt before loading these compiled modules because the compiler...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@edgarriba I just don’t have time right now to write tests. But the main part is ready and used since that time…
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions, and happy coding day 😎