-
Notifications
You must be signed in to change notification settings - Fork 427
Closed
Description
Howdy!
When trying to use this crate in combination with the opencv crate there appears to be no fast way to build a Tensor from an opencv matrix.
Currently you have to copy pixel by pixel and it absolutely kills my framerate. Without even running inference, just initializing the tensor this way takes me from ~22ms -> ~60ms of frame preparation time.
Before I trod down any paths you're currently looking into, I wanted to get your thoughts on approaches you'd accept a PR for.
What would make my life easiest would to be able to get a pointer to the tensor data, which I can construct a cv matrix from. I'd then use the cv api to initialize the tensor (normalizing the pixel values).
kahlil29
Metadata
Metadata
Assignees
Labels
No labels