Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pavlo Beylin
MaD Patch Yolov5
Commits
57c342a6
Unverified
Commit
57c342a6
authored
Aug 13, 2021
by
Glenn Jocher
Committed by
GitHub
Aug 13, 2021
Browse files
Simplify ONNX inference command (#4405)
parent
3e7c59ad
Changes
1
Show whitespace changes
Inline
Side-by-side
export.py
View file @
57c342a6
...
...
@@ -76,7 +76,7 @@ def export_onnx(model, img, file, opset, train, dynamic, simplify):
except
Exception
as
e
:
print
(
f
'
{
prefix
}
simplifier failure:
{
e
}
'
)
print
(
f
'
{
prefix
}
export success, saved as
{
f
}
(
{
file_size
(
f
)
:
.
1
f
}
MB)'
)
print
(
f
"
{
prefix
}
run --dynamic ONNX model inference with
detect.py
: 'python detect.py --weights
{
f
}
'"
)
print
(
f
"
{
prefix
}
run --dynamic ONNX model inference with: 'python detect.py --weights
{
f
}
'"
)
except
Exception
as
e
:
print
(
f
'
{
prefix
}
export failure:
{
e
}
'
)
...
...
Write
Preview
Supports
Markdown
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