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

修改推理代码

parent b44aeb9e
......@@ -44,7 +44,6 @@ def LPRNetInference(model, imgs):
img = LPRNetPreprocess(imgs)
if ort.get_device() == "GPU":
# sess = ort.InferenceSession(model, providers=['CUDAExecutionProvider'],) #GPU版本
sess = ort.InferenceSession(model, providers=['ROCMExecutionProvider'],) #DCU版本
else:
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