blob: f2e662ad4811ad318f42f8a77836b24710805c44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
default_model_path="/usr/share/cain-ncnn-vulkan/"
readonly default_model_path
args=""
while getopts "hv0:1:i:o:m:g:j:f:" arg; do
case $arg in
h) args="$args -$arg" ;;
v) args="$args -$arg" ;;
1) args="$args -$arg $OPTARG" ;;
0) args="$args -$arg $OPTARG" ;;
i) args="$args -$arg $OPTARG" ;;
o) 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" ;;
f) args="$args -$arg $OPTARG" ;;
esac
done
/usr/share/cain-ncnn-vulkan/cain-ncnn-vulkan $args
|