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
33f302e5
"docs/source/en/vscode:/vscode.git/clone" did not exist on "fdf70cb54beb7df77bb46c3227b345115a96e505"
Commit
33f302e5
authored
Feb 09, 2021
by
WenmuZhou
Browse files
support img_h < 32
parent
ed2b527c
Changes
1
Hide 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 @
33f302e5
...
@@ -185,8 +185,8 @@ class DetResizeForTest(object):
...
@@ -185,8 +185,8 @@ class DetResizeForTest(object):
resize_h
=
int
(
h
*
ratio
)
resize_h
=
int
(
h
*
ratio
)
resize_w
=
int
(
w
*
ratio
)
resize_w
=
int
(
w
*
ratio
)
resize_h
=
int
(
round
(
resize_h
/
32
)
*
32
)
resize_h
=
max
(
int
(
round
(
resize_h
/
32
)
*
32
)
,
32
)
resize_w
=
int
(
round
(
resize_w
/
32
)
*
32
)
resize_w
=
max
(
int
(
round
(
resize_w
/
32
)
*
32
)
,
32
)
try
:
try
:
if
int
(
resize_w
)
<=
0
or
int
(
resize_h
)
<=
0
:
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