diff --git a/official/audio/ecapa_tdnn/scripts/run_infer_310.sh b/official/audio/ecapa_tdnn/scripts/run_infer_310.sh index e2bec214541a0d9bd896038c2d037ee3193358dc..24bda6aa580cc3a3ef7923d0ea16e617243cafa6 100644 --- a/official/audio/ecapa_tdnn/scripts/run_infer_310.sh +++ b/official/audio/ecapa_tdnn/scripts/run_infer_310.sh @@ -75,7 +75,7 @@ function infer() rm -rf ./testdata fi mkdir testdata - python3 ../ascend310_infer/310infer_preprocess.py $datapath + python ../ascend310_infer/310infer_preprocess.py $datapath if [ -d output ]; then rm -rf ./output fi diff --git a/official/cv/c3d/ascend310_infer/build.sh b/official/cv/c3d/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/official/cv/c3d/ascend310_infer/build.sh +++ b/official/cv/c3d/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/official/cv/c3d/scripts/run_infer_310.sh b/official/cv/c3d/scripts/run_infer_310.sh index 3eb40b58ea6dc54e2c18ff4dea0030447c438306..4c8b88b9a243632f70e3e48b97f01afc1fe2d37d 100644 --- a/official/cv/c3d/scripts/run_infer_310.sh +++ b/official/cv/c3d/scripts/run_infer_310.sh @@ -76,7 +76,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --batch_size 1 + python ../preprocess.py --batch_size 1 } function compile_app() @@ -104,9 +104,9 @@ function infer() function cal_acc() { if [ "$dataset" == "HMDB51" ]; then - python3.7 ../postprocess.py --batch_size 1 &> acc.log + python ../postprocess.py --batch_size 1 &> acc.log else - python3.7 ../postprocess.py --num_classes 101 --batch_size 1 &> acc.log + python ../postprocess.py --num_classes 101 --batch_size 1 &> acc.log fi } diff --git a/official/cv/east/scripts/run_infer_310.sh b/official/cv/east/scripts/run_infer_310.sh index 7003fb3f79757a3c417b1e33e91e8a77a8493abf..b0d1f6cb7356619438826a44074186d02916fe37 100644 --- a/official/cv/east/scripts/run_infer_310.sh +++ b/official/cv/east/scripts/run_infer_310.sh @@ -80,7 +80,7 @@ function infer() function cal_acc() { cd .. || exit - python3.7 postprocess.py --result_path=./scripts/result_Files &> ./acc.log & + python postprocess.py --result_path=./scripts/result_Files &> ./acc.log & } diff --git a/official/cv/erfnet/ascend310_infer/src/build.sh b/official/cv/erfnet/ascend310_infer/src/build.sh index 8fadaa851ee7cf29661b96a012d7706b046c229f..74b0cf67637c73b30b25825ea80be000a50f10ce 100644 --- a/official/cv/erfnet/ascend310_infer/src/build.sh +++ b/official/cv/erfnet/ascend310_infer/src/build.sh @@ -15,6 +15,6 @@ # ============================================================================ mkdir build cd build -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make cd .. \ No newline at end of file diff --git a/official/cv/faster_rcnn/ascend310_infer/build.sh b/official/cv/faster_rcnn/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/official/cv/faster_rcnn/ascend310_infer/build.sh +++ b/official/cv/faster_rcnn/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/official/cv/nasnet/scripts/run_infer_310.sh b/official/cv/nasnet/scripts/run_infer_310.sh index 7434df9205b98c206c482c32949fec31e1acefd1..4dbd64692ce0556260bad5b6d667945983d4a38e 100644 --- a/official/cv/nasnet/scripts/run_infer_310.sh +++ b/official/cv/nasnet/scripts/run_infer_310.sh @@ -77,7 +77,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ } function compile_app() @@ -103,7 +103,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/official/cv/patchcore/scripts/run_310_infer.sh b/official/cv/patchcore/scripts/run_310_infer.sh index 538104fbbeaa1c73d984605ade86a7b32ddfbbe6..8d7af18c8bb0807447e0074586613ea0452fa0f4 100644 --- a/official/cv/patchcore/scripts/run_310_infer.sh +++ b/official/cv/patchcore/scripts/run_310_infer.sh @@ -76,7 +76,7 @@ function preprocess_data() { mkdir ./img/$category/infer mkdir ./img/$category/label - python3.7 ../preprocess.py \ + python ../preprocess.py \ --data_dir $dataset_path \ --img_dir ./img \ --category $category @@ -119,7 +119,7 @@ function infer() { } function cal_acc() { - python3 ../postprocess.py \ + python ../postprocess.py \ --result_dir ./img/$category/result/ \ --img_dir ./img/$category/infer/ \ --label_dir ./img/$category/label/ \ diff --git a/official/cv/posenet/scripts/run_infer_310.sh b/official/cv/posenet/scripts/run_infer_310.sh index aedb7bd01a3dcc150108c4c39c2b6c2cc3941efa..2dbc63e615269157c7e7f390396e50aef7a1f367 100644 --- a/official/cv/posenet/scripts/run_infer_310.sh +++ b/official/cv/posenet/scripts/run_infer_310.sh @@ -77,7 +77,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --label_path=$label_path &> acc.log & + python ../postprocess.py --result_path=./result_Files --label_path=$label_path &> acc.log & } compile_app diff --git a/official/cv/shufflenetv2/scripts/run_infer_310.sh b/official/cv/shufflenetv2/scripts/run_infer_310.sh index 7434df9205b98c206c482c32949fec31e1acefd1..4dbd64692ce0556260bad5b6d667945983d4a38e 100644 --- a/official/cv/shufflenetv2/scripts/run_infer_310.sh +++ b/official/cv/shufflenetv2/scripts/run_infer_310.sh @@ -77,7 +77,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ } function compile_app() @@ -103,7 +103,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/official/recommend/naml/ascend310_infer/build.sh b/official/recommend/naml/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/official/recommend/naml/ascend310_infer/build.sh +++ b/official/recommend/naml/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/official/recommend/naml/script/run_infer_310.sh b/official/recommend/naml/script/run_infer_310.sh index 2ea348ed196d7f6ebf27ff67dabb166c6f47b8fe..cd1dc698d717ca784d38da062ac653b5f26d31fd 100644 --- a/official/recommend/naml/script/run_infer_310.sh +++ b/official/recommend/naml/script/run_infer_310.sh @@ -66,7 +66,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --preprocess_path=./preprocess_Result &> preprocess.log + python ../preprocess.py --preprocess_path=./preprocess_Result &> preprocess.log if [ $? -ne 0 ]; then echo "preprocess data failed" exit 1 diff --git a/official/recommend/tbnet/ascend310_infer/build.sh b/official/recommend/tbnet/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/official/recommend/tbnet/ascend310_infer/build.sh +++ b/official/recommend/tbnet/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/AlphaPose/scripts/run_infer_310.sh b/research/cv/AlphaPose/scripts/run_infer_310.sh index 8c95d84a55d22487401ba68ccb4698abc3af214d..950e46a927e2ae7e588c9fb2658c51ed3607d30c 100644 --- a/research/cv/AlphaPose/scripts/run_infer_310.sh +++ b/research/cv/AlphaPose/scripts/run_infer_310.sh @@ -68,7 +68,7 @@ function preprocess_data() if [ -d ./data_bin ]; then rm -rf ./data_bin fi - python3.7 ../data_to_bin.py --dataset_path=$data_path &> preprocess.log + python ../data_to_bin.py --dataset_path=$data_path &> preprocess.log } function compile_app() diff --git a/research/cv/ArbitraryStyleTransfer/scripts/run_infer_310.sh b/research/cv/ArbitraryStyleTransfer/scripts/run_infer_310.sh index f1d25395c97706e4a950e4500416f96a4bdc551f..11ba1cea43e221374aaea8ba9cab46c087a8c01a 100644 --- a/research/cv/ArbitraryStyleTransfer/scripts/run_infer_310.sh +++ b/research/cv/ArbitraryStyleTransfer/scripts/run_infer_310.sh @@ -57,7 +57,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --content_path $content_path --style_path $style_path --output_path='./preprocess_Result/' + python ../preprocess.py --content_path $content_path --style_path $style_path --output_path='./preprocess_Result/' } function compile_app() { @@ -90,7 +90,7 @@ function post_process() rm -rf ./postprocess_Result_interpolation fi mkdir postprocess_Result_interpolation - python3.7 ../postprocess.py --bin_path='./result_Files' --output_dir='./postprocess_Result/' --output_dir_interpolation='./postprocess_Result_interpolation/' &> postprocess.log + python ../postprocess.py --bin_path='./result_Files' --output_dir='./postprocess_Result/' --output_dir_interpolation='./postprocess_Result_interpolation/' &> postprocess.log } preprocess_data diff --git a/research/cv/AutoSlim/scripts/run_infer_310.sh b/research/cv/AutoSlim/scripts/run_infer_310.sh index c73f5188e980644926760e6065f07cd6a116879e..4184e3a084608ffa3ec76e238150edb259a9676e 100644 --- a/research/cv/AutoSlim/scripts/run_infer_310.sh +++ b/research/cv/AutoSlim/scripts/run_infer_310.sh @@ -59,7 +59,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_path=$dataset_path + python ../preprocess.py --data_path=$dataset_path } function compile_app() @@ -85,7 +85,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py &> acc.log + python ../postprocess.py &> acc.log } preprocess_data diff --git a/research/cv/CGAN/script/run_infer_310.sh b/research/cv/CGAN/script/run_infer_310.sh index 4629e23b02561dc11d71d40099ce702db91d4253..fabc915f9c052454e9db10a0550301eb539db6e0 100644 --- a/research/cv/CGAN/script/run_infer_310.sh +++ b/research/cv/CGAN/script/run_infer_310.sh @@ -66,7 +66,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --output_path='./preprocess_Result/' + python ../preprocess.py --output_path='./preprocess_Result/' } function compile_app() { @@ -96,7 +96,7 @@ function post_process() rm -rf ./postprocess_Result fi mkdir postprocess_Result - python3.7 ../postprocess.py --output_path='./postprocess_Result/' + python ../postprocess.py --output_path='./postprocess_Result/' } preprocess_data diff --git a/research/cv/CycleGAN/ascend310_infer/build.sh b/research/cv/CycleGAN/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/CycleGAN/ascend310_infer/build.sh +++ b/research/cv/CycleGAN/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/CycleGAN/scripts/run_infer_310.sh b/research/cv/CycleGAN/scripts/run_infer_310.sh index 3282639c8e3626dacffa24adc0d6b8acccca402d..4a612d5400c108aa37fde59d27feac9f671dd1ee 100644 --- a/research/cv/CycleGAN/scripts/run_infer_310.sh +++ b/research/cv/CycleGAN/scripts/run_infer_310.sh @@ -83,7 +83,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 preprocess.py --dataroot=$dataset_path --data_dir=$dataset_mode --outputs_dir=./preprocess_Result/ >& preprocess.log + python preprocess.py --dataroot=$dataset_path --data_dir=$dataset_mode --outputs_dir=./preprocess_Result/ >& preprocess.log } function compile_app() @@ -114,7 +114,7 @@ function generate_img() rm -rf ./infer_output_img fi mkdir infer_output_img - python3.7 postprocess.py --dataroot=./result_Files --outputs_dir=./infer_output_img --device_id=$device_id &> acc.log + python postprocess.py --dataroot=./result_Files --outputs_dir=./infer_output_img --device_id=$device_id &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/DeepID/scripts/run_infer_310.sh b/research/cv/DeepID/scripts/run_infer_310.sh index 80d0755eccbcea634041a9036c5f2d464c4ac5fb..6c223e8e1b2ec9f42f20a11d97801f5a91b8636b 100644 --- a/research/cv/DeepID/scripts/run_infer_310.sh +++ b/research/cv/DeepID/scripts/run_infer_310.sh @@ -65,7 +65,7 @@ function preprocess_data() fi mkdir bin_data cd $scripts_path - python3.7 ../preprocess.py --data_url=$data_path &> preprocess.log + python ../preprocess.py --data_url=$data_path &> preprocess.log } function compile_app() @@ -96,7 +96,7 @@ function infer() function postprocess() { cd $scripts_path - python3.7 ../postprocess.py --result_path='./result_Files' --ori_path='../bin_data/label' &> postprocess.log + python ../postprocess.py --result_path='./result_Files' --ori_path='../bin_data/label' &> postprocess.log } preprocess_data diff --git a/research/cv/EGnet/scripts/run_infer_310.sh b/research/cv/EGnet/scripts/run_infer_310.sh index 30657fc9732ea8e5c2f6baee9c3fc534ae16975d..9d912459bf054ccf5e4ca4ffd1fdebeb8b9568a9 100644 --- a/research/cv/EGnet/scripts/run_infer_310.sh +++ b/research/cv/EGnet/scripts/run_infer_310.sh @@ -59,7 +59,7 @@ function preprocess_data() fi mkdir preprocess_Result mkdir preprocess_Mask_Result - python3.7 ../preprocess.py + python ../preprocess.py } function compile_app() { @@ -88,12 +88,12 @@ function post_process() rm -rf ./postprocess_Result fi mkdir postprocess_Result - python3.7 ../postprocess.py --bin_path='./result_Files/' --mask_path='./preprocess_Mask_Result/' --output_dir='./postprocess_Result/' &> postprocess.log + python ../postprocess.py --bin_path='./result_Files/' --mask_path='./preprocess_Mask_Result/' --output_dir='./postprocess_Result/' &> postprocess.log } function evaluation() { - python3.7 ../eval_310.py --pred_dir='./postprocess_Result/' &> evaluation.log + python ../eval_310.py --pred_dir='./postprocess_Result/' &> evaluation.log } preprocess_data diff --git a/research/cv/GENet_Res50/ascend310_infer/src/build.sh b/research/cv/GENet_Res50/ascend310_infer/src/build.sh index 7fac9cff3a98c83bce7e8f66053fab2ecebab86d..724c787b3646000019ded20c52854b2039cf295b 100644 --- a/research/cv/GENet_Res50/ascend310_infer/src/build.sh +++ b/research/cv/GENet_Res50/ascend310_infer/src/build.sh @@ -14,5 +14,5 @@ # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/cv/GENet_Res50/scripts/run_infer_310.sh b/research/cv/GENet_Res50/scripts/run_infer_310.sh index 0764ea8f66cf80751ccd143c0d69361d47613604..186912b62ecf89433bc64a752c2376a213027531 100644 --- a/research/cv/GENet_Res50/scripts/run_infer_310.sh +++ b/research/cv/GENet_Res50/scripts/run_infer_310.sh @@ -80,8 +80,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/HRNetW48_seg/scripts/ascend310_inference.sh b/research/cv/HRNetW48_seg/scripts/ascend310_inference.sh index c96e1544ea3c809e0f5b42abc07094f0eb7019fd..b4a617a7506197b21ab4c81fb03d907bae9925d5 100644 --- a/research/cv/HRNetW48_seg/scripts/ascend310_inference.sh +++ b/research/cv/HRNetW48_seg/scripts/ascend310_inference.sh @@ -66,7 +66,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ./preprocess.py --data_path=$data_path --train_path=./preprocess_Result &> preprocess.log + python ./preprocess.py --data_path=$data_path --train_path=./preprocess_Result &> preprocess.log } function infer() @@ -85,7 +85,7 @@ function infer() function cal_acc() { - python3.7 ./postprocess.py --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log + python ./postprocess.py --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log if [ $? -ne 0 ]; then echo "Calculate accuracy failed." exit 1 diff --git a/research/cv/LightCNN/ascend310_infer/src/build.sh b/research/cv/LightCNN/ascend310_infer/src/build.sh index 7fac9cff3a98c83bce7e8f66053fab2ecebab86d..724c787b3646000019ded20c52854b2039cf295b 100644 --- a/research/cv/LightCNN/ascend310_infer/src/build.sh +++ b/research/cv/LightCNN/ascend310_infer/src/build.sh @@ -14,5 +14,5 @@ # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/cv/LightCNN/scripts/run_infer_310.sh b/research/cv/LightCNN/scripts/run_infer_310.sh index ebea67d5ec622d818e02487503716f1f08c732ca..93ce0e4ac50d990e2bb0a798e7934255dd48c313 100644 --- a/research/cv/LightCNN/scripts/run_infer_310.sh +++ b/research/cv/LightCNN/scripts/run_infer_310.sh @@ -64,7 +64,7 @@ function preprocess_data() fi mkdir bin_data cd $scripts_path - python3.7 ../preprocess.py --data_path=$data_path &> preprocess.log + python ../preprocess.py --data_path=$data_path &> preprocess.log } function compile_app() @@ -93,7 +93,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --mat_files_path=../mat_files &> acc.log + python ../postprocess.py --result_path=./result_Files --mat_files_path=../mat_files &> acc.log } preprocess_data diff --git a/research/cv/OCRNet/scripts/ascend310_inference.sh b/research/cv/OCRNet/scripts/ascend310_inference.sh index c96e1544ea3c809e0f5b42abc07094f0eb7019fd..b4a617a7506197b21ab4c81fb03d907bae9925d5 100644 --- a/research/cv/OCRNet/scripts/ascend310_inference.sh +++ b/research/cv/OCRNet/scripts/ascend310_inference.sh @@ -66,7 +66,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ./preprocess.py --data_path=$data_path --train_path=./preprocess_Result &> preprocess.log + python ./preprocess.py --data_path=$data_path --train_path=./preprocess_Result &> preprocess.log } function infer() @@ -85,7 +85,7 @@ function infer() function cal_acc() { - python3.7 ./postprocess.py --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log + python ./postprocess.py --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log if [ $? -ne 0 ]; then echo "Calculate accuracy failed." exit 1 diff --git a/research/cv/PAMTRI/MultiTaskNet/ascend_310_infer/build.sh b/research/cv/PAMTRI/MultiTaskNet/ascend_310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/PAMTRI/MultiTaskNet/ascend_310_infer/build.sh +++ b/research/cv/PAMTRI/MultiTaskNet/ascend_310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/PAMTRI/MultiTaskNet/scripts/run_310_infer.sh b/research/cv/PAMTRI/MultiTaskNet/scripts/run_310_infer.sh index 315ed8a99b6db4ced4dd01875d6ffc446dd31884..b03d0a60eb5e206b455660246e47c36629d6a253 100644 --- a/research/cv/PAMTRI/MultiTaskNet/scripts/run_310_infer.sh +++ b/research/cv/PAMTRI/MultiTaskNet/scripts/run_310_infer.sh @@ -111,7 +111,7 @@ function preprocess_data() { fi mkdir label - python3.7 ../preprocess.py --result_dir ./input/ --label_dir ./label/ --data_dir $dataset_path --heatmapaware $use_heatmap --segmentaware $use_segment + python ../preprocess.py --result_dir ./input/ --label_dir ./label/ --data_dir $dataset_path --heatmapaware $use_heatmap --segmentaware $use_segment } function compile_app() { @@ -136,7 +136,7 @@ function infer() { } function cal_acc() { - python3.7 ../postprocess.py --input_dir ./ --result_dir ./result_Files/ --label_dir ./label/ > acc.log + python ../postprocess.py --input_dir ./ --result_dir ./result_Files/ --label_dir ./label/ > acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/PAMTRI/PoseEstNet/ascend_310_infer/build.sh b/research/cv/PAMTRI/PoseEstNet/ascend_310_infer/build.sh index 265486af905be56182e116303eb8cf440204e61a..32ff98d8f5270f34e6470c7cbab7eb47a4aac8ab 100644 --- a/research/cv/PAMTRI/PoseEstNet/ascend_310_infer/build.sh +++ b/research/cv/PAMTRI/PoseEstNet/ascend_310_infer/build.sh @@ -26,5 +26,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/PAMTRI/PoseEstNet/scripts/run_310_infer.sh b/research/cv/PAMTRI/PoseEstNet/scripts/run_310_infer.sh index b45c933e2d2ebfb42516700424acb7eb0245c109..aa32bd81044eab99e28a9045c9ae2e8dcc25d6fb 100644 --- a/research/cv/PAMTRI/PoseEstNet/scripts/run_310_infer.sh +++ b/research/cv/PAMTRI/PoseEstNet/scripts/run_310_infer.sh @@ -85,7 +85,7 @@ function preprocess_data() { fi mkdir label - python3.7 ../preprocess.py --cfg ../config.yaml --result_dir ./input/ --label_dir ./label/ --data_dir $dataset_path + python ../preprocess.py --cfg ../config.yaml --result_dir ./input/ --label_dir ./label/ --data_dir $dataset_path } function compile_app() { @@ -110,7 +110,7 @@ function infer() { } function cal_acc() { - python3.7 ../postprocess.py --cfg ../config.yaml --data_dir $dataset_path --result_dir ./result_Files/ --label_dir ./label/label.json --input_dir ./input/ > acc.log + python ../postprocess.py --cfg ../config.yaml --data_dir $dataset_path --result_dir ./result_Files/ --label_dir ./label/label.json --input_dir ./input/ > acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/PDarts/ascend310_infer/build.sh b/research/cv/PDarts/ascend310_infer/build.sh index f554472b8fb764fcd8c78b860d815fc1e9d192ac..e429f3859b6cfd1f606608c9465ec90cecb20535 100644 --- a/research/cv/PDarts/ascend310_infer/build.sh +++ b/research/cv/PDarts/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/PDarts/scripts/run_infer_310.sh b/research/cv/PDarts/scripts/run_infer_310.sh index 8761ca5a9668623b41b9a33d470331c0071f38c0..be30e45480a105a982fc8d33de259d945911e977 100644 --- a/research/cv/PDarts/scripts/run_infer_310.sh +++ b/research/cv/PDarts/scripts/run_infer_310.sh @@ -58,7 +58,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 preprocess.py --data_path=$dataset_path + python preprocess.py --data_path=$dataset_path } function compile_app() @@ -85,7 +85,7 @@ function infer() function cal_acc() { - python3.7 postprocess.py + python postprocess.py } preprocess_data @@ -107,4 +107,4 @@ cal_acc if [ $? -ne 0 ]; then echo "calculate accuracy failed" exit 1 -fi \ No newline at end of file +fi diff --git a/research/cv/PSPNet/scripts/run_infer_310.sh b/research/cv/PSPNet/scripts/run_infer_310.sh index aedbfa629f79c483db4ed19ada10d870965d27cc..aa850b517bb4361385a79d2505cc2a60443c8743 100644 --- a/research/cv/PSPNet/scripts/run_infer_310.sh +++ b/research/cv/PSPNet/scripts/run_infer_310.sh @@ -52,7 +52,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 preprocess.py --config=$YAML_PATH --save_path=./preprocess_Result/ --data_path=$DATA_PATH &> preprocess.log + python preprocess.py --config=$YAML_PATH --save_path=./preprocess_Result/ --data_path=$DATA_PATH &> preprocess.log } function compile_app() @@ -81,7 +81,7 @@ function postprocess_data() rm -rf ./postprocess_Result fi mkdir postprocess_Result - python3.7 postprocess.py --config=$YAML_PATH --data_path=$DATA_PATH &> postprocess.log + python postprocess.py --config=$YAML_PATH --data_path=$DATA_PATH &> postprocess.log } preprocess_data diff --git a/research/cv/ProtoNet/scripts/run_infer_310.sh b/research/cv/ProtoNet/scripts/run_infer_310.sh index fcc681ebc4b8fe0b70cbf07cf16b0fc732961418..85011fb6f7c3c90e34ad8fd7c6fe68c7847521f6 100644 --- a/research/cv/ProtoNet/scripts/run_infer_310.sh +++ b/research/cv/ProtoNet/scripts/run_infer_310.sh @@ -87,7 +87,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files/ --label_classses_path=$label_classes_path &> acc.log & + python ../postprocess.py --result_path=./result_Files/ --label_classses_path=$label_classes_path &> acc.log & } diff --git a/research/cv/SPPNet/ascend310_infer/src/build.sh b/research/cv/SPPNet/ascend310_infer/src/build.sh index 7fac9cff3a98c83bce7e8f66053fab2ecebab86d..724c787b3646000019ded20c52854b2039cf295b 100644 --- a/research/cv/SPPNet/ascend310_infer/src/build.sh +++ b/research/cv/SPPNet/ascend310_infer/src/build.sh @@ -14,5 +14,5 @@ # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/cv/SPPNet/scripts/run_infer_310.sh b/research/cv/SPPNet/scripts/run_infer_310.sh index 4d1b7adfd9c313c1afb29b3519d978d171ab46c2..f77e02452f7f2bca84ba675e4d0158bfb7aaad0d 100644 --- a/research/cv/SPPNet/scripts/run_infer_310.sh +++ b/research/cv/SPPNet/scripts/run_infer_310.sh @@ -79,8 +79,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/SRGAN/ascend310_infer/build.sh b/research/cv/SRGAN/ascend310_infer/build.sh index 922df6cb4d87095802306ba30c7741fe64ca79f1..a3afcf5a1393c68f1f2b8cb661507f24d9856c89 100644 --- a/research/cv/SRGAN/ascend310_infer/build.sh +++ b/research/cv/SRGAN/ascend310_infer/build.sh @@ -24,5 +24,5 @@ if [ -f "Makefile" ]; then make clean fi -cmake .. -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake .. -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/SRGAN/scripts/run_infer_310.sh b/research/cv/SRGAN/scripts/run_infer_310.sh index 4f102e90e83e7279f9f46c83b40bd9578b7db20f..9f1dd830cad8cca7c98d25842c7be1a9922f0b3c 100644 --- a/research/cv/SRGAN/scripts/run_infer_310.sh +++ b/research/cv/SRGAN/scripts/run_infer_310.sh @@ -69,7 +69,7 @@ function preprocess_data() rm -rf ./preprocess_path fi mkdir preprocess_path - python3.7 ../preprocess.py --test_LR_path=$test_LR_path --test_GT_path=$test_GT_path --result_path=./preprocess_path/ + python ../preprocess.py --test_LR_path=$test_LR_path --test_GT_path=$test_GT_path --result_path=./preprocess_path/ } function compile_app() @@ -100,7 +100,7 @@ function cal_acc() rm -rf ./infer_output fi mkdir infer_output - python3.7 ../postprocess.py --test_LR_path=$test_LR_path --test_GT_path=$test_GT_path --device_id=$device_id &> acc.log + python ../postprocess.py --test_LR_path=$test_LR_path --test_GT_path=$test_GT_path --device_id=$device_id &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/STGAN/ascend310_infer/build.sh b/research/cv/STGAN/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/STGAN/ascend310_infer/build.sh +++ b/research/cv/STGAN/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/SiamFC/ascend310_infer/build.sh b/research/cv/SiamFC/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/SiamFC/ascend310_infer/build.sh +++ b/research/cv/SiamFC/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/SinGAN/scripts/run_infer_310.sh b/research/cv/SinGAN/scripts/run_infer_310.sh index c2280b0e165b9fb403def2f4b31d657355ef896b..38bc4646f685c929c9749e6173ab8d6268c90e48 100644 --- a/research/cv/SinGAN/scripts/run_infer_310.sh +++ b/research/cv/SinGAN/scripts/run_infer_310.sh @@ -65,7 +65,7 @@ do rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ./preprocess.py --output_path='./preprocess_Result/' --input_path='./postprocess_Result/' \ + python ./preprocess.py --output_path='./preprocess_Result/' --input_path='./postprocess_Result/' \ --input_dir=$input_dir --input_name=$input_name --scale_num=$i --noise_amp_path=$noise_amp_dir if [ $? -ne 0 ]; then @@ -104,7 +104,7 @@ do rm -rf ./postprocess_Result fi mkdir postprocess_Result - python3.7 ./postprocess.py --output_path='./postprocess_Result/' --input_dir=$input_dir \ + python ./postprocess.py --output_path='./postprocess_Result/' --input_dir=$input_dir \ --input_name=$input_name --scale_num=$i if [ $? -ne 0 ]; then echo "scale $i: execute post_process failed" diff --git a/research/cv/StarGAN/ascend310_infer/src/build.sh b/research/cv/StarGAN/ascend310_infer/src/build.sh index 7fac9cff3a98c83bce7e8f66053fab2ecebab86d..724c787b3646000019ded20c52854b2039cf295b 100644 --- a/research/cv/StarGAN/ascend310_infer/src/build.sh +++ b/research/cv/StarGAN/ascend310_infer/src/build.sh @@ -14,5 +14,5 @@ # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/cv/StarGAN/scripts/run_infer_310.sh b/research/cv/StarGAN/scripts/run_infer_310.sh index e0b9459cca6d5701fc462ace087fb62faef2ed78..cc7ae1ac8c3b2441043cdd2426d79e026a2544fd 100644 --- a/research/cv/StarGAN/scripts/run_infer_310.sh +++ b/research/cv/StarGAN/scripts/run_infer_310.sh @@ -65,7 +65,7 @@ function preprocess_data() fi mkdir bin_data cd $scripts_path - python3.7 ../preprocess.py --celeba_image_dir=$data_path"/img_celeba" --attr_path=$data_path"/list_attr_celeba.txt" &> preprocess.log + python ../preprocess.py --celeba_image_dir=$data_path"/img_celeba" --attr_path=$data_path"/list_attr_celeba.txt" &> preprocess.log } function compile_app() @@ -96,7 +96,7 @@ function infer() function postprocess() { cd $scripts_path - python3.7 ../postprocess.py --result_path='./result_Files' --ori_path="../bin_data/img_data" --save_path='../save_images_result' &> postprocess.log + python ../postprocess.py --result_path='./result_Files' --ori_path="../bin_data/img_data" --save_path='../save_images_result' &> postprocess.log } preprocess_data diff --git a/research/cv/TCN/scripts/run_infer_310.sh b/research/cv/TCN/scripts/run_infer_310.sh index 0dec181d2b4d8e4197aba4f5effda0fb5c812b09..43bea96016dfa2bd9dd7e6ddeba486dc1963e734 100644 --- a/research/cv/TCN/scripts/run_infer_310.sh +++ b/research/cv/TCN/scripts/run_infer_310.sh @@ -114,7 +114,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log + python ../postprocess.py --dataset_name=$dataset_name --result_path=./result_Files --label_path=./preprocess_Result/label &> acc.log } diff --git a/research/cv/U-GAT-IT/scripts/run_infer_310.sh b/research/cv/U-GAT-IT/scripts/run_infer_310.sh index e7d3abad230c4c644a1e377f6e73696ae6c78ebb..869f7a448c08d08cd45f7843fef0b31e5d179194 100644 --- a/research/cv/U-GAT-IT/scripts/run_infer_310.sh +++ b/research/cv/U-GAT-IT/scripts/run_infer_310.sh @@ -83,7 +83,7 @@ function generate_img() rm -rf ./infer_output_img fi mkdir infer_output_img - python3.7 postprocess.py --bifile_outputdir=./result_Files --eval_outputdir=./infer_output_img --device_id=$device_id &> acc.log + python postprocess.py --bifile_outputdir=./result_Files --eval_outputdir=./infer_output_img --device_id=$device_id &> acc.log } compile_app diff --git a/research/cv/VehicleNet/script/run_infer_310.sh b/research/cv/VehicleNet/script/run_infer_310.sh index f5196eb7709af321442cd22f77feb2b29301aed1..c6d78898a1cd86dc24b3046a73efa8f3c5f30806 100644 --- a/research/cv/VehicleNet/script/run_infer_310.sh +++ b/research/cv/VehicleNet/script/run_infer_310.sh @@ -73,7 +73,7 @@ function preprocess() mkdir test mkdir query cd ../scripts - python3.7 ../preprocess.py --test_bin_path $test_bin_path --query_bin_path $query_bin_path --test_path $input1_path --query_path $input2_path + python ../preprocess.py --test_bin_path $test_bin_path --query_bin_path $query_bin_path --test_path $input1_path --query_path $input2_path } function compile_app() @@ -113,7 +113,7 @@ function query_infer() function cal_acc() { - python3.7 ../postprocess.py --test_label $test_label --query_label $query_label --test_out_path $test_out_path --query_out_path $query_out_path &> acc.log + python ../postprocess.py --test_label $test_label --query_label $query_label --test_out_path $test_out_path --query_out_path $query_out_path &> acc.log } preprocess diff --git a/research/cv/arcface/ascend_310_infer/build.sh b/research/cv/arcface/ascend_310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/arcface/ascend_310_infer/build.sh +++ b/research/cv/arcface/ascend_310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/arcface/scripts/run_310_infer.sh b/research/cv/arcface/scripts/run_310_infer.sh index 62677c2f04b973f920bb81ac966a1487a62492b1..4b80d4af6e42249eb782a9179ade92f8d8ddc411 100644 --- a/research/cv/arcface/scripts/run_310_infer.sh +++ b/research/cv/arcface/scripts/run_310_infer.sh @@ -81,7 +81,7 @@ function preprocess_data() rm -rf ./label fi mkdir label - python3.7 ../preprocess.py --dataset_path=$dataset_path --result_dir=./preprocess_Result/ --label_dir=./label/ + python ../preprocess.py --dataset_path=$dataset_path --result_dir=./preprocess_Result/ --label_dir=./label/ } function compile_app() @@ -108,7 +108,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --data_set=$dataset_path --result_dir=./result_Files --label_dir=./label/issame_list.npy &> acc.log + python ../postprocess.py --data_set=$dataset_path --result_dir=./result_Files --label_dir=./label/issame_list.npy &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/centernet_resnet50_v1/ascend310_infer/build.sh b/research/cv/centernet_resnet50_v1/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/centernet_resnet50_v1/ascend310_infer/build.sh +++ b/research/cv/centernet_resnet50_v1/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/centernet_resnet50_v1/scripts/run_infer_310.sh b/research/cv/centernet_resnet50_v1/scripts/run_infer_310.sh index 272c9f9eb5d672010fab483fed0e5d8a66964e57..25f6c4b4a756855b14de6fad3f039633cb460ad0 100644 --- a/research/cv/centernet_resnet50_v1/scripts/run_infer_310.sh +++ b/research/cv/centernet_resnet50_v1/scripts/run_infer_310.sh @@ -69,7 +69,7 @@ function preprocess_data() rm -rf ./preprocess fi mkdir preprocess - python3.7 ../preprocess.py --val_data_dir=$dataset_path --predict_dir=./preprocess/ >& preprocess.log + python ../preprocess.py --val_data_dir=$dataset_path --predict_dir=./preprocess/ >& preprocess.log } function compile_app() @@ -119,7 +119,7 @@ function cal_ap() rm -rf ./acc fi mkdir acc - python3.7 ../postprocess.py --result_path=./result_Files --label_path=$dataset_path/annotations/instances_val2017.json --meta_path=./preprocess/meta --save_path=./acc &> acc.log + python ../postprocess.py --result_path=./result_Files --label_path=$dataset_path/annotations/instances_val2017.json --meta_path=./preprocess/meta --save_path=./acc &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/dcgan/scripts/run_infer_310.sh b/research/cv/dcgan/scripts/run_infer_310.sh index 867de42595d712ab3664d2092ac98de4bb78e05d..f807c50f6cbc317fa0725e44b478bbed05a089df 100644 --- a/research/cv/dcgan/scripts/run_infer_310.sh +++ b/research/cv/dcgan/scripts/run_infer_310.sh @@ -64,7 +64,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_path=$dataset_path + python ../preprocess.py --data_path=$dataset_path } function compile_app() { diff --git a/research/cv/deeplabv3plus/ascend310_infer/build.sh b/research/cv/deeplabv3plus/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/deeplabv3plus/ascend310_infer/build.sh +++ b/research/cv/deeplabv3plus/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/deeplabv3plus/scripts/run_infer_310.sh b/research/cv/deeplabv3plus/scripts/run_infer_310.sh index a323174369570f366a1824092a6e4e9920856cc4..d7181137fc9619da9b46d2b457c10448b789acd5 100644 --- a/research/cv/deeplabv3plus/scripts/run_infer_310.sh +++ b/research/cv/deeplabv3plus/scripts/run_infer_310.sh @@ -81,7 +81,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --data_root=$data_root --data_lst=$data_list_path --scales=1.0 --result_path=./result_Files &> acc.log & + python ../postprocess.py --data_root=$data_root --data_lst=$data_list_path --scales=1.0 --result_path=./result_Files &> acc.log & } compile_app diff --git a/research/cv/efficientnet-b0/ascend310_infer/build.sh b/research/cv/efficientnet-b0/ascend310_infer/build.sh index 265486af905be56182e116303eb8cf440204e61a..32ff98d8f5270f34e6470c7cbab7eb47a4aac8ab 100644 --- a/research/cv/efficientnet-b0/ascend310_infer/build.sh +++ b/research/cv/efficientnet-b0/ascend310_infer/build.sh @@ -26,5 +26,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/efficientnet-b0/scripts/run_infer_310.sh b/research/cv/efficientnet-b0/scripts/run_infer_310.sh index fce5467ebdb67fc1efd0638f005b351616d46fa2..969551e2b18058289cf51f7437e63d4ea388ca6e 100644 --- a/research/cv/efficientnet-b0/scripts/run_infer_310.sh +++ b/research/cv/efficientnet-b0/scripts/run_infer_310.sh @@ -76,8 +76,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/efficientnet-b2/ascend310_infer/build.sh b/research/cv/efficientnet-b2/ascend310_infer/build.sh index 265486af905be56182e116303eb8cf440204e61a..32ff98d8f5270f34e6470c7cbab7eb47a4aac8ab 100644 --- a/research/cv/efficientnet-b2/ascend310_infer/build.sh +++ b/research/cv/efficientnet-b2/ascend310_infer/build.sh @@ -26,5 +26,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/efficientnet-b2/scripts/run_infer_310.sh b/research/cv/efficientnet-b2/scripts/run_infer_310.sh index fce5467ebdb67fc1efd0638f005b351616d46fa2..969551e2b18058289cf51f7437e63d4ea388ca6e 100644 --- a/research/cv/efficientnet-b2/scripts/run_infer_310.sh +++ b/research/cv/efficientnet-b2/scripts/run_infer_310.sh @@ -76,8 +76,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/efficientnet-b3/ascend310_infer/build.sh b/research/cv/efficientnet-b3/ascend310_infer/build.sh index 265486af905be56182e116303eb8cf440204e61a..32ff98d8f5270f34e6470c7cbab7eb47a4aac8ab 100644 --- a/research/cv/efficientnet-b3/ascend310_infer/build.sh +++ b/research/cv/efficientnet-b3/ascend310_infer/build.sh @@ -26,5 +26,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/efficientnet-b3/scripts/run_infer_310.sh b/research/cv/efficientnet-b3/scripts/run_infer_310.sh index fce5467ebdb67fc1efd0638f005b351616d46fa2..969551e2b18058289cf51f7437e63d4ea388ca6e 100644 --- a/research/cv/efficientnet-b3/scripts/run_infer_310.sh +++ b/research/cv/efficientnet-b3/scripts/run_infer_310.sh @@ -76,8 +76,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/ibnnet/ascend310_infer/build.sh b/research/cv/ibnnet/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/ibnnet/ascend310_infer/build.sh +++ b/research/cv/ibnnet/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/ibnnet/scripts/run_310_infer.sh b/research/cv/ibnnet/scripts/run_310_infer.sh index db8af43d84a62d54a95066943115f15906c5d070..8a09ee6e180f90143c98de8984256948cceaa660 100644 --- a/research/cv/ibnnet/scripts/run_310_infer.sh +++ b/research/cv/ibnnet/scripts/run_310_infer.sh @@ -71,7 +71,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path } function compile_app() @@ -98,7 +98,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/midas/ascend310_infer/build.sh b/research/cv/midas/ascend310_infer/build.sh index 6e47332f0dda013334fd73b84df20a73d8d8b929..2fc7044657c4101bda4d7fadc4a4530f00d9be0c 100644 --- a/research/cv/midas/ascend310_infer/build.sh +++ b/research/cv/midas/ascend310_infer/build.sh @@ -13,5 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/mobilenetV3_small_x1_0/ascend310_infer/build.sh b/research/cv/mobilenetV3_small_x1_0/ascend310_infer/build.sh index 265486af905be56182e116303eb8cf440204e61a..32ff98d8f5270f34e6470c7cbab7eb47a4aac8ab 100644 --- a/research/cv/mobilenetV3_small_x1_0/ascend310_infer/build.sh +++ b/research/cv/mobilenetV3_small_x1_0/ascend310_infer/build.sh @@ -26,5 +26,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/mobilenetV3_small_x1_0/scripts/run_infer_310.sh b/research/cv/mobilenetV3_small_x1_0/scripts/run_infer_310.sh index fce5467ebdb67fc1efd0638f005b351616d46fa2..969551e2b18058289cf51f7437e63d4ea388ca6e 100644 --- a/research/cv/mobilenetV3_small_x1_0/scripts/run_infer_310.sh +++ b/research/cv/mobilenetV3_small_x1_0/scripts/run_infer_310.sh @@ -76,8 +76,8 @@ function infer() function cal_acc() { - python3.7 ../create_imagenet2012_label.py --img_path=$data_path - python3.7 ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & + python ../create_imagenet2012_label.py --img_path=$data_path + python ../postprocess.py --result_path=./result_Files --label_path=./imagenet_label.json &> acc.log & } compile_app diff --git a/research/cv/mobilenetv3_large/ascend310_infer/build.sh b/research/cv/mobilenetv3_large/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/mobilenetv3_large/ascend310_infer/build.sh +++ b/research/cv/mobilenetv3_large/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/mobilenetv3_large/scripts/run_infer_310.sh b/research/cv/mobilenetv3_large/scripts/run_infer_310.sh index 7ed961a313eeeed436c7f82b3f047b0dd7519b9d..2ddcfe931c49ff93a2db155a46a2da502c4acccc 100755 --- a/research/cv/mobilenetv3_large/scripts/run_infer_310.sh +++ b/research/cv/mobilenetv3_large/scripts/run_infer_310.sh @@ -53,7 +53,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path } function compile_app() @@ -79,7 +79,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } preprocess_data diff --git a/research/cv/nas-fpn/scripts/run_infer_310.sh b/research/cv/nas-fpn/scripts/run_infer_310.sh index ec137b4526512f062edf57b74eff88a6f46f0142..d2e012d07907d89181cba76f4f6d3bd0a244a241 100644 --- a/research/cv/nas-fpn/scripts/run_infer_310.sh +++ b/research/cv/nas-fpn/scripts/run_infer_310.sh @@ -79,7 +79,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=result_Files --dataset_path=$data_path --anno_path=$anno_path &> acc.log + python ../postprocess.py --result_path=result_Files --dataset_path=$data_path --anno_path=$anno_path &> acc.log } compile_app diff --git a/research/cv/ntsnet/scripts/run_infer_310.sh b/research/cv/ntsnet/scripts/run_infer_310.sh index 6600d79efaaac1f8d2d3cc3bd3ea40b050eed42d..ed328a8d1d3331a5662dbdb97873d436ea2cf374 100644 --- a/research/cv/ntsnet/scripts/run_infer_310.sh +++ b/research/cv/ntsnet/scripts/run_infer_310.sh @@ -55,7 +55,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_path=$dataset_path --result_path=./preprocess_Result/ + python ../preprocess.py --data_path=$dataset_path --result_path=./preprocess_Result/ } function compile_app() { @@ -79,7 +79,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_dir=./result_Files --label_dir=./preprocess_Result/label.json &> acc.log + python ../postprocess.py --result_dir=./result_Files --label_dir=./preprocess_Result/label.json &> acc.log } preprocess_data diff --git a/research/cv/pnasnet/scripts/run_infer_310.sh b/research/cv/pnasnet/scripts/run_infer_310.sh index 7434df9205b98c206c482c32949fec31e1acefd1..4dbd64692ce0556260bad5b6d667945983d4a38e 100644 --- a/research/cv/pnasnet/scripts/run_infer_310.sh +++ b/research/cv/pnasnet/scripts/run_infer_310.sh @@ -77,7 +77,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ } function compile_app() @@ -103,7 +103,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/proxylessnas/scripts/run_infer_310.sh b/research/cv/proxylessnas/scripts/run_infer_310.sh index 7434df9205b98c206c482c32949fec31e1acefd1..4dbd64692ce0556260bad5b6d667945983d4a38e 100644 --- a/research/cv/proxylessnas/scripts/run_infer_310.sh +++ b/research/cv/proxylessnas/scripts/run_infer_310.sh @@ -77,7 +77,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ } function compile_app() @@ -103,7 +103,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/relationnet/scripts/run_infer_310.sh b/research/cv/relationnet/scripts/run_infer_310.sh index 227cf7319c5abb9270da1b4b6056041d5609acaf..2c73f97bcd4029f57f3567cd36b1c1a988ed5e11 100644 --- a/research/cv/relationnet/scripts/run_infer_310.sh +++ b/research/cv/relationnet/scripts/run_infer_310.sh @@ -30,7 +30,7 @@ fi function prepocess() { cd .. - python3 preprocess.py + python preprocess.py } function compile_app() @@ -66,7 +66,7 @@ function infer() function cal_acc() { cd 銆傘€傘€� - python3 postprocess.py + python postprocess.py if [ $? -ne 0 ]; then echo "calculate accuracy failed" exit 1 diff --git a/research/cv/resnet3d/ascend310_infer/build.sh b/research/cv/resnet3d/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/resnet3d/ascend310_infer/build.sh +++ b/research/cv/resnet3d/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/resnet3d/scripts/run_infer_310.sh b/research/cv/resnet3d/scripts/run_infer_310.sh index 607bf9953cfba23c5778648d01e8bed63d4c0e6c..1459faef4cad0a92a60ccf6ca29c4eb8fb237d12 100644 --- a/research/cv/resnet3d/scripts/run_infer_310.sh +++ b/research/cv/resnet3d/scripts/run_infer_310.sh @@ -73,7 +73,7 @@ function pre_process_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --config_path ../${dataset}_config.yaml --video_path $video_path --annotation_path \ + python ../preprocess.py --config_path ../${dataset}_config.yaml --video_path $video_path --annotation_path \ $annotation_path --batch_size=1 } @@ -102,7 +102,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --config_path ../${dataset}_config.yaml --annotation_path $annotation_path &> acc.log & + python ../postprocess.py --config_path ../${dataset}_config.yaml --annotation_path $annotation_path &> acc.log & } if [ $need_preprocess == 'y' ]; then diff --git a/research/cv/resnetv2_50_frn/scripts/run_infer_310.sh b/research/cv/resnetv2_50_frn/scripts/run_infer_310.sh index 57d583861e635e1d7764524f90126b7d9430891e..555b6392bcf56582f884b93f035945fc03aa3a33 100644 --- a/research/cv/resnetv2_50_frn/scripts/run_infer_310.sh +++ b/research/cv/resnetv2_50_frn/scripts/run_infer_310.sh @@ -91,7 +91,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ + python ../preprocess.py --dataset_name=$dataset_name --data_path=$dataset_path & #--result_path=./preprocess_Result/ } function compile_app() @@ -117,7 +117,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset_name=$dataset_name &> acc.log + python ../postprocess.py --dataset_name=$dataset_name &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/siamRPN/ascend_310_infer/build.sh b/research/cv/siamRPN/ascend_310_infer/build.sh index 9765335cb84b6e42ca3b46d57eaa594827400569..3a30e3ec7b93428579bb58003a422e4e43f14a27 100644 --- a/research/cv/siamRPN/ascend_310_infer/build.sh +++ b/research/cv/siamRPN/ascend_310_infer/build.sh @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -cmake . -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake . -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/siamRPN/scripts/run_infer_310.sh b/research/cv/siamRPN/scripts/run_infer_310.sh index eaca26e18cf32822c22ff99e5268ae8998600e31..21c721d33fda5fffc8b1c8b5ca959222b8c4efe9 100644 --- a/research/cv/siamRPN/scripts/run_infer_310.sh +++ b/research/cv/siamRPN/scripts/run_infer_310.sh @@ -73,7 +73,7 @@ function compile_app() } function generate_config() { - python3.7 ../preprocess.py + python ../preprocess.py if [ $? -ne 0 ]; then echo "preprocess failed" exit 1 @@ -102,7 +102,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --dataset=$data_path/$dataset_name --predict_dataset=./result_Files/$dataset_name &> acc.log + python ../postprocess.py --dataset=$data_path/$dataset_name --predict_dataset=./result_Files/$dataset_name &> acc.log if [ $? -ne 0 ]; then echo "calculate accuracy failed" exit 1 diff --git a/research/cv/simple_baselines/ascend310_infer/build.sh b/research/cv/simple_baselines/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/simple_baselines/ascend310_infer/build.sh +++ b/research/cv/simple_baselines/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/simple_baselines/scripts/run_infer_310.sh b/research/cv/simple_baselines/scripts/run_infer_310.sh index 52e3d28b0b20d9144b87b575b5136d10a869faa9..f1f2e81f2889c2e33a8e5d8fe40a3c682b629abc 100644 --- a/research/cv/simple_baselines/scripts/run_infer_310.sh +++ b/research/cv/simple_baselines/scripts/run_infer_310.sh @@ -67,7 +67,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py + python ../preprocess.py } function compile_app() @@ -94,7 +94,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py &> acc.log + python ../postprocess.py &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/sknet/ascend310_infer/build.sh b/research/cv/sknet/ascend310_infer/build.sh index 922df6cb4d87095802306ba30c7741fe64ca79f1..a3afcf5a1393c68f1f2b8cb661507f24d9856c89 100644 --- a/research/cv/sknet/ascend310_infer/build.sh +++ b/research/cv/sknet/ascend310_infer/build.sh @@ -24,5 +24,5 @@ if [ -f "Makefile" ]; then make clean fi -cmake .. -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" +cmake .. -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/sknet/scripts/run_infer_310.sh b/research/cv/sknet/scripts/run_infer_310.sh index f642c8797cfabe1b0cd4f479655bbe8487773a3a..b72083ef1c7eabb45888130727dfd42c9d527dfa 100644 --- a/research/cv/sknet/scripts/run_infer_310.sh +++ b/research/cv/sknet/scripts/run_infer_310.sh @@ -90,7 +90,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_path=$dataset_path #--result_path=./preprocess_Result/ + python ../preprocess.py --data_path=$dataset_path #--result_path=./preprocess_Result/ } function compile_app() @@ -116,7 +116,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py &> acc.log + python ../postprocess.py &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/cv/ssd_inceptionv2/scripts/run_infer_310.sh b/research/cv/ssd_inceptionv2/scripts/run_infer_310.sh index 4c60561d7264ee808ae5db954aed18f71ef95b45..903e46b1cc512e69db0b2a4ce69cf53737afbf10 100644 --- a/research/cv/ssd_inceptionv2/scripts/run_infer_310.sh +++ b/research/cv/ssd_inceptionv2/scripts/run_infer_310.sh @@ -89,7 +89,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --img_path=$data_path --anno_file=$anno --drop &> acc.log & + python ../postprocess.py --result_path=./result_Files --img_path=$data_path --anno_file=$anno --drop &> acc.log & } compile_app diff --git a/research/cv/ssd_resnet34/ascend310_infer/build.sh b/research/cv/ssd_resnet34/ascend310_infer/build.sh index d8ea19ff828dc682c646ef37bf0f513a2523a808..c7aac7196661fcfa50c3de063336355bf3831286 100644 --- a/research/cv/ssd_resnet34/ascend310_infer/build.sh +++ b/research/cv/ssd_resnet34/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/cv/ssd_resnet34/scripts/run_infer_310.sh b/research/cv/ssd_resnet34/scripts/run_infer_310.sh index 1b08cd26758cd593a2eb23c5fb4665f6fbcd4bdf..cf4dea993efd7c763b343a62b4660653693105b2 100644 --- a/research/cv/ssd_resnet34/scripts/run_infer_310.sh +++ b/research/cv/ssd_resnet34/scripts/run_infer_310.sh @@ -89,7 +89,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --img_path=$data_path --anno_file=$anno --drop &> acc.log & + python ../postprocess.py --result_path=./result_Files --img_path=$data_path --anno_file=$anno --drop &> acc.log & } compile_app diff --git a/research/cv/stpm/scripts/run_infer_310.sh b/research/cv/stpm/scripts/run_infer_310.sh index 022225bdb3b862a1f08ce53e4f87f5e8bccb2df3..4de4cd6480c880d85886a7ab4ff72a4a15bd63ee 100644 --- a/research/cv/stpm/scripts/run_infer_310.sh +++ b/research/cv/stpm/scripts/run_infer_310.sh @@ -71,7 +71,7 @@ function preprocess_data() { mkdir ./img/$category mkdir ./img/$category/label - python3.7 ../preprocess.py \ + python ../preprocess.py \ --data_dir $dataset_path \ --img_dir ./img/$category \ --category $category @@ -103,7 +103,7 @@ function infer() { } function cal_acc() { - python3 ../postprocess.py \ + python ../postprocess.py \ --result_dir ./img/$category/result/ \ --data_dir $dataset_path \ --label_dir ./img/$category/label/ \ diff --git a/research/cv/swin_transformer/ascend310_infer/build.sh b/research/cv/swin_transformer/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/swin_transformer/ascend310_infer/build.sh +++ b/research/cv/swin_transformer/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/tall/ascend310_infer/build.sh b/research/cv/tall/ascend310_infer/build.sh index a65ce2176976bc2319c98d9e590ec1dbf7bcc4ce..163be8004fe9f6a650890d02fb3d8127bb75afd3 100644 --- a/research/cv/tall/ascend310_infer/build.sh +++ b/research/cv/tall/ascend310_infer/build.sh @@ -25,6 +25,6 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/textfusenet/scripts/run_infer_310.sh b/research/cv/textfusenet/scripts/run_infer_310.sh index dc86364e037700709aecdb9359d582e13297aec7..d8c21b8da0fa2e5e0b47198a4c88ef1fd557f116 100755 --- a/research/cv/textfusenet/scripts/run_infer_310.sh +++ b/research/cv/textfusenet/scripts/run_infer_310.sh @@ -78,7 +78,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --ann_file=$ann_file --img_path=$data_path --result_path=./result_Files &> acc.log & + python ../postprocess.py --ann_file=$ann_file --img_path=$data_path --result_path=./result_Files &> acc.log & } compile_app diff --git a/research/cv/tsn/ascend310_infer/build.sh b/research/cv/tsn/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/cv/tsn/ascend310_infer/build.sh +++ b/research/cv/tsn/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/cv/tsn/scripts/run_infer_310.sh b/research/cv/tsn/scripts/run_infer_310.sh index 17c424ad58f6bd2ae9e6ed3f45975bd6dddd6af2..9fedcb1668f00bbaa279b39630e18c20de91c3e1 100644 --- a/research/cv/tsn/scripts/run_infer_310.sh +++ b/research/cv/tsn/scripts/run_infer_310.sh @@ -119,7 +119,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --test_list=$test_list --modality=$modality --result_dir=./result_Files --label_dir=../ascend310_infer/preprocess_Result/label_ids.npy --save_scores=$score_name &> acc.log + python ../postprocess.py --test_list=$test_list --modality=$modality --result_dir=./result_Files --label_dir=../ascend310_infer/preprocess_Result/label_ids.npy --save_scores=$score_name &> acc.log } compile_app diff --git a/research/cv/u2net/scripts/run_infer_310.sh b/research/cv/u2net/scripts/run_infer_310.sh index 5aeb8126684c027ead179f38d7d33a96d53ddfcd..354f7149778d278c267c217668b477f2ba102458 100644 --- a/research/cv/u2net/scripts/run_infer_310.sh +++ b/research/cv/u2net/scripts/run_infer_310.sh @@ -57,7 +57,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --content_path $content_path --output_path='./preprocess_Result/' + python ../preprocess.py --content_path $content_path --output_path='./preprocess_Result/' } function compile_app() { @@ -86,12 +86,12 @@ function post_process() rm -rf ./postprocess_Result fi mkdir postprocess_Result - python3.7 ../postprocess.py --bin_path='./result_Files' --content_path $content_path --output_dir='./postprocess_Result/' &> postprocess.log + python ../postprocess.py --bin_path='./result_Files' --content_path $content_path --output_dir='./postprocess_Result/' &> postprocess.log } function evaluation() { - python3.7 ../eval.py --pred_dir='./postprocess_Result/' --label_dir $label_path &> evaluation.log + python ../eval.py --pred_dir='./postprocess_Result/' --label_dir $label_path &> evaluation.log } preprocess_data diff --git a/research/cv/vit_base/scripts/run_infer_310.sh b/research/cv/vit_base/scripts/run_infer_310.sh index ff2f79e2016952fe3a5259b957bcd6772f15485c..b170aa1ccf33f28b25322dbce05d8db8deea32ab 100644 --- a/research/cv/vit_base/scripts/run_infer_310.sh +++ b/research/cv/vit_base/scripts/run_infer_310.sh @@ -81,7 +81,7 @@ function preprocess_data() fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_path=$data_path #--output_path=./preprocess_Result + python ../preprocess.py --data_path=$data_path #--output_path=./preprocess_Result } function infer() diff --git a/research/cv/wideresnet/scripts/run_infer_310.sh b/research/cv/wideresnet/scripts/run_infer_310.sh index 2f4952d8f2531e5edd67f484d8c008f7f35e71d2..016482b266b32238772f7cfc3f3849ce52c789c5 100755 --- a/research/cv/wideresnet/scripts/run_infer_310.sh +++ b/research/cv/wideresnet/scripts/run_infer_310.sh @@ -71,7 +71,7 @@ function preprocess_data() fi mkdir preprocess_Result - python3 ../preprocess.py --data_path="$data_path" --output_path=./preprocess_Result --device_id="$device_id" &> preprocess.log + python ../preprocess.py --data_path="$data_path" --output_path=./preprocess_Result --device_id="$device_id" &> preprocess.log } function infer() diff --git a/research/gnn/dgcn/ascend310_infer/build.sh b/research/gnn/dgcn/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/gnn/dgcn/ascend310_infer/build.sh +++ b/research/gnn/dgcn/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/gnn/dgcn/script/run_infer_310.sh b/research/gnn/dgcn/script/run_infer_310.sh index 903e32c5d71b25418d52f13184a99a1ca0e50b80..021fa94f4222d826f4196458f9ea354c68e404c9 100644 --- a/research/gnn/dgcn/script/run_infer_310.sh +++ b/research/gnn/dgcn/script/run_infer_310.sh @@ -76,7 +76,7 @@ function preprocess_data() rm -rf ./preprocess_Result fi mkdir preprocess_Result - python3.7 ../preprocess.py --data_dir=$dataset_name --result_path=./preprocess_Result/ + python ../preprocess.py --data_dir=$dataset_name --result_path=./preprocess_Result/ } function compile_app() @@ -103,7 +103,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --dataset_name=$dataset_name --label_path=./preprocess_Result/label_onehot.npy --mask_path=./preprocess_Result/test_mask.npy &> acc.log + python ../postprocess.py --result_path=./result_Files --dataset_name=$dataset_name --label_path=./preprocess_Result/label_onehot.npy --mask_path=./preprocess_Result/test_mask.npy &> acc.log } if [ $need_preprocess == "y" ]; then diff --git a/research/gnn/sgcn/ascend310_infer/build.sh b/research/gnn/sgcn/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/gnn/sgcn/ascend310_infer/build.sh +++ b/research/gnn/sgcn/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/nlp/albert/scripts/run_infer_310.sh b/research/nlp/albert/scripts/run_infer_310.sh index aff9309a7652a8ffc73beb84d08f794d97ea32e7..4dd2cedd40226ac07ea2ac2397ddd6e7671d00f0 100644 --- a/research/nlp/albert/scripts/run_infer_310.sh +++ b/research/nlp/albert/scripts/run_infer_310.sh @@ -90,7 +90,7 @@ function preprocess_data() rm -rf ./preprocess_result fi mkdir preprocess_result - python3.7 ../preprocess.py --eval_data_file_path=$eval_data_file_path --task_type=$task_type --result_path=./preprocess_result/ --eval_json_path=$eval_json_path --vocab_file_path=$vocab_file_path --spm_model_file=$spm_model_file + python ../preprocess.py --eval_data_file_path=$eval_data_file_path --task_type=$task_type --result_path=./preprocess_result/ --eval_json_path=$eval_json_path --vocab_file_path=$vocab_file_path --spm_model_file=$spm_model_file } function compile_app() @@ -118,7 +118,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_dir=./result_files --task_type=$task_type \ + python ../postprocess.py --result_dir=./result_files --task_type=$task_type \ --label_dir=./preprocess_result/03_data --eval_data_file_path=$eval_data_file_path --eval_json_path=$eval_json_path \ --input1_path=./preprocess_result/01_data &> acc.log } diff --git a/research/nlp/atae_lstm/ascend310_infer/build.sh b/research/nlp/atae_lstm/ascend310_infer/build.sh index d8ea19ff828dc682c646ef37bf0f513a2523a808..c7aac7196661fcfa50c3de063336355bf3831286 100644 --- a/research/nlp/atae_lstm/ascend310_infer/build.sh +++ b/research/nlp/atae_lstm/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make \ No newline at end of file diff --git a/research/nlp/hypertext/ascend310_infer/build.sh b/research/nlp/hypertext/ascend310_infer/build.sh index 285514e19f2a1878a7bf8f0eed3c99fbc73868c4..713d7f657ddfa5f75b069351c55f8447f77c72d0 100644 --- a/research/nlp/hypertext/ascend310_infer/build.sh +++ b/research/nlp/hypertext/ascend310_infer/build.sh @@ -25,5 +25,5 @@ if [ -f "Makefile" ]; then fi cmake .. \ - -DMINDSPORE_PATH="`pip3.7 show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" + -DMINDSPORE_PATH="`pip show mindspore-ascend | grep Location | awk '{print $2"/mindspore"}' | xargs realpath`" make diff --git a/research/recommend/DIEN/scripts/run_infer_book_310.sh b/research/recommend/DIEN/scripts/run_infer_book_310.sh index b7ee46040cbc265ff24bf3d0092903ec1283a453..928ab62bbce19a5072b1dad1ba8fd9ca50137799 100644 --- a/research/recommend/DIEN/scripts/run_infer_book_310.sh +++ b/research/recommend/DIEN/scripts/run_infer_book_310.sh @@ -76,7 +76,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --target_path=$input_path/target --dataset_type=Books &> acc_book.log & + python ../postprocess.py --result_path=./result_Files --target_path=$input_path/target --dataset_type=Books &> acc_book.log & } compile_app @@ -93,4 +93,4 @@ cal_acc if [ $? -ne 0 ]; then echo "calculate accuracy failed" exit 1 -fi \ No newline at end of file +fi diff --git a/research/recommend/DIEN/scripts/run_infer_elec_310.sh b/research/recommend/DIEN/scripts/run_infer_elec_310.sh index 022c1213377783a47645cd9f78d904769b1cb76a..4a456209c57389af6c365f943c42d3899db95d31 100644 --- a/research/recommend/DIEN/scripts/run_infer_elec_310.sh +++ b/research/recommend/DIEN/scripts/run_infer_elec_310.sh @@ -76,7 +76,7 @@ function infer() function cal_acc() { - python3.7 ../postprocess.py --result_path=./result_Files --target_path=$input_path/target --dataset_type=Electronics &> acc_elec.log & + python ../postprocess.py --result_path=./result_Files --target_path=$input_path/target --dataset_type=Electronics &> acc_elec.log & } compile_app @@ -93,4 +93,4 @@ cal_acc if [ $? -ne 0 ]; then echo "calculate accuracy failed" exit 1 -fi \ No newline at end of file +fi