Skip to content

ONNX: upsample subgraph fusion added - #16573

Merged
alalek merged 1 commit into
opencv:3.4from
ashishkrshrivastava:opencvonnx
Feb 29, 2020
Merged

alalek merged 1 commit into
opencv:3.4from
ashishkrshrivastava:opencvonnx

Conversation

@ashishkrshrivastava

@ashishkrshrivastava ashishkrshrivastava commented Feb 13, 2020 •

Copy link
Copy Markdown
Contributor

Merge with extra: opencv/opencv_extra#707
resolves #16323
resolves #16475
resolves #14713

opencv_extra=opencvonnx

Pull Request Readiness Checklist

  • I agree to contribute to the project under OpenCV (BSD) License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

This PR adds

Subgraph fusion for upsample layer when exported from pytorch 1.3
Screenshot from 2020-02-13 17-43-16

If model is exported using pytorch 1.2, it does not produce two extra cast layers after Gather layer.
Screenshot from 2020-02-13 17-46-06

The additions I made are according to latest version of Pytorch.

allow_multiple_commits=1

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants