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

add Image to tensor built in utils #65

Merged
merged 6 commits into from
Mar 27, 2024
Merged

add Image to tensor built in utils #65

merged 6 commits into from
Mar 27, 2024

Conversation

edgarriba
Copy link
Member

  • add .to_tensor_nchw() and .to_tensor_nhwc() to the Image struct to easily convert images e.g to feed to onnxruntime
  • make Image.data() pub (crate) to avoid leaks from user perspective
  • some tweaks in the rerun examples logs api

@edgarriba edgarriba merged commit 561cc41 into main Mar 27, 2024
8 of 9 checks passed
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.

1 participant