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
ResNet50_onnxruntime
Commits
9c7b4b78
Commit
9c7b4b78
authored
Jun 30, 2023
by
yangql
Browse files
Update Tutorial_Python.md
parent
71b06240
Pipeline
#390
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Doc/Tutorial_Python.md
Doc/Tutorial_Python.md
+1
-1
No files found.
Doc/Tutorial_Python.md
View file @
9c7b4b78
...
...
@@ -86,4 +86,4 @@ def ort_seg_dcu(model_path,image):
```
-
Preprocessing()函数返回输入数据(numpy类型),然后通过构造一个字典输入模型执行推理,如果模型有多个输入,则在字典中需要添加多个输入数据。
-
model
.run()返回模型的推理结果,返回结果是一个list类型,results[0]表示第一个输出节点的输出。由于示例模型只有一个输出节点,所以results[0]对应resnetv24_dense0_fwd节点。最后,通过np.array(result)获取分类结果。
-
dcu_session
.run()返回模型的推理结果,返回结果是一个list类型,results[0]表示第一个输出节点的输出。由于示例模型只有一个输出节点,所以results[0]对应resnetv24_dense0_fwd节点。最后,通过np.array(result)获取分类结果。
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