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
aab46214
Commit
aab46214
authored
Jun 05, 2020
by
tink2123
Browse files
fix typo
parent
4cac91eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
+1
-0
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
+1
-0
ppocr/data/rec/dataset_traversal.py
ppocr/data/rec/dataset_traversal.py
+1
-1
No files found.
configs/rec/rec_r34_vd_tps_bilstm_attn.yml
View file @
aab46214
...
@@ -13,6 +13,7 @@ Global:
...
@@ -13,6 +13,7 @@ Global:
max_text_length
:
25
max_text_length
:
25
character_type
:
en
character_type
:
en
loss_type
:
attention
loss_type
:
attention
tps
:
true
reader_yml
:
./configs/rec/rec_benchmark_reader.yml
reader_yml
:
./configs/rec/rec_benchmark_reader.yml
pretrain_weights
:
pretrain_weights
:
checkpoints
:
checkpoints
:
...
...
configs/rec/rec_r34_vd_tps_bilstm_ctc.yml
View file @
aab46214
...
@@ -13,6 +13,7 @@ Global:
...
@@ -13,6 +13,7 @@ Global:
max_text_length
:
25
max_text_length
:
25
character_type
:
en
character_type
:
en
loss_type
:
ctc
loss_type
:
ctc
tps
:
true
reader_yml
:
./configs/rec/rec_benchmark_reader.yml
reader_yml
:
./configs/rec/rec_benchmark_reader.yml
pretrain_weights
:
pretrain_weights
:
checkpoints
:
checkpoints
:
...
...
ppocr/data/rec/dataset_traversal.py
View file @
aab46214
...
@@ -184,7 +184,7 @@ class SimpleReader(object):
...
@@ -184,7 +184,7 @@ class SimpleReader(object):
self
.
infer_img
=
params
[
'infer_img'
]
self
.
infer_img
=
params
[
'infer_img'
]
self
.
use_tps
=
False
self
.
use_tps
=
False
if
"tps"
in
params
:
if
"tps"
in
params
:
self
.
u
e
s_tps
=
True
self
.
us
e
_tps
=
True
if
params
[
'mode'
]
==
'train'
:
if
params
[
'mode'
]
==
'train'
:
self
.
batch_size
=
params
[
'train_batch_size_per_card'
]
self
.
batch_size
=
params
[
'train_batch_size_per_card'
]
self
.
drop_last
=
True
self
.
drop_last
=
True
...
...
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