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
514fd0d1
Unverified
Commit
514fd0d1
authored
Jun 23, 2020
by
Double_V
Committed by
GitHub
Jun 23, 2020
Browse files
Merge pull request #260 from tink2123/polish_warning
polish warning
parents
4ca78a07
ae18273a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/data/rec/img_tools.py
ppocr/data/rec/img_tools.py
+2
-2
No files found.
ppocr/data/rec/img_tools.py
View file @
514fd0d1
...
...
@@ -108,8 +108,8 @@ def process_image(img,
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
0
and {}, but "
"got '{}'
"
.
format
(
max_text_length
,
label
))
"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