Open FalconSN opened 10 months ago
it prints “decode image image.jpg failed”, I think the image has a jpg suffix but it is not a real jpg file. you could use mediainfo to see its real format, or change input file.
Okay, this has gotten weird. Looked at the image format with mediainfo
as you said, and it was JPEG. Then used the first script which had threw fopen failed
and decode image failed
errors earlier, on the very same picture but this time in /sdcard/Pictures directory, and it just worked. First attempt was in Termux home directory, and wanted to see if it will still print the same errors. Copied the file to Termux home, and guess what? Same errors. I don't really mind about this issue, however; realsr-ncnn
being uncallable from another directory still persists.
Sorry, I'm not good with Linux shells or termux, using a sh script is a good way. I guess if you add export LD_LIBRARY_PATH= 'your ncnn.so path' ; to the command might be useful
I guess if you add export LD_LIBRARY_PATH= 'your ncnn.so path' ; to the command might be useful
Yeah... I didn't know anything about this environment variable. It does help, thank you.
Hello, and thank you for making this software. I appreciate it.
I've been trying to use realsr-ncnn in a script along with gallery-dl, but I cannot execute it unless I'm in it's directory. For example, executing
./realsr/realsr-ncnn
in Termux home directory throws this error:realsr directory content:
After this error, I've tried making a script that will execute
realsr-ncnn
in it's directory:With
realsr
, it shows the usage, which means it works. But when trying to upscale an image this way, this error is occuring (verbose output):This same picture is being upscaled only if I go into the directory where
realsr-ncnn
resides and execute from there in terminal. Tried copying libncnn.so to usr/lib/ and this didn't work either. What would be the best approach to this?Edit: My workaround is the
realsr
script in/data/data/com.termux/files/usr/bin
. Content: