Real-ESRGAN icon indicating copy to clipboard operation
Real-ESRGAN copied to clipboard

ModuleNotFoundError: No module named 'realesrgan.version'

Open smalie2222 opened this issue 2 years ago • 21 comments

smalie2222 avatar Mar 07 '22 02:03 smalie2222

same problem!!!

every-EVA avatar Mar 07 '22 12:03 every-EVA

在setup.py找到vision.py文件,运行一下,就不报这个错了

every-EVA avatar Mar 07 '22 13:03 every-EVA

same

Vin-Bigboss avatar Mar 13 '22 12:03 Vin-Bigboss

Follow steps from https://github.com/xinntao/Real-ESRGAN#installation

kodxana avatar Mar 13 '22 12:03 kodxana

Thanks, it's resolved

smalie2222 avatar Mar 16 '22 03:03 smalie2222

貌似也可以注释掉

Fischer-pixel avatar Aug 19 '22 06:08 Fischer-pixel

@smalie2222 Can I ask how you resolved this? I'm getting that same error:

File ".\Real-ESRGAN\inference_realesrgan.py", line 8, in from realesrgan import RealESRGANer

File ".\Real-ESRGAN\realesrgan_init_.py", line 6, in from .version import * ModuleNotFoundError: No module named 'realesrgan.version'

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.

X6543 avatar Dec 23 '22 01:12 X6543

Follow steps from https://github.com/xinntao/Real-ESRGAN#installation

并不想直接安装这个库,想在服务器直接跑

zhuzhu18 avatar Mar 01 '23 03:03 zhuzhu18

solved. pip install google-cloud-vision

vooveee avatar May 28 '23 08:05 vooveee

Solved

cd RealEsgran # where the repo downloaded folder is located

python setup.py develop

PatriceGnim avatar May 29 '23 23:05 PatriceGnim

fixed but got: Error "slow_conv2d_cpu" not implemented for 'Half'

md-rifatkhan avatar Oct 21 '23 16:10 md-rifatkhan

FIxed : Error "slow_conv2d_cpu" not implemented for 'Half' by python inference_realesrgan.py -n RealESRGAN_x4plus.pth -i inputs --fp32

md-rifatkhan avatar Oct 21 '23 16:10 md-rifatkhan

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 ?

tzktz avatar Feb 20 '24 10:02 tzktz

在setup.py找到vision.py文件,运行一下,就不报这个错了

正解

kl402401 avatar Mar 04 '24 07:03 kl402401

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)

tzktz avatar Mar 04 '24 07:03 tzktz

这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

kl402401 avatar Mar 04 '24 07:03 kl402401

非常感谢

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 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: @.***>

smalie2222 avatar Mar 04 '24 07:03 smalie2222