From 195df77a84c5d2bedd35ae0ec2515f186da4628d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9C=B5?= <9953286+wang-duo22@user.noreply.gitee.com> Date: Wed, 13 Apr 2022 03:01:30 +0000 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=89=8D=E9=9D=A22=E8=A1=8CF?= =?UTF-8?q?PS=E4=BD=8E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Hourglass_ID1809_for_PyTorch/test/train_performance_8p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyTorch/dev/cv/image_classification/Hourglass_ID1809_for_PyTorch/test/train_performance_8p.sh b/PyTorch/dev/cv/image_classification/Hourglass_ID1809_for_PyTorch/test/train_performance_8p.sh index ebdab5ffd4..4bd2da91c9 100644 --- a/PyTorch/dev/cv/image_classification/Hourglass_ID1809_for_PyTorch/test/train_performance_8p.sh +++ b/PyTorch/dev/cv/image_classification/Hourglass_ID1809_for_PyTorch/test/train_performance_8p.sh @@ -164,7 +164,7 @@ sed -i "s|\r|\n|g" ${cur_path}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ #结果打印,不需要修改 echo "------------------ Final result ------------------" #输出性能FPS,需要模型审视修改 -FPS=`grep "fps:" $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "fps: " '{print $2}'|awk '{sum+=$1} END {print"",sum/NR}'|sed s/[[:space:]]//g` +FPS=`grep "fps:" $cur_path/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk -F "fps: " '{print $2}'|awk 'NR>2'|awk '{sum+=$1} END {print"",sum/NR}'|sed s/[[:space:]]//g` FPS=$(awk 'BEGIN{print '$FPS'*8}') #打印,不需要修改 -- Gitee