Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

Available Nodes

AppendInstanceDiffusionTracking

ComfyUI Node Documentation: AppendInstanceDiffusionTracking

Node Overview

The AppendInstanceDiffusionTracking node is part of the ComfyUI-KJNodes repository, a collection of nodes for enhancing the functionality of ComfyUI. This specific node is designed to facilitate the process of appending and combining tracking data for use with the InstanceDiffusion extension in ComfyUI.

Node Functionality

The primary function of AppendInstanceDiffusionTracking is to merge tracking data and corresponding prompt strings from two different sources. This allows users to efficiently manage and consolidate tracking information for InstanceDiffusion operations, ensuring seamless integration and enhanced usability.

Inputs

The node accepts the following inputs:

  1. tracking_1 - This input requires tracking data in a specific format associated with ComfyUI's InstanceDiffusion. The data should include location and dimension information and is typically produced by other nodes in the InstanceDiffusion category, such as CreateInstanceDiffusionTracking.

  2. tracking_2 - Similar to tracking_1, this input requires another set of tracking data to be merged with the first.

  3. prompt_1 (optional) - This is an optional input, accepting a string that represents the prompt associated with tracking_1. If not provided, this defaults to an empty string.

  4. prompt_2 (optional) - Similar to prompt_1, this optional string input corresponds to the prompt associated with tracking_2. This too defaults to an empty string if not provided.

Outputs

The node produces the following outputs:

  1. tracking - This output delivers a combined version of the tracking_1 and tracking_2 inputs, effectively appending any new class names and IDs from tracking_2 to tracking_1.

  2. prompt - Consisting of the concatenated prompt_1 and prompt_2 strings, this output provides a unified prompt for use with the merged tracking data in InstanceDiffusion workflows.

Usage in ComfyUI Workflows

In a typical ComfyUI workflow involving InstanceDiffusion, the AppendInstanceDiffusionTracking node can be utilized to compile multiple sets of tracking data into a single output. This capability is particularly useful when working with complex compositions or multiple objects within a scene, as it allows for organized management of tracking data across different entities. Users benefit from a streamlined workflow, where appending and merging tracking information becomes an automated process, reducing the need for manual intervention and potential errors.

Special Features and Considerations

  • Integration with InstanceDiffusion: This node is tailored for use with the InstanceDiffusion extension, making it an integral part of workflows requiring precise object tracking.

  • Error Handling: The node checks for existing class names and IDs, ensuring no duplicate conflicts arise when merging tracking data. This feature helps maintain data integrity within workflows.

  • Prompt String Management: By consolidating prompt strings, the node aids in maintaining coherent and organized prompts that correspond to the merged tracking data, enhancing the readability and manageability of workflow configurations.

  • Flexibility: With optional prompt inputs, users have the flexibility to include or omit prompt data as required by their specific application, without interrupting the core functionality of the node.

This document provides a comprehensive overview of the AppendInstanceDiffusionTracking node, its inputs and outputs, and its role within ComfyUI workflows. For more details and updates, users can visit the ComfyUI-KJNodes repository on GitHub.