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

Memory Usage Question #39

Open
liamwebsterxyz opened this issue May 3, 2024 · 1 comment
Open

Memory Usage Question #39

liamwebsterxyz opened this issue May 3, 2024 · 1 comment

Comments

@liamwebsterxyz
Copy link

Is my understanding correct that this library is applicable in the following scenario? Given a stream, this library utilizes the available GPU to decode the stream and provides a tensor located on the GPU, which references the decoded image frame. This tensor can then be used by another model on the GPU.

@BykadorovR
Copy link
Contributor

Hello,
Yes, exactly, the whole processing (decoding, post-processing) happens on GPU and then the result is converted to Pytorch Tensor:

outputTensor = torch::from_blob(processedFrame->opaque, { processedFrame->height, processedFrame->width, (int) channels },

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

2 participants