tumuyan / RealSR-NCNN-Android

An Android application for super-resolution & interpolation. Contains RealSR-NCNN, SRMD-NCNN, RealCUGAN-NCNN, Real-ESRGAN-NCNN, Waifu2x-NCNN, Anime4kcpp, nearest, bilinear, bicubic, AVIR...
Other
1.02k stars 85 forks source link

Not working #1

Closed bropines closed 2 years ago

bropines commented 2 years ago

Screenshot_2022-02-16-14-33-23-489_com tumuyan ncnn realsr Screenshot_2022-02-16-14-28-56-669_com tumuyan ncnn realsr

tumuyan commented 2 years ago

Please uninstall -> download https://github.com/tumuyan/RealSR-NCNN-Android/releases/download/1.4-debug/RealSR-NCNN-Android-GUI-armv8a-1.4.apk -> reinstall -> open & run the same image -> upload screenshot

Thanks

bropines commented 2 years ago

I tested photos in resolution up to 500x500. They were working fine. In theory, the system cannot decode large-sized photos. Screenshot_2022-02-16-17-04-15-388_com tumuyan ncnn realsr

bropines commented 2 years ago

Work: Screenshot_2022-02-16-17-41-38-494_com tumuyan ncnn realsr 313123123

No work: WTuCRgBOffQ Screenshot_2022-02-16-17-04-15-388_com tumuyan ncnn realsr

The current STB decoder cannot recognize some photos. I have attached what works and what doesn't

tumuyan commented 2 years ago

the file named as jpg, but actually it is a webp file.

Only png and jpg is support.

Screenshot_2022-02-16-20-58-06-299_com.tumuyan.filemagic.debug.jpg

bropines commented 2 years ago

Clear. In such ways, our local VK social network encodes uploaded photos.

bropines commented 2 years ago

And more. Nothing works on my device (Vulkan driver updated to the latest version) except real-esrgan Screenshot_2022-02-16-17-58-00-589_com tumuyan ncnn realsr Screenshot_2022-02-16-17-58-52-699_com tumuyan ncnn realsr Screenshot_2022-02-16-17-57-37-575_com tumuyan ncnn realsr

tumuyan commented 2 years ago

You could try these command (use -t parameter to set tile-size, small tile-size will be slow, default might be 200, if 100 not works you can try 64 or less ) , refer https://github.com/nihui/realsr-ncnn-vulkan/issues/38

When the log shows finish, click save and find the new image in gallery


./realsr-ncnn -i input.png -o output.png  -m models-DF2K_JPEG -t -100
./srmd-ncnn -i input.png -o output.png  -m models-srmd -s 2  -t 100
./realcugan-ncnn -i input.png -o output.png  -m models-se -s 2  -n -1 -t 100
tumuyan commented 2 years ago

now you can set the tile-size in setting activity

bropines commented 2 years ago

Yes, thanks. I think it's worth closing the issue, because the problem has been solved. As a suggestion, I can offer an image converter to the allowed format.