TypeError: h5py objects cannot be pickled
问题 I am trying to run a PyTorch implementation of a code, which is supposed to work on SBD dataset. The training labels are originally available in .bin file, which are then converted to HDF5 (.h5) files. Upon running the algorithm, I get an error as: " TypeError: h5py objects cannot be pickled " I think the error is stemming from torch.utils.data.DataLoader. Any idea if I am missing any concept here? I read that pickling is generally not preferred but as of now, my dataset is in HDF5 format