"git@developer.sourcefind.cn:change/sglang.git" did not exist on "30643fed7f92be32540dfcdf9e4310e477ce0f6d"
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