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
ModelZoo
LPRNet_pytorch
Commits
69466de5
"tests/python/vscode:/vscode.git/clone" did not exist on "b0982feb2109f7ef5d9122fd23ef05c6afdafd8d"
Commit
69466de5
authored
Feb 27, 2023
by
liuhy
Browse files
修改推理代码
parent
b44aeb9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
LPRNet_ORT_infer.py
LPRNet_ORT_infer.py
+0
-1
No files found.
LPRNet_ORT_infer.py
View file @
69466de5
...
@@ -44,7 +44,6 @@ def LPRNetInference(model, imgs):
...
@@ -44,7 +44,6 @@ def LPRNetInference(model, imgs):
img
=
LPRNetPreprocess
(
imgs
)
img
=
LPRNetPreprocess
(
imgs
)
if
ort
.
get_device
()
==
"GPU"
:
if
ort
.
get_device
()
==
"GPU"
:
# sess = ort.InferenceSession(model, providers=['CUDAExecutionProvider'],) #GPU版本
sess
=
ort
.
InferenceSession
(
model
,
providers
=
[
'ROCMExecutionProvider'
],)
#DCU版本
sess
=
ort
.
InferenceSession
(
model
,
providers
=
[
'ROCMExecutionProvider'
],)
#DCU版本
else
:
else
:
sess
=
ort
.
InferenceSession
(
model
,
providers
=
[
'CPUExecutionProvider'
])
# CPU版本
sess
=
ort
.
InferenceSession
(
model
,
providers
=
[
'CPUExecutionProvider'
])
# CPU版本
...
...
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