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
ded97737
Unverified
Commit
ded97737
authored
Sep 08, 2021
by
Double_V
Committed by
GitHub
Sep 08, 2021
Browse files
Merge pull request #3868 from before31/dygraph
修复 端到端算法调用inference模型时与训练模型结果不一致的问题,由rgb3个通道的顺序不一致引起
parents
e5dc3611
97987978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/infer/predict_e2e.py
tools/infer/predict_e2e.py
+1
-0
No files found.
tools/infer/predict_e2e.py
View file @
ded97737
...
...
@@ -141,6 +141,7 @@ if __name__ == "__main__":
img
,
flag
=
check_and_read_gif
(
image_file
)
if
not
flag
:
img
=
cv2
.
imread
(
image_file
)
img
=
img
[:,
:,
::
-
1
]
if
img
is
None
:
logger
.
info
(
"error in loading image:{}"
.
format
(
image_file
))
continue
...
...
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