Open soutlu opened 4 years ago
I also happend the same problem,have you fixed this?
I also happend the same problem,have you fixed this?
The generation of this problem is due to the problem of multi-threads under Windows, and the DataLoader class, the specific details https://github.com/pytorch/pytorch/pull/5585
You can solve this issue by modifying the Num_Workers parameter when calling the Torch.Utils.Data.DataLoader() function.
Modify num_works=4 --> num_works=0
or Place the block of code you want to run in the main function
if __name__ == '__main__':
#your code
RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.