Hello i want to ask if you can show me best way to resize pictures in numpy array and also torch tensor.
I have picture of shape (480, 700, 3) and I need (350, 480, 3)
What is best way to do that ?
Hello i want to ask if you can show me best way to resize pictures in numpy array and also torch tensor.
I have picture of shape (480, 700, 3) and I need (350, 480, 3)
What is best way to do that ?
For tensors you could use F.interpolate
or the torchvision.transforms
, which are now also working on tensors.