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

[WIP] πŸ¦€ Standalone Rust Inference #2028

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ashwinvaidya17
Copy link
Collaborator

πŸ“ Description

  • Requires a lot of cleanup but here is the scaffolding.
  • Produces simple heat map overlay
image

✨ Changes

Select what type of change your PR is:

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • πŸ”¨ Refactor (non-breaking change which refactors the code base)
  • πŸš€ New feature (non-breaking change which adds functionality)
  • πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ“š Documentation update
  • πŸ”’ Security update

βœ… Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • πŸ“‹ I have summarized my changes in the CHANGELOG and followed the guidelines for my type of change (skip for minor changes, documentation updates, and test enhancements).
  • πŸ“š I have made the necessary updates to the documentation (if applicable).
  • πŸ§ͺ I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).

For more information about code review checklists, see the Code Review Checklist.

Signed-off-by: Ashwin Vaidya <[email protected]>
Signed-off-by: Ashwin Vaidya <[email protected]>
@alexriedel1
Copy link
Contributor

Is it fast?

@ashwinvaidya17
Copy link
Collaborator Author

Is it fast?

I haven't benchmarked this yet but I can say that this isn't the fastest. It uses the input image to set model input tensor info. But I feel we can make it more efficient by using Rust's native async feature to separate data fetching and model inference. Especially given that OpenVINO also supports async inference. This is more of a PoC for now. Not sure if we will go with Rust or C++ for standalone inference.

@alexriedel1
Copy link
Contributor

Is it fast?

I haven't benchmarked this yet but I can say that this isn't the fastest. It uses the input image to set model input tensor info. But I feel we can make it more efficient by using Rust's native async feature to separate data fetching and model inference. Especially given that OpenVINO also supports async inference. This is more of a PoC for now. Not sure if we will go with Rust or C++ for standalone inference.

Alright! Thanks for the info :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants