Both nodes will require a `pre-processor` (`encoder`) and `post-processor` (`decoder`) node. A `pre-processor` node should take a ROS2 message, perform the pre-processing steps dictated by the model, and then convert it to a ROS2 TensorList message. For example, a `pre-processor` node could resize an image, normalize the image, and then perform the message conversion. On the other hand, a `post-processor` node should be used to convert the output of the model inference into a usable form. For example, a `post-processor` node may perform argmax to identify the class label from a classification problem. The specific functionality of these two nodes are application-specific.
0 commit comments