Browse Source

add tflite model

tags/v0.7.0-beta
liuxiao78 5 years ago
parent
commit
6368a96a38
2 changed files with 7 additions and 6 deletions
  1. +2
    -1
      mindspore/lite/test/models_tflite.cfg
  2. +5
    -5
      mindspore/lite/test/run_benchmark_nets.sh

+ 2
- 1
mindspore/lite/test/models_tflite.cfg View File

@@ -30,6 +30,7 @@ mtk_model_ckpt.tflite
mtk_age_gender.tflite
mtk_model_face_dress.tflite
densenet.tflite
squeezenet.tflite
resnet_v2_101_299.tflite
mnasnet_1.3_224.tflite
inception_v3.tflite
@@ -55,5 +56,5 @@ inception_resnet_v2.tflite
ml_ocr_latin.tflite
hiai_ssd_mobilenetv2_object.tflite
inception_v4.tflite
mtk_model_normalize_object_scene_ps_20200519_f16.tflite
ml_object_detect.tflite
mtk_model_normalize_object_scene_ps_20200519_f16.tflite

+ 5
- 5
mindspore/lite/test/run_benchmark_nets.sh View File

@@ -209,7 +209,7 @@ while getopts "a:c:m:d:" opt; do
m)
models_path=${OPTARG}
echo "models_path is ${OPTARG}"
;;
;;
d)
device_id=${OPTARG}
echo "device_id is ${OPTARG}"
@@ -220,11 +220,11 @@ while getopts "a:c:m:d:" opt; do
esac
done

# Unzip arm
# Unzip arm
cd ${arm_path} || exit 1
tar -zxf MSLite-*-linux_arm64.tar.gz || exit 1

# Unzip convertor
# Unzip convertor
cd ${convertor_path} || exit 1
tar -zxf MSLite-*-linux_x86_64.tar.gz || exit 1
cd ${convertor_path}/MSLite-*-linux_x86_64 || exit 1
@@ -325,7 +325,7 @@ echo 'chmod 777 benchmark' >> adb_cmd.txt

adb -s ${device_id} shell < adb_cmd.txt

# Write resulte to temp file
# Write resulte to temp file
run_benchmark_result_file=${basepath}/run_benchmark_result.txt
echo 'cases :' > ${run_benchmark_result_file}

@@ -335,7 +335,7 @@ Run_x86_PID=$!
sleep 1

# Run on arm64
Run_arm64 &
Run_arm64 &
Run_arm64_PID=$!

wait ${Run_x86_PID}


Loading…
Cancel
Save