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
84bf6572
Unverified
Commit
84bf6572
authored
Feb 03, 2021
by
xiaoting
Committed by
GitHub
Feb 03, 2021
Browse files
Merge pull request #1929 from tink2123/fix_typo
fix typo for encode
parents
d36a929b
44420593
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 @
84bf6572
...
...
@@ -255,7 +255,7 @@ class SRNLabelEncode(BaseRecLabelEncode):
def
__call__
(
self
,
data
):
text
=
data
[
'label'
]
text
=
self
.
encode
(
text
)
char_num
=
len
(
self
.
character
_str
)
char_num
=
len
(
self
.
character
)
if
text
is
None
:
return
None
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