Hi, I am aware of that there are existing utilities for applying horizontal, vertical flips etc to PIL images. But is there a way to apply this to a 64 channel tensor?
The only solution I have is this:
Split the 64 channels into 1 channel each
For the two remaining channels put the same values as the original 1 channel
Convert to PIL Image
Convert back to tensor
Remove 2 extra channels
Repeat process 64 times
Then stack the tensors to get the augmented 64 channel tensor
This is a hugely inefficient method. I have looked at torch.fliplr but that only switches the color channels in practice.
So does anyone have any ideas or know of an existing pytorch function which does this already?
Thanks in advance