Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
680b1098
Commit
680b1098
authored
Jul 05, 2021
by
LDOUBLEV
Browse files
fix ci prepare.sh
parent
fbbaf531
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/prepare.sh
test/prepare.sh
+4
-4
No files found.
test/prepare.sh
View file @
680b1098
...
@@ -94,7 +94,7 @@ for train_model in ${train_model_list[*]}; do
...
@@ -94,7 +94,7 @@ for train_model in ${train_model_list[*]}; do
# eval
# eval
for
slim_trainer
in
${
trainer_list
[*]
}
;
do
for
slim_trainer
in
${
trainer_list
[*]
}
;
do
if
[
${
slim_trainer
}
=
"norm"
]
;
then
if
[
${
slim_trainer
}
=
"norm"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
if
[
${
model_name
}
=
"
ocr_
det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_train"
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_train.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
...
@@ -104,7 +104,7 @@ for train_model in ${train_model_list[*]}; do
...
@@ -104,7 +104,7 @@ for train_model in ${train_model_list[*]}; do
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
fi
elif
[
${
slim_trainer
}
=
"pact"
]
;
then
elif
[
${
slim_trainer
}
=
"pact"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
if
[
${
model_name
}
=
"
ocr_
det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_quant_train"
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_quant_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_quant_train.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_quant_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
...
@@ -114,7 +114,7 @@ for train_model in ${train_model_list[*]}; do
...
@@ -114,7 +114,7 @@ for train_model in ${train_model_list[*]}; do
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
fi
elif
[
${
slim_trainer
}
=
"distill"
]
;
then
elif
[
${
slim_trainer
}
=
"distill"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
if
[
${
model_name
}
=
"
ocr_
det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_distill_train"
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_distill_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_distill_train.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_distill_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
...
@@ -124,7 +124,7 @@ for train_model in ${train_model_list[*]}; do
...
@@ -124,7 +124,7 @@ for train_model in ${train_model_list[*]}; do
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
fi
elif
[
${
slim_trainer
}
=
"fpgm"
]
;
then
elif
[
${
slim_trainer
}
=
"fpgm"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
if
[
${
model_name
}
=
"
ocr_
det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_prune_train"
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_prune_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_prune_train.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_prune_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment