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