Skip to main content

CreateInstanceDiffusionTracking

KJNodes/InstanceDiffusion
CreateInstanceDiffusionTracking

Creates tracking data to be used with InstanceDiffusion: https://github.com/logtd/ComfyUI-InstanceDiffusion InstanceDiffusion prompt format: "class_id.class_name": "prompt", for example: "1.head": "((head))",

Example

JSON Example
{
  "class_type": "CreateInstanceDiffusionTracking",
  "inputs": {
    "coordinates": "",
    "width": 512,
    "height": 512,
    "bbox_width": 512,
    "bbox_height": 512,
    "class_name": "class_name",
    "class_id": 0,
    "prompt": "prompt"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
coordinatesSTRINGrequired--
widthINTrequiredmin: 16, max: 4096, step: 1512
heightINTrequiredmin: 16, max: 4096, step: 1512
bbox_widthINTrequiredmin: 16, max: 4096, step: 1512
bbox_heightINTrequiredmin: 16, max: 4096, step: 1512
class_nameSTRINGrequired-"class_name"
class_idINTrequiredmin: 0, max: 255, step: 10
promptSTRINGrequired-"prompt"
size_multiplierFLOAToptional-[1]
fit_in_frameBOOLEANoptional-true

Outputs

IndexNameTypeIs ListConnection Reference
0trackingTRACKINGNo["{node_id}", 0]
1promptSTRINGNo["{node_id}", 1]
2widthINTNo["{node_id}", 2]
3heightINTNo["{node_id}", 3]
4bbox_widthINTNo["{node_id}", 4]
5bbox_heightINTNo["{node_id}", 5]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this CreateInstanceDiffusionTracking node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • tracking (TRACKING): ["5", 0]
  • prompt (STRING): ["5", 1]
  • width (INT): ["5", 2]
Was this page helpful?