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

Can the model be converted into ONNX to accelerate inference? #92

Closed
psiydown opened this issue Feb 7, 2024 · 4 comments
Closed

Can the model be converted into ONNX to accelerate inference? #92

psiydown opened this issue Feb 7, 2024 · 4 comments

Comments

@psiydown
Copy link

psiydown commented Feb 7, 2024

Hello, @shubham-goel @geopavlakos
Currently, inference is too slow. Is there any way to achieve real-time 30fps?

@geopavlakos
Copy link
Collaborator

Which aspect are you mostly interested in? The HMR2.0 network? The general single-image demo? Or the video tracking code?

@psiydown
Copy link
Author

psiydown commented Feb 8, 2024

Hi @geopavlakos

I am very interested in video tracking for HMR2.0, so I want to achieve real-time camera tracking. Can use ONNXRuntime for real-time run or other methods to accelerate it? Thank you

@geopavlakos
Copy link
Collaborator

If you want to use only the HMR2.0 network, that should require ~32ms for a single forward pass on an RTX 3090 (potentially faster on more recent hardware). If the HMR2.0 network is part of a more elaborate pipeline (e.g., supporting video/camera tracking), then there are more components to be considered. I'm not familiar with ONNX, so I cannot tell for sure if that would help.

@shaohua-pan
Copy link

Hi, @geopavlakos, what time will the general single-image demo take? Can this pipeline achieves 30 fps? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants