forked from mindspore-Ecosystem/mindspore
!4373 add comment to lite test
Merge pull request !4373 from ghzl/add-comment-to-lite_test
This commit is contained in:
commit
2a04692c99
|
@ -1,9 +1,12 @@
|
|||
hiai_model_0909_kd_rot_ps_softmax.tflite
|
||||
hiai_chinese_english_recognize_model_float32.tflite
|
||||
hiai_bigmodel_ghost_2_1_no_normalized_no_trans_tflite.tflite
|
||||
#hiai_bigmodel_ghost_2_1_no_normalized_no_trans_tflite.tflite
|
||||
hiai_bigmodel_ghost_5_1_no_normalized_no_trans_tflite.tflite
|
||||
hiai_cn_recognize_modify_padv2.tflite
|
||||
hiai_model_normalize_object_scene_ps_20200519.tflite
|
||||
#hiai_detectmodel_06_23_960_480_1180700.tflite
|
||||
#hiai_detect_curve_model_float32.tflite
|
||||
#hiai_detectmodel_desnet_256_128_64_32.tflite
|
||||
mtk_AADB_HADB_MBV2_model_fp32.tflite
|
||||
mobilenet_v1_0.25_128.tflite
|
||||
mobilenet_v1_0.25_160.tflite
|
||||
|
|
|
@ -5,6 +5,9 @@ function Run_x86() {
|
|||
# Run tflite converted models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
echo 'cd '${convertor_path}'/MSLite-*-linux_x86_64'
|
||||
cd ${convertor_path}/MSLite-*-linux_x86_64 || return 1
|
||||
|
@ -23,6 +26,9 @@ function Run_x86() {
|
|||
# Run caffe converted models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
echo 'cd '${convertor_path}'/MSLite-*-linux_x86_64'
|
||||
cd ${convertor_path}/MSLite-*-linux_x86_64 || return 1
|
||||
|
@ -44,6 +50,9 @@ function Run_arm64() {
|
|||
# Run tflite converted models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
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 --modelPath='${model_name}'.ms --inDataPath=/data/local/tmp/input_output/input/'${model_name}'.ms.bin --calibDataPath=/data/local/tmp/input_output/output/'${model_name}'.ms.out --warmUpLoopCount=1 --loopCount=1'
|
||||
|
@ -63,6 +72,9 @@ function Run_arm64() {
|
|||
# Run caffe converted models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
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 --modelPath='${model_name}'.ms --inDataPath=/data/local/tmp/input_output/input/'${model_name}'.ms.bin --calibDataPath=/data/local/tmp/input_output/output/'${model_name}'.ms.out --warmUpLoopCount=1 --loopCount=1'
|
||||
|
@ -148,6 +160,9 @@ ms_models_path=${basepath}/ms_models
|
|||
# Convert tflite models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
echo './converter_lite --fmk=TFLITE --modelFile='${models_path}'/'${model_name}' --outputFile='${ms_models_path}'/'${model_name}''
|
||||
./converter_lite --fmk=TFLITE --modelFile=$models_path/${model_name} --outputFile=${ms_models_path}/${model_name}
|
||||
|
@ -156,6 +171,9 @@ done < ${models_tflite_config}
|
|||
# Convert caffe models:
|
||||
while read line; do
|
||||
model_name=${line}
|
||||
if [[ $model_name == \#* ]]; then
|
||||
continue
|
||||
fi
|
||||
echo ${model_name}
|
||||
pwd
|
||||
echo './converter_lite --fmk=CAFFE --modelFile='${models_path}'/'${model_name}'.prototxt --weightFile='${models_path}'/'${model_name}'.caffemodel --outputFile='${ms_models_path}'/'${model_name}''
|
||||
|
|
Loading…
Reference in New Issue