jquesnelle / txt2imghd

A port of GOBIG for Stable Diffusion
MIT License
691 stars 82 forks source link

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

Open jnpatrick99 opened 2 years ago

jnpatrick99 commented 2 years ago

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?

nerdyrodent commented 2 years ago

realesrgan-ncnn-vulkan works fine on 22.04

prettydeep commented 1 year ago

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.

theUpsider commented 1 year ago

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.