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

How to feed buffer to deep model in gsreamer plugin #327

Open
PythonImageDeveloper opened this issue Oct 12, 2020 · 0 comments
Open

How to feed buffer to deep model in gsreamer plugin #327

PythonImageDeveloper opened this issue Oct 12, 2020 · 0 comments

Comments

@PythonImageDeveloper
Copy link

Hi everyone,
Suppose I want to use python inference for a deep model and do inference in plugin, one solution is to copy all regular inference python codes in do_transform_ip method in the class of gstreamer plugin, and convert buffer to numpy array and then pass to the model and get inference and create metadata for that buffer and then pass metadata to next element, but I don't know is it optimal solution convert buffer to numpy array for feeding the model? I want to know, in the c++ gstinfer element, the buffer converted to numpy array before feed to model? Is it possible to feed buffer to model? I want to know converting buffer to numpy array is has overload? I know converting buffer to numpy array in prob_function has overload, but I don't know has overload in the inside plugin overload also?

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

1 participant