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
29aea6a2
Commit
29aea6a2
authored
Jul 10, 2020
by
LDOUBLEV
Browse files
delete warning when label length greater than setting length
parent
3f824f00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
ppocr/data/rec/img_tools.py
ppocr/data/rec/img_tools.py
+0
-5
No files found.
ppocr/data/rec/img_tools.py
View file @
29aea6a2
...
...
@@ -359,11 +359,6 @@ def process_image(img,
# char_num = char_ops.get_char_num()
text
=
char_ops
.
encode
(
label
)
if
len
(
text
)
==
0
or
len
(
text
)
>
max_text_length
:
logger
.
info
(
"Warning in ppocr/data/rec/img_tools.py:line106: Wrong data type."
"Excepted string with length between 1 and {}, but "
"got '{}'. Label is '{}'"
.
format
(
max_text_length
,
len
(
text
),
label
))
return
None
else
:
if
loss_type
==
"ctc"
:
...
...
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