DataLoader worker exited unexpectedly (pid(s) 49965, 49966, 49967)

When running my code I recieved this error message “RuntimeError: DataLoader worker (pid(s) 49965, 49966, 49967) exited unexpectedly” I am completely unsure where to begin to solve this issue. Any guidance at all would be greatly appreciated. Code and traceback posted below


Rerun your code with num_workers=0 and check, if an entire epoch can be loaded properly.
If that’s the case then the usage of multiprocessing might be causing some issues, e.g. if not enough shared memory is available etc.