makedeb
waifu2x converter ncnn version, runs fast on intel / amd / nvidia GPU with vulkan
Viewing /waifu2x-ncnn-vulkan
.
Click here to go back to the Git tree for waifu2x-ncnn-vulkan-bin.
#!/bin/sh
default_model_path="/usr/share/waifu2x-ncnn-vulkan/"
readonly default_model_path
args=""
while getopts "hvi:o:n:s:t:m:g:j:xf:" arg; do
case $arg in
h) args="$args -$arg" ;;
v) args="$args -$arg" ;;
i) args="$args -$arg $OPTARG" ;;
o) args="$args -$arg $OPTARG" ;;
n) args="$args -$arg $OPTARG" ;;
s) args="$args -$arg $OPTARG" ;;
t) args="$args -$arg $OPTARG" ;;
m)
if ! [ -d $OPTARG ]; then
args="$args -m $default_model_path$OPTARG"
else
args="$args -$arg $OPTARG"
fi
;;
g) args="$args -$arg $OPTARG" ;;
j) args="$args -$arg $OPTARG" ;;
x) args="$args -$arg" ;;
f) args="$args -$arg $OPTARG" ;;
esac
done
/usr/share/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan $args