I am reading images from H5 File as below
syn1 = hf['data_1']
syn1 = np.array(syn1[:,:,:])
....
....
synImage1 = torch.utils.data.DataLoader(syn1, batch_size=50)

But, DataLoader does not apply transform where I can normalize image.
Can we use Datasets on Dataset collected from H5 file separately to normalize?
How to apply transform independent of datasets class?