I’m using torch.nn.functional.grid_sample to warp an image, and I need to know which pixels came from outside the image.
This function supports “Zero” padding, but my image can have zeros in it as well, so I can’t search for zeros in the image for a valid pixels mask.
How to get valid pixels from grid_sample()?
Thnx