From ff281c5ee55dffe66c6eaad876e6234b72d02a88 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Sat, 13 Oct 2018 16:14:21 +0900 Subject: [PATCH] [Utility] For demo, create a shell script loading model/label For the demonstration, provide a shell script that gets the standard example tflite model and its labeling file Signed-off-by: MyungJoo Ham --- common/getTestModels.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 common/getTestModels.sh diff --git a/common/getTestModels.sh b/common/getTestModels.sh new file mode 100755 index 0000000..c81248c --- /dev/null +++ b/common/getTestModels.sh @@ -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 -- 2.7.4