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
585dbc30
Commit
585dbc30
authored
Dec 07, 2021
by
WenmuZhou
Browse files
fix image shape in infer
parent
652beeab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ppstructure/vqa/utils.py
ppstructure/vqa/utils.py
+1
-2
No files found.
ppstructure/vqa/utils.py
View file @
585dbc30
...
@@ -211,8 +211,7 @@ def preprocess(
...
@@ -211,8 +211,7 @@ def preprocess(
height
=
ori_img
.
shape
[
0
]
height
=
ori_img
.
shape
[
0
]
width
=
ori_img
.
shape
[
1
]
width
=
ori_img
.
shape
[
1
]
img
=
cv2
.
resize
(
ori_img
,
img
=
cv2
.
resize
(
ori_img
,
img_size
).
transpose
([
2
,
0
,
1
]).
astype
(
np
.
float32
)
(
224
,
224
)).
transpose
([
2
,
0
,
1
]).
astype
(
np
.
float32
)
segment_offset_id
=
[]
segment_offset_id
=
[]
words_list
=
[]
words_list
=
[]
...
...
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