RealESRGAN not working #268

Open
opened 2026-01-29 21:46:22 +00:00 by claunia · 3 comments
Owner

Originally created by @hamedred on GitHub (Oct 9, 2022).

hey i have a problem with this part of program that works on background, its giving me error about working slow on CPU (inference_gfpgan.py:63: UserWarning: The unoptimized RealESRGAN is slow on CPU. We do not use it. If you really want to use it, please modify the corresponding codes. warnings.warn('The unoptimized RealESRGAN is slow on CPU. We do not use it.') and in end result it doesn't do anything on images background. if anyone know any solution for this problem that would be great thanks in advance.

Originally created by @hamedred on GitHub (Oct 9, 2022). hey i have a problem with this part of program that works on background, its giving me error about working slow on CPU (inference_gfpgan.py:63: UserWarning: The unoptimized RealESRGAN is slow on CPU. We do not use it. If you really want to use it, please modify the corresponding codes. warnings.warn('The unoptimized RealESRGAN is slow on CPU. We do not use it.') and in end result it doesn't do anything on images background. if anyone know any solution for this problem that would be great thanks in advance.
Author
Owner

@Oleh0374 commented on GitHub (Oct 16, 2022):

Hello.
Also, there is two problems:

  1. The url not exist: "model_path='https://github.com/xinntao/RealESRGAN/releases/download/v0.2.1/ReaESRGAN_x2plus.pth'"
  2. Error on check SSL certificate:
    "File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1345, in do_open raise URLError(err)urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>"
@Oleh0374 commented on GitHub (Oct 16, 2022): Hello. Also, there is two problems: 1. The url not exist: "model_path='https://github.com/xinntao/RealESRGAN/releases/download/v0.2.1/ReaESRGAN_x2plus.pth'" 2. Error on check SSL certificate: "File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1345, in do_open raise URLError(err)urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>"
Author
Owner

@Erickesau commented on GitHub (Dec 23, 2022):

Hamadred
I have a fork with that problem Solved AND Also i added GUI interface.
https://github.com/Erickesau/GFPGAN

I just modified some línes in inference_gfpgan.py and saved as module_gfpgan.py AND added Gui.py

You can fix this repo just change líne 61
if not torch.cuda.is_available():
To
if False:

and also in líne 77 change
half=True
To
half=False

To make it work in CPU check my repo i have More projets.

@Erickesau commented on GitHub (Dec 23, 2022): Hamadred I have a fork with that problem Solved AND Also i added GUI interface. [https://github.com/Erickesau/GFPGAN]() I just modified some línes in inference_gfpgan.py and saved as module_gfpgan.py AND added Gui.py You can fix this repo just change líne 61 if not torch.cuda.is_available(): To if False: and also in líne 77 change half=True To half=False To make it work in CPU check my repo i have More projets.
Author
Owner

@feng-haitao commented on GitHub (Jul 5, 2024):

Hamadred I have a fork with that problem Solved AND Also i added GUI interface. https://github.com/Erickesau/GFPGAN

I just modified some línes in inference_gfpgan.py and saved as module_gfpgan.py AND added Gui.py

You can fix this repo just change líne 61 if not torch.cuda.is_available(): To if False:

and also in líne 77 change half=True To half=False

To make it work in CPU check my repo i have More projets.

It works. Thanks.

@feng-haitao commented on GitHub (Jul 5, 2024): > Hamadred I have a fork with that problem Solved AND Also i added GUI interface. https://github.com/Erickesau/GFPGAN > > I just modified some línes in inference_gfpgan.py and saved as module_gfpgan.py AND added Gui.py > > You can fix this repo just change líne 61 if not torch.cuda.is_available(): To if False: > > and also in líne 77 change half=True To half=False > > To make it work in CPU check my repo i have More projets. It works. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#268