You can write a simple script to read hdf5 file and write it as files. And then use the Imagefolder.
But also you can call transforms on any torch tensor, their ops are just defined in call.
so for ex -
x = torchvision.transforms.Normalize(mean= 0, std= 0.1)
x( your tensor)