From b0e454ca26554ad3dec645f844b22f59a22fc097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Mon, 26 Jul 2021 01:17:57 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20Ascend-P?= =?UTF-8?q?yTorch=E7=A6=BB=E7=BA=BF=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ON?= =?UTF-8?q?NX=E6=A8=A1=E5=9E=8B=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/offici?= =?UTF-8?q?al/cv/ReID/ReID-strong-baseline/test/perf=5Fg.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReID/ReID-strong-baseline/test/perf_g.sh" | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 "Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/test/perf_g.sh" diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/test/perf_g.sh" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/test/perf_g.sh" deleted file mode 100644 index a1c5a64..0000000 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/test/perf_g.sh" +++ /dev/null @@ -1,19 +0,0 @@ -trtexec --onnx=ReID.onnx --fp16 --shapes=image:1x3x256x128 > ReID_bs1.log -perf_str=`grep "GPU.* mean.*ms$" ReID_bs1.log` -if [ -n "$perf_str" ]; then - perf_num=`echo $perf_str | awk -F' ' '{print $16}'` -else - perf_str=`grep "mean.*ms$" ReID_bs1.log` - perf_num=`echo $perf_str | awk -F' ' '{print $4}'` -fi -awk 'BEGIN{printf "t4 bs1 fps:%.3f\n", 1000*1/('$perf_num'/1)}' - -trtexec --onnx=ReID.onnx --fp16 --shapes=image:16x3x256x128 > ReID_bs16.log -perf_str=`grep "GPU.* mean.*ms$" ReID_bs16.log` -if [ -n "$perf_str" ]; then - perf_num=`echo $perf_str | awk -F' ' '{print $16}'` -else - perf_str=`grep "mean.*ms$" ReID_bs16.log` - perf_num=`echo $perf_str | awk -F' ' '{print $4}'` -fi -awk 'BEGIN{printf "t4 bs16 fps:%.3f\n", 1000*1/('$perf_num'/16)}' \ No newline at end of file -- Gitee