remove existed symbolic link before ln -s
parent
fa65357777
commit
7494441082
|
@ -92,9 +92,8 @@ if [[ ${MODE} = "cpp_infer" ]]; then
|
||||||
wget -nc ${PADDLEInfer} --no-check-certificate
|
wget -nc ${PADDLEInfer} --no-check-certificate
|
||||||
tar_name=$(func_get_url_file_name "$PADDLEInfer")
|
tar_name=$(func_get_url_file_name "$PADDLEInfer")
|
||||||
tar xf ${tar_name}
|
tar xf ${tar_name}
|
||||||
paddle_inference_install_dir=${tar_name%.*}
|
|
||||||
if [ ! -d "paddle_inference" ]; then
|
if [ ! -d "paddle_inference" ]; then
|
||||||
ln -s ${paddle_inference_install_dir} paddle_inference
|
ln -s paddle_inference_install_dir paddle_inference
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
@ -225,6 +224,7 @@ elif [[ ${MODE} = "whole_infer" ]]; then
|
||||||
ln -s tipc_shitu_demo_data/demo_train.txt train_reg_all_data.txt
|
ln -s tipc_shitu_demo_data/demo_train.txt train_reg_all_data.txt
|
||||||
ln -s tipc_shitu_demo_data/demo_train demo_train
|
ln -s tipc_shitu_demo_data/demo_train demo_train
|
||||||
cd tipc_shitu_demo_data
|
cd tipc_shitu_demo_data
|
||||||
|
rm -rf val_list.txt
|
||||||
ln -s demo_test.txt val_list.txt
|
ln -s demo_test.txt val_list.txt
|
||||||
cd ../../
|
cd ../../
|
||||||
else
|
else
|
||||||
|
@ -235,6 +235,7 @@ elif [[ ${MODE} = "whole_infer" ]]; then
|
||||||
ln -s whole_chain_infer ILSVRC2012
|
ln -s whole_chain_infer ILSVRC2012
|
||||||
cd ILSVRC2012
|
cd ILSVRC2012
|
||||||
mv val.txt val_list.txt
|
mv val.txt val_list.txt
|
||||||
|
rm -rf train_list.txt
|
||||||
ln -s val_list.txt train_list.txt
|
ln -s val_list.txt train_list.txt
|
||||||
cd ../../
|
cd ../../
|
||||||
fi
|
fi
|
||||||
|
@ -328,6 +329,7 @@ if [[ ${MODE} = "paddle2onnx_infer" ]]; then
|
||||||
ln -s tipc_shitu_demo_data/demo_train.txt train_reg_all_data.txt
|
ln -s tipc_shitu_demo_data/demo_train.txt train_reg_all_data.txt
|
||||||
ln -s tipc_shitu_demo_data/demo_train demo_train
|
ln -s tipc_shitu_demo_data/demo_train demo_train
|
||||||
cd tipc_shitu_demo_data
|
cd tipc_shitu_demo_data
|
||||||
|
rm -rf val_list.txt
|
||||||
ln -s demo_test.txt val_list.txt
|
ln -s demo_test.txt val_list.txt
|
||||||
cd ../../
|
cd ../../
|
||||||
eval "wget -nc $model_url_value --no-check-certificate"
|
eval "wget -nc $model_url_value --no-check-certificate"
|
||||||
|
@ -349,6 +351,7 @@ if [[ ${MODE} = "benchmark_train" ]]; then
|
||||||
tar xf ILSVRC2012_val.tar
|
tar xf ILSVRC2012_val.tar
|
||||||
ln -s ILSVRC2012_val ILSVRC2012
|
ln -s ILSVRC2012_val ILSVRC2012
|
||||||
cd ILSVRC2012
|
cd ILSVRC2012
|
||||||
|
rm -rf train_list.txt
|
||||||
ln -s val_list.txt train_list.txt
|
ln -s val_list.txt train_list.txt
|
||||||
cd ../../
|
cd ../../
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue