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 15ef6e7fb3308ea416f3583520e4907c1c2de681..90f097e6f581aa63f9d2f561a8aa3f9cf58c4f5d 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" 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 f3bbdbfb9f855c8369522bd75604663a314dfd67..3a0c3b7d32414bd758548ab4cf6dca1b14d680a0 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"