-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add pytorch2onnx part #12
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
=========================================
Coverage ? 81.33%
=========================================
Files ? 71
Lines ? 3161
Branches ? 494
=========================================
Hits ? 2571
Misses ? 499
Partials ? 91
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
tools/pytorch2onnx.py
Outdated
return module_output | ||
|
||
|
||
def _demo_mm_inputs(input_shape, num_classes): # yapf: disable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is # yapf: disable
necessary?
LGTM. |
* add pytorch2onnx part * Update according to the latest mmcv * add docstring * update docs * update docs Co-authored-by: Jiarui XU <[email protected]>
* add pytorch2onnx part * Update according to the latest mmcv * add docstring * update docs * update docs Co-authored-by: Jiarui XU <[email protected]>
[1] Add tools/pytorch2onnx.py, which can be used to convert Pytorch model into ONNX
[2] Modify the slide inference part to make it more clear and compatible with ONNX