✨ feat(deploy): Modernize TRT deployment for Blackwell with docs #620
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Feature] Add NVIDIA Blackwell Support & Modernize TensorRT Deployment
Hi @lyuwenyu
It's great to connect with you again! Following my previous contributions in PRs #395 and #480, I'm thrilled to have another opportunity to contribute. Your RT-DETR repository has been an incredible foundation for my work, and it's inspired me to explore its potential on the very latest hardware.
This pull request provides critical updates to enable RT-DETR deployment on NVIDIA's new Blackwell architecture. The existing deployment scripts and environment were incompatible with the newer drivers and libraries required for Blackwell, failing at both the ONNX-to-TRT conversion and the final inference stages. This PR addresses these issues comprehensively, delivering a modernized, robust, and future-proof deployment workflow.
Key Changes by File
Dockerfile
&requirements.txt
:nvcr.io/nvidia/pytorch:25.06-py3
to provide the necessary CUDA toolkit and library support for the Blackwell architecture.references/deploy/rtdetrv2_tensorrt.py
:--engine
,--image
, etc.) and a built-in visualization function to save inference results as an image file.tools/onnx2trt.sh
(New Addition):trtexec
wrapper script that takes the ONNX file path as an argument, replacing hardcoded paths and standardizing the conversion process.docker-compose.yml
:Dockerfile
to simplify local development setup.README.md
:Extensive Testing & Validation
This entire workflow has been extensively tested and validated across the following NVIDIA GPU architectures to ensure broad, stable compatibility:
Sample Test Run on Blackwell (RTX 5070)
The updated
rtdetrv2_tensorrt.py
script provides the following output, demonstrating a successful end-to-end test run:Thank you again for maintaining this fantastic project. I hope this contribution helps the community leverage the power of RT-DETR on the next generation of hardware!