ComfyUI  >  Nodes  >  KJNodes for ComfyUI >  DrawInstanceDiffusionTracking

ComfyUI Node: DrawInstanceDiffusionTracking

Class Name

DrawInstanceDiffusionTracking

Category
KJNodes/InstanceDiffusion
Author
kijai (Account age: 2192 days)
Extension
KJNodes for ComfyUI
Latest Updated
6/25/2024
Github Stars
0.3K

How to Install KJNodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for  KJNodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter KJNodes for 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

DrawInstanceDiffusionTracking Description

Visualize tracking data with bounding boxes and labels on images for AI artists to verify and fine-tune diffusion models.

DrawInstanceDiffusionTracking:

The DrawInstanceDiffusionTracking node is designed to visualize tracking data generated by the CreateInstanceDiffusionTracking node. This node overlays tracking information, such as bounding boxes and class labels, onto an image, making it easier to see and understand the tracked instances within the image. This visualization is particularly useful for AI artists who need to verify and fine-tune the tracking data used in their diffusion models. By providing a clear visual representation of the tracked instances, this node helps ensure that the tracking data aligns correctly with the image content, facilitating more accurate and effective diffusion processes.

DrawInstanceDiffusionTracking Input Parameters:

image

This parameter accepts an image input on which the tracking data will be drawn. The image serves as the canvas for visualizing the tracking information.

tracking

This parameter takes the tracking data generated by the CreateInstanceDiffusionTracking node. The tracking data includes information about the instances to be visualized, such as their bounding boxes and class labels. This parameter is required and must be provided for the node to function.

box_line_width

This integer parameter specifies the width of the lines used to draw the bounding boxes around the tracked instances. The default value is 2, with a minimum value of 1 and a maximum value of 10. Adjusting this parameter can help make the bounding boxes more or less prominent, depending on the needs of the visualization.

draw_text

This boolean parameter determines whether to draw the class names and IDs as text above the bounding boxes. The default value is True. Enabling this option helps in identifying the tracked instances by their class names and IDs directly on the image.

font

This parameter allows you to select the font used for drawing the class names and IDs. The available fonts are listed in the kjnodes_fonts directory. Choosing an appropriate font can enhance the readability of the text annotations.

font_size

This integer parameter sets the size of the font used for the text annotations. The default value is 20. Adjusting the font size can help ensure that the text is legible and appropriately scaled relative to the image and bounding boxes.

DrawInstanceDiffusionTracking Output Parameters:

image

The output is an image with the tracking data visualized on it. This image includes the bounding boxes and, if enabled, the class names and IDs of the tracked instances. The visualized image helps in verifying the accuracy and alignment of the tracking data with the image content.

DrawInstanceDiffusionTracking Usage Tips:

  • Ensure that the tracking data provided to the node is accurate and corresponds correctly to the instances in the image to achieve meaningful visualizations.
  • Adjust the box_line_width and font_size parameters to improve the visibility and readability of the bounding boxes and text annotations, especially when working with images of different resolutions.
  • Use a clear and legible font from the kjnodes_fonts directory to enhance the readability of the class names and IDs.

DrawInstanceDiffusionTracking Common Errors and Solutions:

Unexpected data type for bbox: <type>

  • Explanation: This error occurs when the bounding box data is not in the expected list or tuple format.
  • Solution: Ensure that the tracking data contains bounding boxes in the correct format, typically as lists or tuples of coordinates.

Missing required input: tracking

  • Explanation: This error indicates that the required tracking data input is not provided.
  • Solution: Provide the necessary tracking data generated by the CreateInstanceDiffusionTracking node to the tracking input parameter.

Font not found in kjnodes_fonts

  • Explanation: This error occurs when the specified font is not available in the kjnodes_fonts directory.
  • Solution: Ensure that the font name is correctly specified and that the font file is present in the kjnodes_fonts directory.

DrawInstanceDiffusionTracking Related Nodes

Go back to the extension to check out more related nodes.
KJNodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.