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
RetinaFace_migraphx
Commits
ce8766c6
Commit
ce8766c6
authored
Jun 02, 2023
by
Your Name
Browse files
修改模型输入数据格式
parent
4d3d722b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Python/RetinaFace_infer_migraphx.py
Python/RetinaFace_infer_migraphx.py
+1
-1
No files found.
Python/RetinaFace_infer_migraphx.py
View file @
ce8766c6
...
...
@@ -40,7 +40,7 @@ def migraphx_run(model,cpu,data_tensor):
img_data
[
i
,
:,
:,
:]
=
data_numpy
[
i
,
:,
:,
:]
# 执行推理
result
=
model
.
run
({
model
.
get_parameter_names
()[
0
]:
migraphx
.
argument
(
img_data
)
})
result
=
model
.
run
({
model
.
get_parameter_names
()[
0
]:
img_data
})
# 将结果转换为tensor
result0
=
torch
.
from_numpy
(
np
.
array
(
result
[
0
],
copy
=
False
)).
to
(
device
)
...
...
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