Hi,
I’m currently using a RealSense camera to follow the tutorial at isaac_ros_rtdetr — isaac_ros_docs documentation for object detection using the RT-DETR model. The example uses the sdetr_grasp.onnx
pre-trained model, and I was able to successfully reproduce the demo with the provided Rosbag.
Now, I want to test a different model. I downloaded a pre-trained model from the RT-DETR PyTorch repo (RT-DETR/rtdetr_pytorch at main · lyuwenyu/RT-DETR · GitHub) and replaced the original commands as follows:
From:
/usr/src/tensorrt/bin/trtexec --onnx=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/sdetr_grasp.onnx --saveEngine=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/sdetr_grasp.plan
ros2 launch isaac_ros_examples isaac_ros_examples.launch.py launch_fragments:=realsense_mono_rect,rtdetr engine_file_path:=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/sdetr_grasp.plan
To:
/usr/src/tensorrt/bin/trtexec --onnx=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/rtdetr_r101vd_6x_coco.onnx --saveEngine=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/rtdetr_r101vd_6x_coco.plan
ros2 launch isaac_ros_examples isaac_ros_examples.launch.py launch_fragments:=realsense_mono_rect,rtdetr engine_file_path:=${ISAAC_ROS_WS}/isaac_ros_assets/models/synthetica_detr/rtdetr_r101vd_6x_coco.plan
There were no errors during the process, and the camera feed was displayed successfully. However, no detection results were shown. I would like to ask: besides replacing the ONNX model and engine file, are there any additional steps needed to run other RT-DETR models with this example?
Thank you very much in advance. I’ve also included my log information and model below for reference.
log.txt (26.8 KB)
model.zip