Ubuntu 21.04 - realesrgan executable doesn't work and crashes txt2imghd.py
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?
realesrgan-ncnn-vulkan works fine on 22.04
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.
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.