summarylogtreecommitdiffstats
path: root/dain-ncnn-vulkan
blob: dbc45ba0e9fbcf1af081d2cde80bca80d9872ec2 (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/dain-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/dain-ncnn-vulkan/dain-ncnn-vulkan $args