Hi Elias!



 elibon:

Anyone who knows how to implement squeezing in pytorch, either with the pre-built torchvision transformations or as a custom transformation?


I think that torchvision.transforms.Resize 1 will do what you want.  If you
want the shape of your squeezed image to be the same as the shape
of the untransformed image, you will have to pad and crop the result
of Resize.
Best.
K. Frank