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
4eb359e8
Commit
4eb359e8
authored
May 12, 2020
by
tink2123
Browse files
add ic15 yml
parent
d6778e25
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
3 deletions
+58
-3
configs/rec/rec_chinese_reader.yml
configs/rec/rec_chinese_reader.yml
+2
-2
configs/rec/rec_ic15_reader.yml
configs/rec/rec_ic15_reader.yml
+13
-0
configs/rec/rec_ic15_train.yml
configs/rec/rec_ic15_train.yml
+42
-0
tools/eval.py
tools/eval.py
+1
-1
No files found.
configs/rec/rec_chinese_reader.yml
View file @
4eb359e8
...
@@ -2,12 +2,12 @@ TrainReader:
...
@@ -2,12 +2,12 @@ TrainReader:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
num_workers
:
8
num_workers
:
8
img_set_dir
:
./train_data
img_set_dir
:
./train_data
label_file_path
:
./train_data/
gt_
train.txt
label_file_path
:
./train_data/train
_label
.txt
EvalReader
:
EvalReader
:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
img_set_dir
:
./train_data
img_set_dir
:
./train_data
label_file_path
:
./train_data/
gt_
test.txt
label_file_path
:
./train_data/test
_label
.txt
TestReader
:
TestReader
:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
configs/rec/rec_ic15_reader.yml
0 → 100755
View file @
4eb359e8
TrainReader
:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
num_workers
:
8
img_set_dir
:
./train_data
label_file_path
:
./train_data/gt_train.txt
EvalReader
:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
img_set_dir
:
./train_data
label_file_path
:
./train_data/gt_test.txt
TestReader
:
reader_function
:
ppocr.data.rec.dataset_traversal,SimpleReader
configs/rec/rec_ic15_train.yml
0 → 100755
View file @
4eb359e8
Global
:
algorithm
:
CRNN
use_gpu
:
true
epoch_num
:
300
log_smooth_window
:
20
print_batch_step
:
10
save_model_dir
:
output_ic15
save_epoch_step
:
3
eval_batch_step
:
2000
train_batch_size_per_card
:
256
test_batch_size_per_card
:
256
image_shape
:
[
3
,
32
,
100
]
max_text_length
:
25
character_type
:
ch
character_dict_path
:
./ppocr/utils/ic15_dict.txt
loss_type
:
ctc
reader_yml
:
./configs/rec/rec_ic15_reader.yml
pretrain_weights
:
./pretrain_models/best_accuracy
infer_img
:
./infer_img
Architecture
:
function
:
ppocr.modeling.architectures.rec_model,RecModel
Backbone
:
function
:
ppocr.modeling.backbones.rec_mobilenet_v3,MobileNetV3
scale
:
0.5
model_name
:
small
Head
:
function
:
ppocr.modeling.heads.rec_ctc_head,CTCPredict
encoder_type
:
rnn
SeqRNN
:
hidden_size
:
48
Loss
:
function
:
ppocr.modeling.losses.rec_ctc_loss,CTCLoss
Optimizer
:
function
:
ppocr.optimizer,AdamDecay
base_lr
:
0.001
beta1
:
0.9
beta2
:
0.999
tools/eval.py
View file @
4eb359e8
...
@@ -80,7 +80,7 @@ def main():
...
@@ -80,7 +80,7 @@ def main():
metrics
=
eval_det_run
(
exe
,
config
,
eval_info_dict
,
"test"
)
metrics
=
eval_det_run
(
exe
,
config
,
eval_info_dict
,
"test"
)
else
:
else
:
reader_type
=
config
[
'Global'
][
'reader_yml'
]
reader_type
=
config
[
'Global'
][
'reader_yml'
]
if
"
chinese"
in
reader_type
:
if
"
benchmark"
not
in
reader_type
:
eval_reader
=
reader_main
(
config
=
config
,
mode
=
"eval"
)
eval_reader
=
reader_main
(
config
=
config
,
mode
=
"eval"
)
eval_info_dict
=
{
'program'
:
eval_program
,
\
eval_info_dict
=
{
'program'
:
eval_program
,
\
'reader'
:
eval_reader
,
\
'reader'
:
eval_reader
,
\
...
...
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