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
12ea4ee9
"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "88c6ad8a31b0cd8495a9b44fbc599524c65dad80"
Commit
12ea4ee9
authored
May 13, 2020
by
tink2123
Browse files
rename output dir
parent
ed4b2708
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
configs/rec/rec_icdar15_train.yml
configs/rec/rec_icdar15_train.yml
+5
-5
ppocr/data/rec/dataset_traversal.py
ppocr/data/rec/dataset_traversal.py
+3
-0
ppocr/utils/character.py
ppocr/utils/character.py
+1
-1
No files found.
configs/rec/rec_icdar15_train.yml
View file @
12ea4ee9
Global
:
algorithm
:
CRNN
use_gpu
:
true
epoch_num
:
300
epoch_num
:
300
0
log_smooth_window
:
20
print_batch_step
:
10
save_model_dir
:
output
_ic15
save_epoch_step
:
3
eval_batch_step
:
20
00
save_model_dir
:
./
output
/rec
save_epoch_step
:
3
00
eval_batch_step
:
5
00
train_batch_size_per_card
:
256
test_batch_size_per_card
:
256
image_shape
:
[
3
,
32
,
100
]
...
...
@@ -37,6 +37,6 @@ Loss:
Optimizer
:
function
:
ppocr.optimizer,AdamDecay
base_lr
:
0.001
base_lr
:
0.00
0
1
beta1
:
0.9
beta2
:
0.999
ppocr/data/rec/dataset_traversal.py
View file @
12ea4ee9
...
...
@@ -184,6 +184,9 @@ class SimpleReader(object):
substr
=
label_infor
.
decode
(
'utf-8'
).
strip
(
"
\n
"
).
split
(
"
\t
"
)
img_path
=
self
.
img_set_dir
+
"/"
+
substr
[
0
]
img
=
cv2
.
imread
(
img_path
)
if
img
.
shape
[
-
1
]
==
1
or
len
(
list
(
img
.
shape
))
==
2
:
print
(
"this is a gry"
)
img
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_GRAY2BGR
)
if
img
is
None
:
logger
.
info
(
"{} does not exist!"
.
format
(
img_path
))
continue
...
...
ppocr/utils/character.py
View file @
12ea4ee9
...
...
@@ -64,7 +64,7 @@ class CharacterOps(object):
[sum(text_lengths)] = [text_index_0 + text_index_1 + ... + text_index_(n - 1)]
length: length of each text. [batch_size]
"""
if
self
.
character_type
==
"en"
:
if
self
.
character_type
==
"en"
or
text
.
encode
(
'UTF-8'
).
isalpha
()
:
text
=
text
.
lower
()
text_list
=
[]
...
...
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