Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

black image result #23

Open
shirooo39 opened this issue Mar 7, 2023 · 3 comments
Open

black image result #23

shirooo39 opened this issue Mar 7, 2023 · 3 comments

Comments

@shirooo39
Copy link

shirooo39 commented Mar 7, 2023

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
Copy link

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

@rkhyper
Copy link

rkhyper commented Oct 27, 2023

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
Copy link
Owner

tumuyan commented Oct 28, 2023

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数字 参数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants