Files
SDK_SG200x_V2/cviruntime/samples/run_classifier_fused_preprocess.sh
carbon e25f20f7a3 add cviruntime
commit 3f4938648950a7f3bf9a19c320ca9fae7c52de20
Author: sophgo-forum-service <forum_service@sophgo.com>
Date:   Mon May 13 13:44:23 2024 +0800

    [feat] cviruntime opensource for cv18xx soc.

    - a4b6a3, add cumsum and gatherelements_pt.
2024-05-31 11:51:34 +08:00

21 lines
604 B
Bash
Executable File

#!/bin/sh
if [ -z $MODEL_PATH ]; then
echo "$0 MODEL_PATH not set"
exit 1
fi
if [ ! -e ./bin/cvi_sample_classifier_fused_preprocess ]; then
echo "$0 Please run at the same dir as the script"
exit 1
fi
if [ ! -e $MODEL_PATH/mobilenet_v2_fused_preprocess.cvimodel ]; then
echo "$0 Model mobilenet_v2_fused_preprocess.cvimodel not present"
exit 1
fi
./bin/cvi_sample_classifier_fused_preprocess \
$MODEL_PATH/mobilenet_v2_fused_preprocess.cvimodel \
./data/cat.jpg \
./data/synset_words.txt
test $? -ne 0 && echo "cvi_sample_classifier_fused_preprocess failed !!" && exit 1
exit 0