The problem persists even when no transformations are applied. So the bottleneck must be the loading itself.
Image files are in order of ~5MB.
I don’t know about this hdf5 thing. Can you please share a good resource about it.
Thanks for the help.