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
44420593
Commit
44420593
authored
Feb 03, 2021
by
tink2123
Browse files
fix typo
parent
d36a929b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+1
-1
No files found.
ppocr/data/imaug/label_ops.py
View file @
44420593
...
@@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
...
@@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
def
__call__
(
self
,
data
):
def
__call__
(
self
,
data
):
text
=
data
[
'label'
]
text
=
data
[
'label'
]
text
=
self
.
encode
(
text
)
text
=
self
.
encode
(
text
)
char_num
=
len
(
self
.
character
_str
)
char_num
=
len
(
self
.
character
)
if
text
is
None
:
if
text
is
None
:
return
None
return
None
if
len
(
text
)
>
self
.
max_text_len
:
if
len
(
text
)
>
self
.
max_text_len
:
...
...
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