summarylogtreecommitdiffstats
path: root/rife-ncnn-vulkan
blob: 684bd9ad3bd7f6c038d1fea764286bbb78501ceb (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
30
31
32
#!/bin/sh

default_model_path="/usr/share/rife-ncnn-vulkan/"
readonly default_model_path

args=""

while getopts "hv0:1:i:o:m:g:j:xuf:" arg; do
    case $arg in
    h) args="$args -$arg" ;;
    v) args="$args -$arg" ;;
    0) args="$args -$arg $OPTARG" ;;
    1) 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" ;;
    x) args="$args -$arg" ;;
    u) args="$args -$arg" ;;
    f) args="$args -$arg $OPTARG" ;;
    *) exit ;;
    esac
done

/usr/share/rife-ncnn-vulkan/rife-ncnn-vulkan "$args"