Num_workers > 1 mixes samples and labels (h5py dataset)

Hello Kushaj,
thank you for your reply! I took another look and could actually solve my problem by following piojanu’s workaround. When I open the HFD5 file within getitem , and not from the init as I did before, everything works as expected. I had not realized, that my problem could be caused by that.

1 Like