mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 13:54:33 +00:00
Realesrgam is slow on cpu we do not use it #397
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CrazyWolf13 on GitHub (Sep 26, 2023).
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.
Appears always, I have CUDA installed.
@vootox commented on GitHub (Oct 8, 2023):
I had the same issue but working now.
But why is the correct version not installed automatically? this error happens to me so often with CUDA.
For my version, I had to do:
pip uninstall torch
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
@CrazyWolf13 commented on GitHub (Oct 15, 2023):
Yeah I got it working on my main PC but I'd like to use the whole GFPGAN project on a pc without a GPU only internal IGPU is there a way to allow realesrgam to work? Because I only get this error message, It even states modify the code to still allow realesrgam but I don't know where.
@PedCoelho commented on GitHub (Dec 20, 2023):
@CrazyWolf13 I think it should be a simple change in
inference_gfpgan.pyfrom :to
let me know if that works out for you
@CrazyWolf13 commented on GitHub (Dec 20, 2023):
Thanks for the answer, but sadly that didn't work out, I have also already had this idea, but it still didn't work. I guess there must be more deep down the python files...
@DNucX commented on GitHub (Feb 24, 2024):
@CrazyWolf13
Try this, worked for me: