ComfyUI  >  Nodes  >  KJNodes for ComfyUI >  CreateInstanceDiffusionTracking

ComfyUI Node: CreateInstanceDiffusionTracking

Class Name

CreateInstanceDiffusionTracking

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

CreateInstanceDiffusionTracking Description

Generate tracking data for InstanceDiffusion, enhancing image generation with structured object tracking information.

CreateInstanceDiffusionTracking:

The CreateInstanceDiffusionTracking node is designed to generate tracking data for use with InstanceDiffusion, a tool that enhances image generation by incorporating object tracking information. This node allows you to define specific regions within an image, assign class names and IDs to these regions, and create prompts that guide the diffusion process. By leveraging this tracking data, you can achieve more precise and controlled image generation, making it particularly useful for tasks that require detailed object placement and manipulation. The node's primary goal is to facilitate the creation of structured tracking data that can be seamlessly integrated with InstanceDiffusion, thereby improving the quality and specificity of the generated images.

CreateInstanceDiffusionTracking Input Parameters:

coordinates

The coordinates parameter is a string that specifies the coordinates of the regions to be tracked within the image. This input is crucial as it defines the exact areas that will be influenced by the diffusion process. The format and structure of the coordinates should be precise to ensure accurate tracking.

width

The width parameter sets the width of the image in pixels. It accepts integer values ranging from 16 to 4096, with a default value of 512. This parameter determines the horizontal dimension of the image and impacts the overall resolution and detail of the generated output.

height

The height parameter sets the height of the image in pixels. Similar to the width parameter, it accepts integer values ranging from 16 to 4096, with a default value of 512. This parameter determines the vertical dimension of the image and affects the resolution and detail of the generated output.

bbox_width

The bbox_width parameter defines the width of the bounding box for the tracked region in pixels. It accepts integer values ranging from 16 to 4096, with a default value of 512. This parameter is essential for specifying the size of the tracked area within the image.

bbox_height

The bbox_height parameter defines the height of the bounding box for the tracked region in pixels. It accepts integer values ranging from 16 to 4096, with a default value of 512. This parameter is crucial for specifying the size of the tracked area within the image.

class_name

The class_name parameter is a string that assigns a name to the tracked region. This name is used to identify and differentiate between various tracked objects within the image. The default value is "class_name".

class_id

The class_id parameter assigns an integer ID to the tracked region. It accepts values ranging from 0 to 255, with a default value of 0. This ID is used to uniquely identify the tracked object and is essential for the InstanceDiffusion process.

prompt

The prompt parameter is a multiline string that provides a textual description or prompt for the tracked region. This prompt guides the diffusion process by specifying the desired characteristics or features of the tracked object. The default value is "prompt".

size_multiplier

The size_multiplier parameter is a float that scales the size of the tracked region. The default value is 1.0. This parameter allows you to adjust the size of the tracked area relative to its original dimensions.

fit_in_frame

The fit_in_frame parameter is a boolean that determines whether the tracked region should be adjusted to fit within the image frame. The default value is True. This parameter ensures that the tracked area remains within the boundaries of the image, preventing any part of it from being cut off.

CreateInstanceDiffusionTracking Output Parameters:

tracking

The tracking output parameter provides the generated tracking data, which includes the coordinates, class names, class IDs, and prompts for the tracked regions. This data is essential for guiding the InstanceDiffusion process and achieving precise image generation.

prompt

The prompt output parameter returns the combined prompt string that includes the descriptions for all tracked regions. This prompt is used to guide the diffusion process and ensure that the generated image aligns with the specified characteristics and features.

width

The width output parameter returns the width of the image in pixels. This value is essential for understanding the dimensions of the generated image.

height

The height output parameter returns the height of the image in pixels. This value is crucial for understanding the dimensions of the generated image.

bbox_width

The bbox_width output parameter returns the width of the bounding box for the tracked region in pixels. This value is important for understanding the size of the tracked area.

bbox_height

The bbox_height output parameter returns the height of the bounding box for the tracked region in pixels. This value is important for understanding the size of the tracked area.

CreateInstanceDiffusionTracking Usage Tips:

  • Ensure that the coordinates parameter is accurately defined to achieve precise tracking of the desired regions.
  • Adjust the width and height parameters to match the resolution requirements of your project for optimal image quality.
  • Use descriptive and specific prompts to guide the diffusion process effectively and achieve the desired characteristics in the generated image.
  • Utilize the size_multiplier parameter to fine-tune the size of the tracked regions relative to the original dimensions.

CreateInstanceDiffusionTracking Common Errors and Solutions:

"Invalid coordinates format"

  • Explanation: The coordinates parameter is not in the correct format.
  • Solution: Ensure that the coordinates are specified in the correct format and structure.

"Width or height out of range"

  • Explanation: The width or height parameter is set outside the acceptable range of 16 to 4096 pixels.
  • Solution: Adjust the width and height values to be within the specified range.

"Class ID out of range"

  • Explanation: The class_id parameter is set outside the acceptable range of 0 to 255. - Solution: Adjust the class_id value to be within the specified range.

"Prompt string too long"

  • Explanation: The prompt parameter exceeds the maximum allowed length.
  • Solution: Shorten the prompt string to fit within the allowed length.

CreateInstanceDiffusionTracking 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.