Could you check, if you get any error message by iterating the DataLoader once using num_workers=0? Sometimes a worker process might die unexpectedly due to a loading issue and depending on your setup you might not see a valid error (saw this behavior in e.g. Jupyter notebooks)?