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

Batched inference, tensorRT #151

Open
Kishore-Yogaraj opened this issue Sep 24, 2024 · 6 comments
Open

Batched inference, tensorRT #151

Kishore-Yogaraj opened this issue Sep 24, 2024 · 6 comments
Assignees

Comments

@Kishore-Yogaraj
Copy link

Need to use TensorRT, something like https://github.com/noahmr/yolov5-tensorrt for yolov8
https://github.com/triple-Mu/YOLOv8-TensorRT/blob/main/infer-det.py

will be in C++

also look at https://github.com/NVIDIA-AI-IOT/YOLOv5-with-Isaac-ROS

[justin] read 2.1. Batching section here https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-700/pdf/TensorRT-Best-Practices.pdf
Approach: There are three subtasks for this:

@Arfan12630
Copy link

Buffer for getting messages from all 6 camera angles
https://wiki.ros.org/message_filters#registerCallback.28.29

@Kishore-Yogaraj
Copy link
Author

  • Preprocessing batching 6 images from 6 different camera angles (using nuscenes) dataset has been completed
  • The current YOLOV8 pytorch model was converted to ONNX format
  • TensorRT engine has been built
  • Bounding box logic is currently being worked on
  • Error with allocating GPU for use with TensorRT engine
  • Memory needs to be allocated to buffers for TensorRT inference

@Kishore-Yogaraj Kishore-Yogaraj changed the title Extend Camera Object Detection for multiple cameras within the same node -> Batched inference, tensorRT Batched inference, tensorRT Nov 12, 2024
@Kishore-Yogaraj
Copy link
Author

  • Allocated GPU for use with TensorRT engine
  • Had an error with inferencing due to a change in Cuda version
  • Fixed error by adjusting to new cuda version and rebuilding enginer
  • Working on bounding box visualization

@Arfan12630
Copy link

Arfan12630 commented Nov 26, 2024

  • Bounding boxes, class IDs, and confidence scores have been stored in a structured results dictionary.
  • Detection results have been organized into a detection2D array for further processing.
  • Currently working on visualizing the detections in Foxglove

@Arfan12630
Copy link

  • Getting detections on foxglove
  • Working on refactoring and ensuring there are no incorrect bounding boxes and overlap
  • Working on visualizing all batched images

@Arfan12630
Copy link

  • Getting detections for all camera angles
  • Nuscenes batch inferencing complete
  • Waiting on eve rosbags for testing
  • Waiting on approval for PR

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

6 participants