ComfyUI > Nodes > ComfyUI > RT-DETR Detect

ComfyUI Node: RT-DETR Detect

Class Name

RTDETR_detect

Category
detection
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

RT-DETR Detect Description

Powerful node for real-time object detection using RT-DETR model, providing bounding boxes and high accuracy.

RT-DETR Detect:

RTDETR_detect is a powerful node designed for object detection tasks, leveraging the capabilities of the RT-DETR (Real-Time Detection Transformer) model. This node is specifically crafted to identify and locate objects within an image, providing bounding boxes around detected items. It is particularly beneficial for applications requiring real-time object detection, such as surveillance, autonomous driving, and interactive AI art installations. The node processes images to detect objects based on a specified confidence threshold and can filter detections by class, making it versatile for various use cases. By utilizing advanced transformer-based techniques, RTDETR_detect offers high accuracy and efficiency, ensuring that you can achieve precise object detection results with minimal latency.

RT-DETR Detect Input Parameters:

model

The model parameter represents the pre-trained RT-DETR model used for object detection. This model is responsible for processing the input image and identifying objects within it. The choice of model can significantly impact the accuracy and speed of detection, as different models may be optimized for various tasks or datasets.

image

The image parameter is the input image on which object detection will be performed. It should be provided in a format compatible with the model, typically as a tensor with dimensions representing batch size, height, width, and channels. The quality and resolution of the image can affect the detection results, with higher quality images generally yielding better accuracy.

threshold

The threshold parameter sets the minimum confidence level required for a detection to be considered valid. It is a floating-point value, with a default of 0.5, meaning that only detections with a confidence score above this threshold will be included in the output. Adjusting this value can help filter out less certain detections, allowing you to balance between precision and recall based on your specific needs.

class_name

The class_name parameter allows you to filter detections by specific object classes. It offers options including "all" and various COCO dataset classes. By default, it is set to "all," meaning no filtering is applied, and all detected objects are returned. This parameter is useful when you are interested in detecting only certain types of objects, such as "person" or "car," within the image.

max_detections

The max_detections parameter specifies the maximum number of detections to return per image, with a default value of 100. This parameter helps manage the output size and ensures that only the most confident detections are included, sorted in descending order of confidence score. It is particularly useful in scenarios where you need to limit the number of objects processed or displayed.

RT-DETR Detect Output Parameters:

bboxes

The bboxes output parameter provides the bounding boxes for the detected objects in the input image. Each bounding box is represented as a dictionary containing the coordinates (x, y), dimensions (width, height), the label of the detected object, and the confidence score. This output is crucial for applications that require precise localization of objects, enabling further processing or visualization of the detected items.

RT-DETR Detect Usage Tips:

  • To improve detection accuracy, ensure that the input image is of high quality and properly pre-processed to match the model's expected input format.
  • Adjust the threshold parameter to fine-tune the balance between precision and recall. A higher threshold may reduce false positives, while a lower threshold can increase the number of detected objects.
  • Use the class_name parameter to focus on specific object classes relevant to your application, which can help reduce unnecessary detections and improve processing efficiency.

RT-DETR Detect Common Errors and Solutions:

Model not loaded

  • Explanation: This error occurs when the specified model is not properly loaded into the GPU for processing.
  • Solution: Ensure that the model is correctly specified and available in the environment. Check for any issues with model file paths or compatibility with the current setup.

Image format mismatch

  • Explanation: This error arises when the input image does not match the expected format or dimensions required by the model.
  • Solution: Verify that the image is pre-processed correctly, with dimensions and channels matching the model's requirements. Use appropriate libraries to convert and resize images as needed.

Invalid class name

  • Explanation: This error occurs when an unsupported class name is provided in the class_name parameter.
  • Solution: Ensure that the class name is either "all" or one of the valid COCO dataset classes. Refer to the documentation for a list of supported class names.

RT-DETR Detect Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

RT-DETR Detect