[Utility] For demo, create a shell script loading model/label
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Sat, 13 Oct 2018 07:14:21 +0000 (16:14 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Mon, 15 Oct 2018 04:32:04 +0000 (13:32 +0900)
For the demonstration, provide a shell script that gets
the standard example tflite model and its labeling file

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
common/getTestModels.sh [new file with mode: 0755]

diff --git a/common/getTestModels.sh b/common/getTestModels.sh
new file mode 100755 (executable)
index 0000000..c81248c
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+if [[ $# -eq 0 ]]; then
+       TARGET="tflite_model"
+else
+       TARGET="$1"
+fi
+
+mkdir -p ${TARGET}
+pushd ${TARGET}
+       ln -s ${DIR}/../tests/nnstreamer_filter_tensorflow_lite/models/mobilenet_v1_1.0_224_quant.tflite .
+       ln -s ${DIR}/../tests/nnstreamer_filter_tensorflow_lite/labels/labels.txt .
+popd