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 deploy onnx models requiring multiple inputs? #45

Open
breaker-mm opened this issue Apr 2, 2024 · 0 comments
Open

How to deploy onnx models requiring multiple inputs? #45

breaker-mm opened this issue Apr 2, 2024 · 0 comments

Comments

@breaker-mm
Copy link

breaker-mm commented Apr 2, 2024

Hi there. I was trying to deploy a pointpillars .onnx model using the dnn_inference package. The model takes three tensor lists as input. Normally, I should write an encoder that publishes all three required nitros tensorlist data with different topics. However, I don't know how to connect the encoder with the tensor_rt_node.
image

I read part of the source code of this package and it seems that the tensor_rt_node does not support subscribing to multiple topics. However, in the tensor_rt_inference GXF extension, I found that the model loaded by the TensorRtInference component can fetch data from multiple rx components (inferred from the tick() function) and thus complete the populating of multiple inputs.
I was confused. Do I need to modify the source code for tensor_rt_node?
What should I do?

After further examination of the source code, I have developed some ideas.
Maybe I need to modify the dnn_image_encoder_node.yaml file (adding the DoubleBufferTransmitter components) and modify the nitros::NitrosPublisherSubscriberConfigMap CONFIG_MAP variable accordingly (in tensor_rt_node.cpp file) based on the names of the new components.
Am I thinking right?

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