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
wangkx1
torch_inference_resnet50
Commits
69dcba36
Commit
69dcba36
authored
Nov 13, 2024
by
wangkx1
Browse files
Update readme.md
parent
52a8302d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dynamic_to_static/readme.md
dynamic_to_static/readme.md
+4
-2
No files found.
dynamic_to_static/readme.md
View file @
69dcba36
...
@@ -8,8 +8,10 @@ pip install onnx-simplifier
...
@@ -8,8 +8,10 @@ pip install onnx-simplifier
```
```
```
python
```
python
# 简化模型
python
-
m
onnxsim
..
/
resnet50
.
onnx
..
/
resnet50_1x3x224x224
.
onnx
--
test
-
input
-
shape
input
:
1
,
3
,
224
,
224
python
-
m
onnxsim
..
/
resnet50
.
onnx
..
/
resnet50_1x3x224x224
.
onnx
--
test
-
input
-
shape
input
:
1
,
3
,
224
,
224
# 动态shape变成静态shape
python
-
m
onnxsim
.
/
$
{
model_name
}
_simply
.
onnx
.
/
$
{
model_name
}
_simply_1x3x32x900
.
onnx
--
overwrite
-
input
-
shape
x
:
1
,
3
,
32
,
900
# 查看详细帮助内容
# 查看详细帮助内容
python
-
m
onnxsim
-
h
python
-
m
onnxsim
-
h
...
@@ -26,4 +28,4 @@ pip3 install paddle2onnx
...
@@ -26,4 +28,4 @@ pip3 install paddle2onnx
python
-
m
paddle2onnx
.
optimize
--
input_model
model
.
onnx
\
python
-
m
paddle2onnx
.
optimize
--
input_model
model
.
onnx
\
--
output_model
new_model
.
onnx
\
--
output_model
new_model
.
onnx
\
--
input_shape_dict
"{'x':[1,3,224,224]}"
--
input_shape_dict
"{'x':[1,3,224,224]}"
```
```
\ No newline at end of file
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