I want to ask one more question.
As @ebarsoum mentioned, I have HxWx1x20 numpy uint8 array.
I want to implement a dataset class that inherit torch.utils.data.Dataset.
In getitem part of the function, I return this array by applying transforms like:
transforms.RandomCrop,
transforms.RandomHorizontalFlip(),
transforms.ColorJitter(),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]).
To be able apply the first three of them requires PiL image.
How can handle this ?