Dataloader in for loop can't be pickled

Reading through this, seems like using a h5 file in the dataloader in Windows is problematic