txt2imghd icon indicating copy to clipboard operation
txt2imghd copied to clipboard

Ubuntu 21.04 - realesrgan executable doesn't work and crashes txt2imghd.py

Open jnpatrick99 opened this issue 3 years ago • 3 comments

So apparently realesrgan binaries are not supported on newer Ubuntus, they crash and txt2imghd doesn't work. Is there a way to use realesrgan python libraries instead of executable?

jnpatrick99 avatar Sep 03 '22 18:09 jnpatrick99

realesrgan-ncnn-vulkan works fine on 22.04

nerdyrodent avatar Sep 04 '22 08:09 nerdyrodent

I find it doesn't work on Ubuntu 18.04. As referenced here. You need to install libvulkan-dev and GLIBC_2.29, which can be done manually, but can easily break your system if you are not sure exactly what you are doing.

I can use the python libraries to run realesrgan, no problem. But Vulcan binary is no-go for ubuntu 18 or 16.

prettydeep avatar Sep 11 '22 01:09 prettydeep

If anyone wonders how the workaround looks like; Clone this fork into SD: https://github.com/ai-forever/Real-ESRGAN Download their weights. Replace the realesrgan2x function with the Class of the cloned realesrgan. You have to do a little tinkering but it works nicely.

theUpsider avatar Sep 17 '22 10:09 theUpsider