-
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
[Fix] Replace interpolate with resize #731
[Fix] Replace interpolate with resize #731
Conversation
Just realized my problem was also related with FPN Upsample: I wonder if we should replace this calls with upsample wrapper from ops: |
Codecov Report
@@ Coverage Diff @@
## master #731 +/- ##
==========================================
- Coverage 85.28% 85.26% -0.03%
==========================================
Files 107 107
Lines 5817 5822 +5
Branches 952 952
==========================================
+ Hits 4961 4964 +3
- Misses 673 674 +1
- Partials 183 184 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi @mmeendez8
Yes, we can replace it with upsample wrapper. |
Hi @grimoire and @AllentDan
|
Sorry, forgot to say that problem has been fixed. Tensorflow does not support |
I see, thanks again! |
I am confused about this since he defaults |
Hi @mmeendez8 |
Yes, sorry. I had already pushed fix |
Could you please explain it? |
Thanks. |
Do you mean that set |
I meant that I brute force |
Ok, I see, thanks! |
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.
LGTM
* Replace interpolate with resize * Replace nn.Upsample with ops.Upsample * Fix test
…open-mmlab#731) This is to ensure that the final latent slices stay somewhat consistent as more changes are introduced into the library. Signed-off-by: James R T <jamestiotio@gmail.com> Signed-off-by: James R T <jamestiotio@gmail.com>
* Add back "registry.py" files with deprecation warnings. * add unittest for backward compatibility
* resolve comments * update changelog * add Kinetics CN README * add Kinetics CN README * move file * refine
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
I am having problems to export mmsegmentation -> onnx -> tensorflow. There is a know limitation related with interpolate (see here). I tried to fix mmseg.ops.resize behavior to always use
align_corners
but I realize some modules are still using torchF.interpolate
.`
Modification
Use mmseg resize wrapper for all operations.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist