eriklindernoren / PyTorch-GAN

PyTorch implementations of Generative Adversarial Networks.
MIT License
16.23k stars 4.05k forks source link

Runtime error in the original GAN #64

Open Ignoramus0817 opened 5 years ago

Ignoramus0817 commented 5 years ago

It raises RuntimeError: cannot join current thread when the whole training process ends. Nothing was changed in the code.

Steedalion commented 3 years ago

7 #13. I think this is a windows problem with pytorch. It is reoccurring, not solved in pytorch.

Steedalion commented 3 years ago

It appears that you should put the main code in if __name__ == '__main__': when using multi-threading when using Windows. I will try to investigate this later.

https://github.com/pytorch/pytorch/issues/7485#issuecomment-558525665