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
crnn_migraphx
Commits
62415db5
Commit
62415db5
authored
Jun 02, 2023
by
Your Name
Browse files
修改模型输入数据格式
parent
faeb4c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Python/Crnn_infer_migraphx.py
Python/Crnn_infer_migraphx.py
+1
-1
No files found.
Python/Crnn_infer_migraphx.py
View file @
62415db5
...
@@ -25,7 +25,7 @@ class Crnn:
...
@@ -25,7 +25,7 @@ class Crnn:
inputImage
=
self
.
prepare_input
(
image
)
inputImage
=
self
.
prepare_input
(
image
)
# 执行推理
# 执行推理
results
=
self
.
model
.
run
({
self
.
model
.
get_parameter_names
()[
0
]:
migraphx
.
argument
(
inputImage
)
})
results
=
self
.
model
.
run
({
self
.
model
.
get_parameter_names
()[
0
]:
inputImage
})
# 获取第一个输出节点的数据,migraphx.argument类型
# 获取第一个输出节点的数据,migraphx.argument类型
result
=
results
[
0
]
result
=
results
[
0
]
result
=
np
.
array
(
result
)
result
=
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