Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance AI images with detection results overlay for visualizing object detection outcomes intuitively.
The UltralyticsVisualization node is designed to enhance your AI-generated images by overlaying detection results from Ultralytics models, such as YOLO, onto the original images. This node is particularly useful for visualizing the outcomes of object detection tasks, making it easier to interpret and analyze the results. By providing a clear and annotated view of detected objects, this node helps you understand the performance and accuracy of your models. The visualization process involves drawing bounding boxes, labels, and other relevant information directly onto the images, which can be customized in terms of line width and font size. This node is essential for anyone looking to gain insights into their object detection models' performance in a visually intuitive manner.
The image
parameter expects an input image or a batch of images on which the detection results will be visualized. This image serves as the canvas for drawing the bounding boxes and labels. The input should be in a format compatible with the Ultralytics models, typically a tensor or a numpy array representing the image data.
The results
parameter takes the detection results generated by an Ultralytics model. These results include the bounding boxes, class labels, and confidence scores for each detected object. The node uses this information to annotate the input image(s) accordingly.
The line_width
parameter allows you to specify the thickness of the lines used to draw the bounding boxes around detected objects. This parameter helps in customizing the visualization to make the bounding boxes more or less prominent. The value should be an integer, with a default value of 3.
The font_size
parameter controls the size of the text used for labeling the detected objects. This includes the class names and confidence scores. Adjusting the font size can help in making the labels more readable, especially when dealing with images of different resolutions. The value should be an integer, with a default value of 1.
The sam
parameter is a boolean flag that determines whether to use a specific visualization mode. When set to True
, it applies a different plotting method that might be useful for certain types of visualizations. The default value is False
.
The tensor_image
output parameter provides the annotated image(s) as a tensor. This tensor contains the original image data with the detection results overlaid, making it ready for further processing or display. The output is particularly useful for visual inspection or for feeding into subsequent nodes in a processing pipeline.
line_width
and font_size
parameters to ensure that the bounding boxes and labels are clearly visible on your images, especially if you are working with high-resolution images.sam
parameter to experiment with different visualization modes and find the one that best suits your needs.results
parameter is correctly populated with the detection results from an Ultralytics model to get accurate visualizations.results
parameter.line_width
or font_size
are not within acceptable ranges.line_width
and font_size
are set to appropriate integer values, typically greater than 0.© Copyright 2024 RunComfy. All Rights Reserved.