forked from mindspore-Ecosystem/mindspore
!17718 add compatible mindir models
Merge pull request !17718 from wangyanling/location
This commit is contained in:
commit
609ada7ec7
|
@ -1,3 +1,7 @@
|
||||||
inception_v4_ms_r1.0
|
inception_v4_ms_r1.0
|
||||||
mobilenet_v2_1.0_224_ms_r1.0
|
mobilenet_v2_1.0_224_ms_r1.0
|
||||||
resnext50_ms_r1.0
|
resnext50_ms_r1.0
|
||||||
|
ghostnet600 4.5
|
||||||
|
ghostnet_int8 8
|
||||||
|
ghostnet 45
|
||||||
|
ssd 1.5
|
|
@ -9,4 +9,4 @@ mtk_model_emotions_0727_nosoftmax.tflite
|
||||||
landmark
|
landmark
|
||||||
PoseNet_dla_17_x512_tmp
|
PoseNet_dla_17_x512_tmp
|
||||||
plat_isface
|
plat_isface
|
||||||
# ml_location_lane_counter.onnx;5.5
|
ml_location_lane_counter.onnx;5.5
|
||||||
|
|
|
@ -98,7 +98,7 @@ mtk_face_features_v1.pb
|
||||||
Q_crnn_ori_75w_slim_norm.pb
|
Q_crnn_ori_75w_slim_norm.pb
|
||||||
Q_crnn_ori_v2_405001_notrans_nopre.pb
|
Q_crnn_ori_v2_405001_notrans_nopre.pb
|
||||||
bolt_segment.pb
|
bolt_segment.pb
|
||||||
# ml_location_lane_counter.onnx;2
|
ml_location_lane_counter.onnx;2
|
||||||
gts_detect_5k_tf115.tflite
|
gts_detect_5k_tf115.tflite
|
||||||
smartreply.tflite
|
smartreply.tflite
|
||||||
ml_text_correction.tflite
|
ml_text_correction.tflite
|
||||||
|
|
|
@ -626,26 +626,27 @@ function Run_arm64() {
|
||||||
|
|
||||||
# Run compatibility test models:
|
# Run compatibility test models:
|
||||||
while read line; do
|
while read line; do
|
||||||
model_name=${line%;*}
|
compat_line_info=${line}
|
||||||
length=${#model_name}
|
if [[ $compat_line_info == \#* ]]; then
|
||||||
input_shapes=${line:length+1}
|
|
||||||
if [[ $model_name == \#* ]]; then
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo ${model_name} >> "${run_arm64_fp32_log_file}"
|
model_info=`echo ${compat_line_info}|awk -F ' ' '{print $1}'`
|
||||||
|
accuracy_limit=`echo ${compat_line_info}|awk -F ' ' '{print $2}'`
|
||||||
|
model_name=${model_info%%;*}
|
||||||
|
length=${#model_name}
|
||||||
|
input_shapes=${model_info:length+1}
|
||||||
|
echo "---------------------------------------------------------" >> "${run_arm64_fp32_log_file}"
|
||||||
|
echo "compat run: ${model_name}, accuracy limit:${accuracy_limit}" >> "${run_arm64_fp32_log_file}"
|
||||||
|
|
||||||
echo 'cd /data/local/tmp/benchmark_test' > adb_run_cmd.txt
|
echo 'cd /data/local/tmp/benchmark_test' > adb_run_cmd.txt
|
||||||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'.ms --inputShapes='${input_shapes} >> "${run_arm64_fp32_log_file}"
|
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test' >> adb_run_cmd.txt
|
||||||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'.ms --inputShapes='${input_shapes} >> adb_run_cmd.txt
|
if [ -z "$accuracy_limit" ]; then
|
||||||
adb -s ${device_id} shell < adb_run_cmd.txt >> "${run_arm64_fp32_log_file}"
|
echo './benchmark --modelFile='${model_name}'.ms --warmUpLoopCount=1 --loopCount=2 --inputShapes='${input_shapes} >> "${run_arm64_fp32_log_file}"
|
||||||
if [ $? = 0 ]; then
|
echo './benchmark --modelFile='${model_name}'.ms --warmUpLoopCount=1 --loopCount=2 --inputShapes='${input_shapes} >> adb_run_cmd.txt
|
||||||
run_result='arm64: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file}
|
|
||||||
else
|
else
|
||||||
run_result='arm64: '${model_name}' failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1
|
echo './benchmark --modelFile='${model_name}'.ms --inDataFile=/data/local/tmp/input_output/input/'${model_name}'.ms.bin --benchmarkDataFile=/data/local/tmp/input_output/output/'${model_name}'.ms.out --accuracyThreshold='${accuracy_limit} ' --inputShapes='${input_shapes} >> adb_run_cmd.txt
|
||||||
fi
|
fi
|
||||||
# run benchmark test without clib data
|
cat adb_run_cmd.txt >> "${run_arm64_fp32_log_file}"
|
||||||
echo 'cd /data/local/tmp/benchmark_test' > adb_run_cmd.txt
|
|
||||||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'.ms --warmUpLoopCount=1 --loopCount=2 --inputShapes='${input_shapes} >> "${run_arm64_fp32_log_file}"
|
|
||||||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'.ms --warmUpLoopCount=1 --loopCount=2 --inputShapes='${input_shapes} >> adb_run_cmd.txt
|
|
||||||
adb -s ${device_id} shell < adb_run_cmd.txt >> "${run_arm64_fp32_log_file}"
|
adb -s ${device_id} shell < adb_run_cmd.txt >> "${run_arm64_fp32_log_file}"
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
run_result='arm64: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file}
|
run_result='arm64: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file}
|
||||||
|
|
Loading…
Reference in New Issue