Skip to content
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

Merged
merged 5 commits into from
Aug 13, 2020
Merged

add pytorch2onnx part #12

merged 5 commits into from
Aug 13, 2020

Conversation

drcut
Copy link
Contributor

@drcut drcut commented Jul 13, 2020

[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

@xvjiarui xvjiarui self-requested a review July 13, 2020 10:50
@CLAassistant
Copy link

CLAassistant commented Jul 20, 2020

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jul 20, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@b975d3b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #12   +/-   ##
=========================================
  Coverage          ?   81.33%           
=========================================
  Files             ?       71           
  Lines             ?     3161           
  Branches          ?      494           
=========================================
  Hits              ?     2571           
  Misses            ?      499           
  Partials          ?       91           
Flag Coverage Δ
#unittests 81.33% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b975d3b...b7062a5. Read the comment docs.

tools/pytorch2onnx.py Outdated Show resolved Hide resolved
tools/pytorch2onnx.py Outdated Show resolved Hide resolved
tools/pytorch2onnx.py Outdated Show resolved Hide resolved
tools/pytorch2onnx.py Outdated Show resolved Hide resolved
return module_output


def _demo_mm_inputs(input_shape, num_classes): # yapf: disable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is # yapf: disable necessary?

@hellock
Copy link
Member

hellock commented Aug 13, 2020

LGTM.

@xvjiarui xvjiarui merged commit 9ba2245 into open-mmlab:master Aug 13, 2020
johnzja pushed a commit to johnzja/mmsegmentation that referenced this pull request Aug 19, 2020
* add pytorch2onnx part

* Update according to the latest mmcv

* add docstring

* update docs

* update docs

Co-authored-by: Jiarui XU <xvjiarui0826@gmail.com>
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
* add pytorch2onnx part

* Update according to the latest mmcv

* add docstring

* update docs

* update docs

Co-authored-by: Jiarui XU <xvjiarui0826@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants