TencentARC / GFPGAN

GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration.
Other
35.89k stars 5.95k forks source link

Windows runs V1 but meets "time.sleep" problem #558

Open caokx opened 4 months ago

caokx commented 4 months ago

D:\Python\GFPGAN>set BASICSR_JIT=True

D:\Python\GFPGAN>python inferencegfpgan.py -i in -o out_ -v 1 -s 2 --ext jpg --bg_upsampler realesrgan --bg_tile 800 Traceback (most recent call last): File "D:\Python\GFPGAN\inference_gfpgan.py", line 7, in from basicsr.utils import imwrite File "D:\Python\Python39\lib\site-packages\basicsr__init.py", line 3, in from .archs import * File "D:\Python\Python39\lib\site-packages\basicsr\archs\init.py", line 16, in _arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames] File "D:\Python\Python39\lib\site-packages\basicsr\archs\init.py", line 16, in _arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames] File "D:\Python\Python39\lib\importlib\init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "D:\Python\Python39\lib\site-packages\basicsr\archs\basicvsrpp_arch.py", line 7, in from basicsr.archs.arch_util import flow_warp File "D:\Python\Python39\lib\site-packages\basicsr\archs\arch_util.py", line 13, in from basicsr.ops.dcn import ModulatedDeformConvPack, modulated_deform_conv File "D:\Python\Python39\lib\site-packages\basicsr\ops\dcn\init__.py", line 1, in from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv, ModulatedDeformConvPack, deform_conv, File "D:\Python\Python39\lib\site-packages\basicsr\ops\dcn\deform_conv.py", line 14, in deform_conv_ext = load( File "D:\Python\Python39\lib\site-packages\torch\utils\cpp_extension.py", line 986, in load return _jit_compile( File "D:\Python\Python39\lib\site-packages\torch\utils\cpp_extension.py", line 1206, in _jit_compile baton.wait() File "D:\Python\Python39\lib\site-packages\torch\utils\file_baton.py", line 48, in wait time.sleep(self.wait_seconds) KeyboardInterrupt

caokx commented 4 months ago

I have run few hours, but it seems that the code doesn't work