Real-ESRGAN
Real-ESRGAN copied to clipboard
ModuleNotFoundError: No module named 'realesrgan.version'
same problem!!!
在setup.py找到vision.py文件,运行一下,就不报这个错了
same
Follow steps from https://github.com/xinntao/Real-ESRGAN#installation
Thanks, it's resolved
貌似也可以注释掉
@smalie2222 Can I ask how you resolved this? I'm getting that same error:
File ".\Real-ESRGAN\inference_realesrgan.py", line 8, in
File ".\Real-ESRGAN\realesrgan_init_.py", line 6, in
As @Fischer-pixel said, "from .version import *" can be commented out from init.py, but that just causes a different error:
Error "slow_conv2d_cpu" not implemented for 'Half'.
Also, that outputs a folder with the output name instead of an image file. I tried to be smart and then used the --fp32 argument but then the interpreter just hangs at Testing... Does it have something to do with the comment I'm getting before the one you originally mentioned (from realesrgan import RealESRGANer)? I have the feeling that the portable Windows version doesn't achieve the same results as this one, otherwise I would've settled for that.
Follow steps from https://github.com/xinntao/Real-ESRGAN#installation
并不想直接安装这个库,想在服务器直接跑
solved. pip install google-cloud-vision
Solved
cd RealEsgran # where the repo downloaded folder is located
python setup.py develop
fixed but got: Error "slow_conv2d_cpu" not implemented for 'Half'
FIxed : Error "slow_conv2d_cpu" not implemented for 'Half' by python inference_realesrgan.py -n RealESRGAN_x4plus.pth -i inputs --fp32
python setup.py develop
File "D:\gfpgan\setup.py", line 65, in write_version_py with open(version_file, 'w') as f: FileNotFoundError: [Errno 2] No such file or directory: 'gfpgan/version.py' version.py file where ?
在setup.py找到vision.py文件,运行一下,就不报这个错了
正解
python setup.py develop
File "D:\gfpgan\setup.py", line 65, in write_version_py with open(version_file, 'w') as f: FileNotFoundError: [Errno 2] No such file or directory: 'gfpgan/version.py' version.py file where ?
version.py file
# GENERATED VERSION FILE
# TIME: Sat Oct 8 19:14:38 2022
__version__ = '1.4.2'
__gitsha__ = 'unknown'
version_info = (1, 4, 2)
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
非常感谢
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年3月4日(星期一) 下午3:09 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [xinntao/Real-ESRGAN] ModuleNotFoundError: No module named 'realesrgan.version' (Issue #275)
在setup.py找到vision.py文件,运行一下,就不报这个错了
正解
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>