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
974 stars 86 forks source link

black image result #23

Open shirooo39 opened 1 year ago

shirooo39 commented 1 year ago

as the title says. no matter what upscaling algorithm I pick, it'll always produce black image.

upscaling with CPU does produce an actual result but it takes a significanly longer time to process.

device: Poco X3 NFC - SD732G - 6/64 rom: latest crDroid 9.2 based on LineageOS 20, Android 13

Screenshot_20230307-221942_RealSR BigImage

AndriaSalah commented 1 year ago

go into settings and try pressing the reset to compatible values , this solved the issue for me

rkhyper commented 9 months ago

Same with termux cli : ./realsr-ncnn -i input.jpeg -o output.jpg -m models-Real-ESRGAN

from curl https://huggingface.co/spaces/tumuyan/RealSR/raw/main/install_realsr_android.sh | bash

tumuyan commented 8 months ago

Generally this problem is caused by insufficient GPU resources, you can set the tile-size parameter to solve this problem. The default tile parameter is 0, which means that the tile-szie will be automatically adjusted according to the remaining memory on the device, up to a maximum of 200-400 depending on the model you selected. User could apply a integer >= 32, for devices with this problem, you can usually set the value 32 to 100. In the GUI, you can find the tile size in config, fill in the new value and click the save button. In the cli, you can add the -t tile number parameter to the command.

一般发生这个问题是GPU资源不足造成的,你可以通过设置tile参数来解决这个问题。 默认tile参数为0,这表示根据设备剩余内存自动调整tile,根据模型不同最大会到200-400。有效值为>=32的整数,对于发生这个问题的设备,通常可以设置32-100 在GUI中,可以在config中找到tile size,填入新值并点击save按钮。 在cli中,可以在命令中增加-t tile数字 参数。