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

Transformers support #27

Merged
merged 6 commits into from
Feb 21, 2022
Merged

Transformers support #27

merged 6 commits into from
Feb 21, 2022

Conversation

irkjero
Copy link
Contributor

@irkjero irkjero commented Feb 18, 2022

Now we support visual transformers models from tiim such as vit and swin.

@irkjero irkjero added the enhancement New feature or request label Feb 18, 2022
onnx2torch/converter.py Outdated Show resolved Hide resolved
@ivkalgin ivkalgin merged commit aa767b4 into develop Feb 21, 2022
@ivkalgin ivkalgin deleted the transformers_support branch February 21, 2022 13:05
irkjero added a commit that referenced this pull request Mar 23, 2022
* removed useless context manager (SkipTorchTracing), removed useless debug prints (#18)

Co-authored-by: igor <[email protected]>

* fixed conversion of interpolation modes, fixed checking of empty inputs (#20)

Co-authored-by: igor <[email protected]>

* Fix: average pool (#19)

* fixed avg pool operation
* added tests (avg pool)

Co-authored-by: igor <[email protected]>

* fix_optional_args

* common.py and custom_export_to_onnx.py moved to utils package

* fixed moving OnnxConstantOfShape between devices

* fixed placeholders names

* fixed error string

* Models test (#23)

* Add tests for classification, segmentation and detection models
* Fix readme

Co-authored-by: Peter Ivanov <[email protected]>

* fix empty nms, tracing reduce

* fix bug

* change version to 1.2

* fixed indexing in scatter nd

Co-authored-by: IvanovP <[email protected]>

* Transformers support (#27)

* now we support visual transformers models from tiim such as vit and swin
* added split operation
* added matmul operation

Co-authored-by: IvanovP <[email protected]>
Co-authored-by: igor <[email protected]>

* fixed pylint warnings (#28)

Co-authored-by: igor <[email protected]>

* fix slow scatternd (#31)

fix slow scatter nd

Co-authored-by: IvanovP <[email protected]>

* Roialign, roundings, trigonometry (#33)

* added roialigne
* added trigonometric functions
* added rounding functions

Co-authored-by: IvanovP <[email protected]>
Co-authored-by: igor <[email protected]>

* Fix: export to onnx (#34)

* updated export logic of reshape + slice + shape operations

* added custom export for tile

Co-authored-by: igor <[email protected]>

* Feature: modules markers (#36)

* added modules markers
* added custom export to onnx for gather

Co-authored-by: igor <[email protected]>

* Fix: model tests (#35)

* added logsoftmax operation
* refactored tests resourses

Co-authored-by: IvanovP <[email protected]>
Co-authored-by: igor <[email protected]>

* fix expand test for onnx 1.11

Co-authored-by: ivkalgin <[email protected]>
Co-authored-by: igor <[email protected]>
Co-authored-by: IvanovP <[email protected]>
Co-authored-by: Peter Ivanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants