nihui / waifu2x-ncnn-vulkan

waifu2x converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
MIT License
3.02k stars 212 forks source link

Not running on Raspberry Pi 4, because armhf is not supported #198

Open Feriman22 opened 1 year ago

Feriman22 commented 1 year ago

Hy,

I tried to install it on my Raspberry Pi 4 (based on Raspbian).

Install command: sudo snap install waifu2x-ncnn-vulkan

Then I got this error:

error: snap "waifu2x-ncnn-vulkan" is not available on this architecture (armhf) but exists on other
       architectures (amd64, arm64, i386, ppc64el).

Can it be modified to run on this device?

Thanks, Feriman

Nova-Aurora commented 1 year ago

As for an armhf build, ncnn supports armhf, so it should be able to be compiled for it, though it may be slow depending on the attached GPU.

However, I strongly advise not using the snapcraft version of waifu2x-ncnn-vulkan. Snap (who maintain that distribution) has not updated it since April 30th, 2019, and it should be considered abandoned.

Nova-Aurora commented 1 year ago

Are you using the 32-bit version of Raspberry Pi OS or the 64-bit version?

Feriman22 commented 1 year ago

I use 32-bit version. Is there any solution to upscale images with Raspberry Pi?

Nova-Aurora commented 1 year ago

I don't have a Pi 4, but I'll try compiling on my pi 3 tomorrow, if it doesn't break your use case, can you try with 64-bit Raspberry Pi OS?

You could also try compiling a 32-bit arm version using the build instructions, and report back if you get any errors.

Nova-Aurora commented 1 year ago

(The Pi 4 is an arm64 processor on the inside, however when running on a 32-bit operating system, it reports itself as the older 32-bit armhf architecture, and so it might work under a 64-bit OS as far as I know.)

Feriman22 commented 1 year ago

Please let me know the result of compiling on your RPi 3, regarding filesize/increasing rate/elapsed time.

Thanks!

I'll try build it on my RPi4 soon.

Nova-Aurora commented 1 year ago

I didn't get it to compile, but I might have screwed up the dev environment. How does it go for you?

Feriman22 commented 1 year ago

I tried to build it on my Raspberry Pi 4, but I got an error:

root@RPi4:/tmp/waifu2x-ncnn-vulkan/build# cmake ../src
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/tmp/waifu2x-ncnn-vulkan/build/CMakeFiles/CMakeOutput.log".

The log file contains:

The system is: Linux - 5.10.78-7-osmc - aarch64

So I cannot build it on my device.