Skip to content

Commit 1165dff

Browse files
committed
Merge branch 'master' into api/op_benchmark_base
2 parents 398f1a0 + 5308af1 commit 1165dff

5 files changed

Lines changed: 65 additions & 8 deletions

File tree

scripts/auto_run_paddle.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function prepare(){
5757
apt-get install libmysqlclient20=5.7.33-0ubuntu0.16.04.1 --allow-downgrades
5858
apt-get install libmysqlclient-dev git curl psmisc -y
5959
pip install MySQL-python
60-
60+
pip install shyaml
6161

6262
save_log_dir=${all_path}/logs/${paddle_version}/${implement_type}
6363

@@ -86,12 +86,21 @@ function prepare(){
8686
cd ${ROOT_PATH}
8787
rm -rf *
8888

89-
git clone https://github.com/PaddlePaddle/benchmark.git --recursive
90-
echo "****************${implement_type} prepare had done*****************"
91-
89+
git clone https://github.com/PaddlePaddle/benchmark.git
9290
cd ${BENCHMARK_ROOT}
9391
benchmark_commit_id=$(git log|head -n1|awk '{print $2}')
9492
echo "benchmark_commit_id is: "${benchmark_commit_id}
93+
94+
init_group="paddle_group" # 可配到任务参数里
95+
repo_list=`cat submodule.yaml | shyaml get-value ${init_group}`
96+
echo $repo_list
97+
for i in ${repo_list[@]}
98+
do
99+
git submodule init $i
100+
git submodule update $i
101+
done
102+
echo "*******************init submodule done******************************"
103+
echo "****************${implement_type} prepare had done*****************"
95104

96105
# 动态图升级到cuda10.1 python3.7,静态图切cuda10.1 python3.7
97106
if [[ 'dynamic_graph' == ${implement_type} ]] || [[ 'static_graph' == ${implement_type} ]] || [[ 'dynamic_to_static' == ${implement_type} ]]; then

scripts/dynamic_graph_models.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ dy_video_TimeSformer(){
7272
echo "dy_video_TimeSformer"
7373
cur_model_path=${BENCHMARK_ROOT}/PaddleVideo/
7474
cd ${cur_model_path}/benchmark/TimeSformer/
75+
pip install -r requirements.txt
7576
pip install scikit-image==0.18.2
7677
pip install pooch==1.5.2
77-
bash run_all.sh local
78+
bash run_all.sh local
7879
rm -rf ${BENCHMARK_ROOT}/PaddleVideo/ # 避免数据集占用docker内过多空间,在执行最后一个模型后删掉
7980
}
8081

@@ -256,6 +257,7 @@ dy_tsn(){
256257
cur_model_path=${BENCHMARK_ROOT}/PaddleVideo
257258
cd ${cur_model_path}
258259

260+
pip install -r requirements.txt
259261
pip install wget av
260262
pip install scikit-image==0.18.2
261263
pip install pooch==1.5.2
@@ -345,6 +347,7 @@ dy_seg(){
345347
dy_slowfast(){
346348
cur_model_path=${BENCHMARK_ROOT}/PaddleVideo
347349
cd ${cur_model_path}
350+
pip install -r requirements.txt
348351
pip install tqdm
349352
pip install decord
350353
pip install pandas av
@@ -461,6 +464,7 @@ dy_tsm(){
461464
cur_model_path=${BENCHMARK_ROOT}/PaddleVideo
462465
cd ${cur_model_path}
463466

467+
pip install -r requirements.txt
464468
pip install wget av decord
465469
pip install scikit-image==0.18.2
466470
pip install pooch==1.5.2

scripts/pr_run_paddle.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function prepare(){
3434
cp ${all_path}/sources.list /etc/apt
3535
apt-get update
3636
apt-get install libmysqlclient-dev git curl psmisc -y
37+
pip install shyaml
3738

3839
save_log_dir=${log_dir}
3940

@@ -59,12 +60,21 @@ function prepare(){
5960
mkdir -p ${ROOT_PATH}
6061
cd ${ROOT_PATH}
6162
rm -rf benchmark
62-
git clone https://github.com/PaddlePaddle/benchmark.git --recursive
63-
63+
git clone https://github.com/PaddlePaddle/benchmark.git
6464
cd ${BENCHMARK_ROOT}
6565
benchmark_commit_id=$(git log|head -n1|awk '{print $2}')
6666
echo "benchmark_commit_id is: "${benchmark_commit_id}
6767

68+
init_group="paddle_group" # 可配到任务参数里
69+
repo_list=`cat submodule.yaml | shyaml get-value ${init_group}`
70+
echo $repo_list
71+
for i in ${repo_list[@]}
72+
do
73+
git submodule init $i
74+
git submodule update $i
75+
done
76+
echo "*******************init submodule done******************************"
77+
6878
rm -rf run_env
6979
mkdir run_env
7080
ln -s $(which python3.7) run_env/python

submodule.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
paddle_group:
2+
models
3+
PaddleClas
4+
PaddleDetection
5+
PaddleSeg
6+
PaddleSpeech
7+
PaddleOCR
8+
PaddleNLP
9+
PaddleVideo
10+
PaddleGAN
11+
other_frame_group:
12+
OtherFrame/video/PyTorch/models/TimeSformer
13+
OtherFrame/nlp/PyTorch/scripts/NLP/gpt/Megatron-LM
14+
OtherFrame/nlp/PyTorch/apex
15+
OtherFrame/Speech/PyTorch/wenet/models/wenet
16+
OtherFrame/seg/PyTorch/models/mmseg
17+
OtherFrame/clas/mxnet/models/gluon-cv
18+
OtherFrame/clas/PyTorch/models/mmclassification
19+
OtherFrame/clas/PyTorch/models/HRNet-Image-Classification
20+
OtherFrame/clas/PyTorch/models/Twins
21+
OtherFrame/gan/PyTorch/mmedting/models/mmedi
22+
OtherFrame/ocr/PyTorch/models/PSENet
23+
OtherFrame/nlp/PyTorch/models/xlnet/transformers
24+
OtherFrame/detection/PyTorch/models/jde
25+
OtherFrame/detection/PyTorch/models/fairmot
26+
OtherFrame/Speech/PyTorch/PWGAN/models/Parakeet/PWGAN/ParallelWaveGAN
27+
OtherFrame/detection/PyTorch/models/mmdetection
28+
OtherFrame/detection/PyTorch/models/SOLO
29+
OtherFrame/detection/PyTorch/models/mmpose
30+
OtherFrame/nlp/PyTorch/models/xlnet
31+
OtherFrame/gan/PyTorch/fomm/models/fomm
32+
OtherFrame/gan/PyTorch/styleganv2/models/styleganv2
33+
OtherFrame/ocr/PyTorch/models/DB
34+
OtherFrame/ocr/TensorFlow/models/EAST

0 commit comments

Comments
 (0)