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
ef0803b0
"examples/vscode:/vscode.git/clone" did not exist on "df8559a7f9617ad2877cdc1ddc11ea9e8284537a"
Commit
ef0803b0
authored
Jul 19, 2021
by
LDOUBLEV
Browse files
fix bugs
parent
a2df17dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
tests/ocr_det_params.txt
tests/ocr_det_params.txt
+1
-1
tests/prepare.sh
tests/prepare.sh
+6
-6
tests/test.sh
tests/test.sh
+1
-1
No files found.
tests/ocr_det_params.txt
View file @
ef0803b0
===========================train_params===========================
===========================train_params===========================
model_name:ocr_det
python:python3.7
gpu_list:0|0,1
...
...
tests/prepare.sh
View file @
ef0803b0
...
...
@@ -24,10 +24,10 @@ function func_parser_value(){
}
IFS
=
$'
\n
'
# The training params
model_name
=
$(
func_parser_value
"
${
lines
[
0
]
}
"
)
train_model_list
=
$(
func_parser_value
"
${
lines
[
0
]
}
"
)
model_name
=
$(
func_parser_value
"
${
lines
[
1
]
}
"
)
train_model_list
=
$(
func_parser_value
"
${
lines
[
1
]
}
"
)
trainer_list
=
$(
func_parser_value
"
${
lines
[1
0
]
}
"
)
trainer_list
=
$(
func_parser_value
"
${
lines
[1
4
]
}
"
)
# MODE be one of ['lite_train_infer' 'whole_infer' 'whole_train_infer']
...
...
@@ -62,11 +62,11 @@ elif [ ${MODE} = "whole_infer" ];then
eval_batch_step
=
10
else
rm
-rf
./train_data/icdar2015
wget
-nc
-P
./train_data https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar
if
[
${
model_name
}
=
"ocr_det"
]
;
then
if
[[
${
model_name
}
=
"ocr_det"
]]
;
then
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_infer"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
else
eval_model_name
=
"ch_ppocr_mobile_v2.0_rec_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_train.tar
...
...
tests/test.sh
View file @
ef0803b0
...
...
@@ -99,7 +99,7 @@ distill_key=$(func_parser_key "${lines[18]}")
distill_trainer
=
$(
func_parser_value
"
${
lines
[18]
}
"
)
trainer_key1
=
$(
func_parser_key
"
${
lines
[19]
}
"
)
trainer_value1
=
$(
func_parser_value
"
${
lines
[19]
}
"
)
trainer_key
1
=
$(
func_parser_key
"
${
lines
[20]
}
"
)
trainer_key
2
=
$(
func_parser_key
"
${
lines
[20]
}
"
)
trainer_value2
=
$(
func_parser_value
"
${
lines
[20]
}
"
)
eval_py
=
$(
func_parser_value
"
${
lines
[23]
}
"
)
...
...
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