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

How to export the model to torchscript? #576

Open
simba0703 opened this issue Apr 15, 2021 · 10 comments
Open

How to export the model to torchscript? #576

simba0703 opened this issue Apr 15, 2021 · 10 comments
Assignees
Labels
deployment issue/PR about deployment enhancement New feature or request

Comments

@simba0703
Copy link

How to export the model to torchscript?

@innerlee
Copy link
Contributor

Hi we haven't provide tools yet. Please request the feature here #9 to help us prioritize.

@innerlee innerlee added the enhancement New feature or request label Apr 15, 2021
@alicera
Copy link

alicera commented May 12, 2021

Can the network export the onnx including decode ? like HeatmapParser function

@greg-is-kub
Copy link

requesting module to the DJ programming team as well, keep up the good work guys you rock

@jin-s13 jin-s13 added the deployment issue/PR about deployment label Sep 13, 2021
rollingman1 pushed a commit to rollingman1/mmpose that referenced this issue Nov 5, 2021
Remove frame rate adjusting in cut_videos.sh
@chophilip21
Copy link

any update on this?

@den-run-ai
Copy link

onnx conversion works, but torchscript conversion fails due to custom sub-class of pytorch

@rtaylo45
Copy link

I know im a little late on this thread but i was having a similar issue to @alicera for exporting a module using onnx. The model only returns the heat map and not the decoded keypoints. Is this still an issue? If not, can someone point me to an onnx example?

@Monalsingh
Copy link

I also want to know, how to convert mmpose models to onnx. Does anyone have an example code?

@ly015
Copy link
Member

ly015 commented Jun 28, 2022

@Monalsingh @rtaylo45 Now we have MMDeploy to support model export and deployment for MMPose. An example is provided in MMDeploy documents.

@AshvantSelvam
Copy link

AshvantSelvam commented Nov 4, 2022

Would like to have Tracing support for mmPose models.
I have been able to successfully use 'torch2torchscript' under mmdeploy.apis to trace mmSegmentation Models. However, using the same on mmPose (tried configs under dekr and associative+embedding) with the following mmdeploy config: '\mmdeploy\configs\mmpose\pose-detection_torchscript.py' would throw the following error:

File "mmdetection\mmpose\mmpose\datasets\pipelines\shared_transform.py", line 176, in call
meta[key_tgt] = results[key_src]

KeyError: 'flip_index'

Added this to the feature request page. Posting here to see if there are any possible workarounds.

@rookiez7
Copy link

Now,Can export the model to torchscript?

HAOCHENYE pushed a commit to HAOCHENYE/mmpose that referenced this issue Jun 27, 2023
* Upgrade the versions of pre-commit-hooks

* update zh-cn.yaml
HAOCHENYE pushed a commit to HAOCHENYE/mmpose that referenced this issue Jun 27, 2023
* Add smddp dist backend option

* [Dev]: Upgrade pre commit hooks (open-mmlab#576)

* Upgrade the versions of pre-commit-hooks

* update zh-cn.yaml

* [Docs] Fix the docstring of model sub-package (open-mmlab#573)

* [Doc]: Update config.md (open-mmlab#562)

* Update config.md

* Update config.md

* [Doc] delete the error comment  in docs (open-mmlab#514)

Co-authored-by: Zaida Zhou <[email protected]>
Co-authored-by: Zhengfei-0311 <[email protected]>
Co-authored-by: vansin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment issue/PR about deployment enhancement New feature or request
Projects
None yet
Development

No branches or pull requests