From 90944b60b299c7ef74ebbc3729ccb5f844b5993f Mon Sep 17 00:00:00 2001 From: jiangxing001 <1484736931@qq.com> Date: Wed, 15 Mar 2023 08:47:42 +0000 Subject: [PATCH 1/2] update TensorFlow/built-in/cv/detection/SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh. Signed-off-by: jiangxing001 <1484736931@qq.com> --- .../SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TensorFlow/built-in/cv/detection/SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh b/TensorFlow/built-in/cv/detection/SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh index 0004076aa..e663985dc 100644 --- a/TensorFlow/built-in/cv/detection/SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh +++ b/TensorFlow/built-in/cv/detection/SSD-VGG_ID1619_for_TensorFlow/test/train_performance_1p.sh @@ -63,8 +63,7 @@ start=$(date +%s) nohup python3 train.py \ --epochs ${train_epochs} \ --data-dir $data_path/pascal-voc \ - --vgg-dir $data_path/vgg_graph \ - "${@:1}" > $cur_path/test/output/$ASCEND_DEVICE_ID/train_$ASCEND_DEVICE_ID.log 2>&1 & + --vgg-dir $data_path/vgg_graph > $cur_path/test/output/$ASCEND_DEVICE_ID/train_$ASCEND_DEVICE_ID.log 2>&1 & wait end=$(date +%s) -- Gitee From 6a56e407e7771875407d85e615fc778a8d3b39a1 Mon Sep 17 00:00:00 2001 From: jiangxing001 <1484736931@qq.com> Date: Thu, 16 Mar 2023 07:20:53 +0000 Subject: [PATCH 2/2] update TensorFlow/contrib/cv/deeplab-v3-plus/deeplabv3+_hw09124698/test/train_perf_1p.sh. Signed-off-by: jiangxing001 <1484736931@qq.com> --- .../deeplabv3+_hw09124698/test/train_perf_1p.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TensorFlow/contrib/cv/deeplab-v3-plus/deeplabv3+_hw09124698/test/train_perf_1p.sh b/TensorFlow/contrib/cv/deeplab-v3-plus/deeplabv3+_hw09124698/test/train_perf_1p.sh index fa0e0fbdf..c08ded696 100644 --- a/TensorFlow/contrib/cv/deeplab-v3-plus/deeplabv3+_hw09124698/test/train_perf_1p.sh +++ b/TensorFlow/contrib/cv/deeplab-v3-plus/deeplabv3+_hw09124698/test/train_perf_1p.sh @@ -106,10 +106,12 @@ e2e_time=$(( $end_time - $start_time )) #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -step_sec=`grep -a 'INFO:tensorflow:global_step/sec: ' ${cur_path}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'END {print $2}'` + +i=`grep -a 'INFO:tensorflow:global_step/sec: ' ${cur_path}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'END {print $7}'` +step_sec=${i##*(} #FPS=`grep "Final Performance images/sec" ${cur_path}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk '{print $5}'` #FPS=`expr ${RANK_SIZE} \* ${FPS}` -FPS=`awk -v x="$batch_size" -v y="$step_sec" 'BEGIN{printf "%.2f\n",x*y}'` +FPS=`awk -v x="$batch_size" -v y="$step_sec" 'BEGIN{printf "%.2f\n",x/y}'` FPS=`awk -v x="$RANK_SIZE" -v y="$FPS" 'BEGIN{printf "%.2f\n",x*y}'` #打印,不需要修改 echo "Final Performance images/sec : $FPS" -- Gitee