RuntimeError when testing
Closed this issue · 1 comments
BLOO123 commented
Code to Reproduce:
python test_face_deblur.py --dataroot ./facades/github/ --valDataroot ./Testh/ --netG ./pretrained_models/Deblur_epoch_Best.pth
Error:
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
Thank you for sharing the code! I ran into this error and would appreciate any guidance on how to resolve this. Thanks!
rajeevyasarla commented
Are you using the following environment
Linux
Python 2 or 3
Pytorch version 0.4.1
CPU or NVIDIA GPU + CUDA CuDNN (CUDA 8.0)