GFPGAN
GFPGAN copied to clipboard
windows error NameError: name 'fused_act_ext' is not defined
E:\AIDeepLearn\旧照片修复\GFPGAN>python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1 -s 2
Processing 2.png ...
Traceback (most recent call last):
File "inference_gfpgan.py", line 155, in
If you wanna use the paper model which is version 1 with colorization,you open cmd, "conda activate > your gfpgan environment<" , "pip install ninja" . Then make a bat file like this put it in your gfpgan directory.In the bat file after calling your environment , write : set BASICSR_JIT=True . This will set basicsr to just in time mode which means it will compile it real time which also means it will take some time to initialize each time you wanna run version 1 model.Otherwise model version 1 is giving error with precompiled settings.It comes with a price but this way it works
Example bat file : change environment,input and output folders 0_Run_GfpGan_v1_2x.zip
Have fun ;)