rajeevyasarla / UMSN-Face-Deblurring

Deblurring Face Images using Uncertainty Guided Multi-Stream Semantic Networks
MIT License
118 stars 34 forks source link

RuntimeError when testing #19

Closed BLOO123 closed 2 years ago

BLOO123 commented 3 years ago

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 3 years ago

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)