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
3ab2d463
Unverified
Commit
3ab2d463
authored
Feb 09, 2021
by
zhoujun
Committed by
GitHub
Feb 09, 2021
Browse files
support img_h < 32 (#1992)
parent
0b534658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/data/imaug/operators.py
ppocr/data/imaug/operators.py
+2
-2
No files found.
ppocr/data/imaug/operators.py
View file @
3ab2d463
...
...
@@ -185,8 +185,8 @@ class DetResizeForTest(object):
resize_h
=
int
(
h
*
ratio
)
resize_w
=
int
(
w
*
ratio
)
resize_h
=
int
(
round
(
resize_h
/
32
)
*
32
)
resize_w
=
int
(
round
(
resize_w
/
32
)
*
32
)
resize_h
=
max
(
int
(
round
(
resize_h
/
32
)
*
32
)
,
32
)
resize_w
=
max
(
int
(
round
(
resize_w
/
32
)
*
32
)
,
32
)
try
:
if
int
(
resize_w
)
<=
0
or
int
(
resize_h
)
<=
0
:
...
...
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