"tests/python/vscode:/vscode.git/clone" did not exist on "b0982feb2109f7ef5d9122fd23ef05c6afdafd8d"
Commit 69466de5 authored by liuhy's avatar liuhy
Browse files

修改推理代码

parent b44aeb9e
...@@ -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版本
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment