diff --git a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh index 1d702a9891ad199d91f9f8c4d5e18896f9fa12b9..4aabf10e9e25ac09c9dd2095cb0fbdc0c1f0b807 100644 --- a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh +++ b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_1p.sh @@ -147,7 +147,7 @@ ActualFPS=${FPS} TrainingTime=${sec_per_iter} # 从train_$ASCEND_DEVICE_ID.log提取Loss到train_${CaseName}_loss.txt中,需要根据模型审视 -grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt +grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'NR>2'|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt # 最后一个迭代loss值,不需要修改 ActualLoss=`awk 'END {print}' ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt` diff --git a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh index 840ed591957963fd8ef92f1d00f8cee3c0369914..53ab118b60cb1466244d19ccb83554070743d1d5 100644 --- a/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh +++ b/TensorFlow/contrib/cv/NOISE2NOISE_ID0800_for_TensorFlow/test/train_performance_8p.sh @@ -161,7 +161,7 @@ ActualFPS=${FPS} TrainingTime=${sec_per_iter} # 从train_$ASCEND_DEVICE_ID.log提取Loss到train_${CaseName}_loss.txt中,需要根据模型审视 -grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt +grep 'loss' ${test_path_dir}/output/${ASCEND_DEVICE_ID}/train_${ASCEND_DEVICE_ID}.log|awk 'NR>2'|awk '{print $(NF-2)}' >> ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt # 最后一个迭代loss值,不需要修改 ActualLoss=`awk 'END {print}' ${test_path_dir}/output/$ASCEND_DEVICE_ID/train_${CaseName}_loss.txt`