From 53ba05dfdffb7404d71cb12b86beb0f004af3673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=9B?= Date: Thu, 24 Mar 2022 08:29:35 +0000 Subject: [PATCH 1/2] update train_performance_1p.sh. --- .../Googlenet_ID0447_for_PyTorch/test/train_performance_1p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_1p.sh b/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_1p.sh index 15ef6e7fb3..90f097e6f5 100644 --- a/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_1p.sh +++ b/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_1p.sh @@ -74,7 +74,7 @@ e2e_time=$(( $end_time - $start_time )) #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -FPS=`grep -a 'Epoch:' $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|grep eta:|awk -F "img/s: " '{print $NF}'|awk 'NR==1{max=$1;next}{max=max>$1?max:$1}END{print max}'` +FPS=`grep -a 'Epoch:' $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "img/s: " '{print $2}'|awk '{print $1}'|awk 'NR>2'| awk '{sum+=$1} END {print sum/NR}'` #打印,不需要修改 echo "Final Performance images/sec : $FPS" -- Gitee From ff533c3974fe4e7883c240bb8c82f7f9cd3ead3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=9B?= Date: Thu, 24 Mar 2022 08:30:23 +0000 Subject: [PATCH 2/2] update train_performance_8p.sh. --- .../Googlenet_ID0447_for_PyTorch/test/train_performance_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_8p.sh b/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_8p.sh index f3bbdbfb9f..3a0c3b7d32 100644 --- a/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_8p.sh +++ b/PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/test/train_performance_8p.sh @@ -93,7 +93,7 @@ e2e_time=$(( $end_time - $start_time )) #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -FPS=`grep -a 'Epoch:' $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|grep eta:|awk -F "img/s: " '{print $NF}'|awk 'NR==1{max=$1;next}{max=max>$1?max:$1}END{print max}'` +FPS=`grep -a 'Epoch:' $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "img/s: " '{print $2}'|awk '{print $1}'|awk 'NR>2'| awk '{sum+=$1} END {print sum/NR}'` #打印,不需要修改 echo "Final Performance images/sec : $FPS" -- Gitee