-
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
Onnx upsample #100
Onnx upsample #100
Conversation
Codecov Report
@@ Coverage Diff @@
## master #100 +/- ##
==========================================
- Coverage 81.97% 81.95% -0.03%
==========================================
Files 76 76
Lines 3467 3485 +18
Branches 529 537 +8
==========================================
+ Hits 2842 2856 +14
- Misses 522 524 +2
- Partials 103 105 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
mmseg/ops/wrappers.py
Outdated
|
||
class Upsample(nn.Module): | ||
|
||
def __init__(self, scale_factor, mode, align_corners): |
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.
We may also support size
.
tmp.zip |
* add customized Upsample which can convert to ONNX * support multiply decode head for hrnet * support size for Upsample
* initial commit * quick fix
As ONNX does not support using nn.Upsample, we have to use our customized Upsample Module which is a simple wrapper of F.interpolate.
Besides, pytorch2onnx.py does not support models with multiple decode heads (like ocrnet), we support these models in this version.
Fixed #97