Closed knyipab closed 1 month ago
By the way, little more info, rife-vulkan-ncnn uses older version of glslang so it cannot be built to dynamically link to the libncnn
package (i.e. -DUSE_SYSTEM_NCNN=ON
does not compile).
@licy183 Thanks. Fixed and tested with the command.
Seems to build two packages in one go and does not remove the soft link before building the other:
ln: failed to create symbolic link '/data/data/com.termux/files/usr/bin/rife-ncnn-vulkan': File exists
There is no problem if building separately. Grateful for advice. Thanks.
[Edited:] By the way, I am not so familiar. should it be TERMUX_PKG_GIT_BRANCH=v$TERMUX_PKG_VERSION
instead?
I investigated and found few things:
SPIR-V
error should be an issue of vulkan-loader-generic
. If vulkan-loader-android
is installed instead. While I doubt if it is fixable or anyone will try to fix vulkan-lodaer-generc
, should this package be built against /system/lib(64)/libvulkan.so
?libncnn
using -DUSE_SYSTEM_NCNN=ON
by replacing include("${GLSLANG_TARGET_DIR}/*.cmake
with include("${GLSLANG_TARGET_DIR}/glslang-targets.cmake")
in CMakeLists.txt~git submodule update ...
in build.sh
should be unnecessary. Thank you for your advice.
Thanks a lot for help!
TNTwise updated the repo to 20240515
after I reflected the cpu mode segfault bug yesterday in https://github.com/TNTwise/rife-ncnn-vulkan/issues/4.
After that, we may test all commands below and they should work for both -nihui
and -tntwise
git clone https://github.com/nihui/rife-ncnn-vulkan
cd ./rife-ncnn-vulkan/images
# GPU mode
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png -m rife-v4.6
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png -m rife-v4-latest
# CPU mode
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png -g -1
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png -m rife-v4.6 -g -1
rife-ncnn-vulkan -0 0.png -1 1.png -o test.png -m rife-v4-latest -g -1
managed to build rife-ncnn-vulkan and tested with:
It works BUT it cannot work using gpu (i.e. without
-g -1
), with error below:I have no ideas, but I speculate that even after solving this error, vulkan will likely generates black image (an issue I raised at https://github.com/nihui/rife-ncnn-vulkan/issues/41).
Anyways, even with this caveat, I still want it to be listed on TUR. Thanks.