{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "f4cfd806-6db2-425e-9f50-3eb8fe546a77",
        "inputNode": {
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "label": "image",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -2143.630859375,
              -3430
            ],
            "type": "IMAGE"
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "label": "object",
            "linkIds": [
              265
            ],
            "name": "text",
            "pos": [
              -2143.630859375,
              -3410
            ],
            "type": "STRING"
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "linkIds": [
              266
            ],
            "name": "bboxes",
            "pos": [
              -2143.630859375,
              -3390
            ],
            "type": "BOUNDING_BOX"
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "linkIds": [
              267
            ],
            "name": "positive_coords",
            "pos": [
              -2143.630859375,
              -3370
            ],
            "type": "STRING"
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "linkIds": [
              268
            ],
            "name": "negative_coords",
            "pos": [
              -2143.630859375,
              -3350
            ],
            "type": "STRING"
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "linkIds": [
              269
            ],
            "name": "threshold",
            "pos": [
              -2143.630859375,
              -3330
            ],
            "type": "FLOAT"
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "linkIds": [
              270
            ],
            "name": "refine_iterations",
            "pos": [
              -2143.630859375,
              -3310
            ],
            "type": "INT"
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "linkIds": [
              271
            ],
            "name": "individual_masks",
            "pos": [
              -2143.630859375,
              -3290
            ],
            "type": "BOOLEAN"
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "linkIds": [
              272
            ],
            "name": "ckpt_name",
            "pos": [
              -2143.630859375,
              -3270
            ],
            "type": "COMBO"
          }
        ],
        "links": [
          {
            "id": 237,
            "origin_id": 77,
            "origin_slot": 0,
            "target_id": 75,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 78,
            "origin_slot": 0,
            "target_id": 75,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 77,
            "origin_slot": 1,
            "target_id": 78,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 75,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 75,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 75,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 78,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 75,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 75,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 75,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 75,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 75,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 75,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 77,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "name": "Image Segment (SAM3)",
        "nodes": [
          {
            "flags": {},
            "id": 78,
            "inputs": [
              {
                "link": 240,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 265,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  200
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -1990,
              -3010
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              400,
              200
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "warrior, man, shield, sword"
            ]
          },
          {
            "flags": {},
            "id": 75,
            "inputs": [
              {
                "label": "model",
                "link": 237,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "label": "image",
                "link": 264,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "label": "conditioning",
                "link": 200,
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING"
              },
              {
                "label": "bboxes",
                "link": 266,
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX"
              },
              {
                "label": "positive_coords",
                "link": 267,
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING"
              },
              {
                "label": "negative_coords",
                "link": 268,
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING"
              },
              {
                "link": 269,
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                }
              },
              {
                "link": 270,
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                }
              },
              {
                "link": 271,
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  231
                ],
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK"
              },
              {
                "links": [
                  232
                ],
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX"
              }
            ],
            "pos": [
              -1470,
              -3460
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              270,
              260
            ],
            "type": "SAM3_Detect",
            "widgets_values": [
              0.5,
              2,
              false
            ]
          },
          {
            "flags": {},
            "id": 77,
            "inputs": [
              {
                "link": 272,
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  237
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              },
              {
                "links": [
                  240
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              },
              {
                "links": null,
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              -1970,
              -3200
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "checkpoints",
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              330,
              140
            ],
            "type": "CheckpointLoaderSimple",
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "name": "masks",
            "pos": [
              -1110,
              -3285
            ],
            "type": "MASK"
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "name": "bboxes",
            "pos": [
              -1110,
              -3265
            ],
            "type": "BOUNDING_BOX"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 1,
          "lastLinkId": 415,
          "lastNodeId": 197,
          "lastRerouteId": 10
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "e42b05e2-13fc-4ad5-822d-b89a8a297d35",
        "inputNode": {
          "bounding": [
            4762,
            -154,
            128,
            108
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "2defb97c-1221-442e-bcee-b0b10b2c9ba8",
            "linkIds": [
              323,
              354
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              51,
              24
            ],
            "type": "IMAGE"
          },
          {
            "id": "12a4dafa-915a-4bc5-964a-692fcbbfbec4",
            "linkIds": [
              400
            ],
            "localized_name": "image_1",
            "name": "image_1",
            "pos": [
              51,
              44
            ],
            "type": "IMAGE"
          },
          {
            "id": "82af0055-8cc3-4d26-b763-34332b5e3e71",
            "linkIds": [
              364
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              51,
              64
            ],
            "type": "MASK"
          }
        ],
        "links": [
          {
            "id": 324,
            "origin_id": 142,
            "origin_slot": 0,
            "target_id": 141,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 327,
            "origin_id": 141,
            "origin_slot": 0,
            "target_id": 143,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 326,
            "origin_id": 141,
            "origin_slot": 1,
            "target_id": 143,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 347,
            "origin_id": 155,
            "origin_slot": 0,
            "target_id": 151,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 340,
            "origin_id": 141,
            "origin_slot": 0,
            "target_id": 151,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 341,
            "origin_id": 141,
            "origin_slot": 1,
            "target_id": 151,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 348,
            "origin_id": 151,
            "origin_slot": 0,
            "target_id": 156,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 352,
            "origin_id": 156,
            "origin_slot": 0,
            "target_id": 158,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 355,
            "origin_id": 143,
            "origin_slot": 0,
            "target_id": 161,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 361,
            "origin_id": 158,
            "origin_slot": 0,
            "target_id": 161,
            "target_slot": 2,
            "type": "MASK"
          },
          {
            "id": 323,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 142,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 354,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 161,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 400,
            "origin_id": -10,
            "origin_slot": 1,
            "parentId": 8,
            "target_id": 143,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 364,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 155,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 357,
            "origin_id": 161,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          }
        ],
        "name": "Resize and Composite Frames",
        "nodes": [
          {
            "flags": {
              "collapsed": true
            },
            "id": 141,
            "inputs": [
              {
                "link": 324,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  327,
                  340
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  326,
                  341
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              5210,
              -350
            ],
            "properties": {
              "Node name for S&R": "GetImageSize"
            },
            "size": [
              230,
              70
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 142,
            "inputs": [
              {
                "link": 323,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": null,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  324
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              4950,
              -350
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch"
            },
            "size": [
              230,
              40
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              1
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 143,
            "inputs": [
              {
                "link": 400,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 327,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 326,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": null,
                "localized_name": "upscale_method",
                "name": "upscale_method",
                "type": "COMBO",
                "widget": {
                  "name": "upscale_method"
                }
              },
              {
                "link": null,
                "localized_name": "keep_proportion",
                "name": "keep_proportion",
                "type": "COMBO",
                "widget": {
                  "name": "keep_proportion"
                }
              },
              {
                "link": null,
                "localized_name": "pad_color",
                "name": "pad_color",
                "type": "STRING",
                "widget": {
                  "name": "pad_color"
                }
              },
              {
                "link": null,
                "localized_name": "crop_position",
                "name": "crop_position",
                "type": "COMBO",
                "widget": {
                  "name": "crop_position"
                }
              },
              {
                "link": null,
                "localized_name": "divisible_by",
                "name": "divisible_by",
                "type": "INT",
                "widget": {
                  "name": "divisible_by"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  355
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              5490,
              -350
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2"
            },
            "size": [
              230,
              100
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              512,
              512,
              "lanczos",
              "stretch",
              "0, 0, 0",
              "center",
              2,
              "cpu"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 151,
            "inputs": [
              {
                "link": 347,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 340,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 341,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": null,
                "localized_name": "upscale_method",
                "name": "upscale_method",
                "type": "COMBO",
                "widget": {
                  "name": "upscale_method"
                }
              },
              {
                "link": null,
                "localized_name": "keep_proportion",
                "name": "keep_proportion",
                "type": "COMBO",
                "widget": {
                  "name": "keep_proportion"
                }
              },
              {
                "link": null,
                "localized_name": "pad_color",
                "name": "pad_color",
                "type": "STRING",
                "widget": {
                  "name": "pad_color"
                }
              },
              {
                "link": null,
                "localized_name": "crop_position",
                "name": "crop_position",
                "type": "COMBO",
                "widget": {
                  "name": "crop_position"
                }
              },
              {
                "link": null,
                "localized_name": "divisible_by",
                "name": "divisible_by",
                "type": "INT",
                "widget": {
                  "name": "divisible_by"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  348
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": [],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              5630,
              -160
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2"
            },
            "size": [
              230,
              100
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              512,
              512,
              "lanczos",
              "stretch",
              "0, 0, 0",
              "center",
              2,
              "cpu"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 155,
            "inputs": [
              {
                "link": 364,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  347
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              5350,
              -160
            ],
            "properties": {
              "Node name for S&R": "MaskToImage"
            },
            "size": [
              230,
              30
            ],
            "type": "MaskToImage",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 156,
            "inputs": [
              {
                "link": 348,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "method",
                "name": "method",
                "type": "COMBO",
                "widget": {
                  "name": "method"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  352
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              5890,
              -160
            ],
            "properties": {
              "Node name for S&R": "Image To Mask"
            },
            "size": [
              230,
              40
            ],
            "type": "Image To Mask",
            "widgets_values": [
              "intensity"
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 158,
            "inputs": [
              {
                "link": 352,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "link": null,
                "localized_name": "expand",
                "name": "expand",
                "type": "INT",
                "widget": {
                  "name": "expand"
                }
              },
              {
                "link": null,
                "localized_name": "incremental_expandrate",
                "name": "incremental_expandrate",
                "type": "FLOAT",
                "widget": {
                  "name": "incremental_expandrate"
                }
              },
              {
                "link": null,
                "localized_name": "tapered_corners",
                "name": "tapered_corners",
                "type": "BOOLEAN",
                "widget": {
                  "name": "tapered_corners"
                }
              },
              {
                "link": null,
                "localized_name": "flip_input",
                "name": "flip_input",
                "type": "BOOLEAN",
                "widget": {
                  "name": "flip_input"
                }
              },
              {
                "link": null,
                "localized_name": "blur_radius",
                "name": "blur_radius",
                "type": "FLOAT",
                "widget": {
                  "name": "blur_radius"
                }
              },
              {
                "link": null,
                "localized_name": "lerp_alpha",
                "name": "lerp_alpha",
                "type": "FLOAT",
                "widget": {
                  "name": "lerp_alpha"
                }
              },
              {
                "link": null,
                "localized_name": "decay_factor",
                "name": "decay_factor",
                "type": "FLOAT",
                "widget": {
                  "name": "decay_factor"
                }
              },
              {
                "link": null,
                "localized_name": "fill_holes",
                "name": "fill_holes",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "fill_holes"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  361
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "links": null,
                "localized_name": "mask_inverted",
                "name": "mask_inverted",
                "type": "MASK"
              }
            ],
            "pos": [
              6150,
              -160
            ],
            "properties": {
              "Node name for S&R": "GrowMaskWithBlur"
            },
            "size": [
              300,
              340
            ],
            "type": "GrowMaskWithBlur",
            "widgets_values": [
              0,
              0,
              true,
              false,
              0.5,
              1,
              1,
              false
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 161,
            "inputs": [
              {
                "link": 354,
                "localized_name": "destination",
                "name": "destination",
                "type": "IMAGE"
              },
              {
                "link": 355,
                "localized_name": "source",
                "name": "source",
                "type": "IMAGE"
              },
              {
                "link": 361,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": null,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": null,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": null,
                "localized_name": "resize_source",
                "name": "resize_source",
                "type": "BOOLEAN",
                "widget": {
                  "name": "resize_source"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  357
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              6490,
              -160
            ],
            "properties": {
              "Node name for S&R": "ImageCompositeMasked"
            },
            "size": [
              230,
              80
            ],
            "type": "ImageCompositeMasked",
            "widgets_values": [
              0,
              0,
              false
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            6780,
            -134,
            128,
            68
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "e4f75fd8-0a62-4823-80ce-48122c5a70ca",
            "linkIds": [
              357
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              24,
              24
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 1,
          "lastLinkId": 415,
          "lastNodeId": 197,
          "lastRerouteId": 10
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        209.2075592832839,
        2025.3479747969361
      ],
      "scale": 0.18287740340399825
    },
    "frontendVersion": "1.43.15",
    "linkExtensions": [
      {
        "id": 2,
        "parentId": 7
      },
      {
        "id": 404,
        "parentId": 10
      },
      {
        "id": 409,
        "parentId": 8
      },
      {
        "id": 410,
        "parentId": 9
      }
    ],
    "reroutes": [
      {
        "id": 6,
        "linkIds": [
          2
        ],
        "pos": [
          1050,
          674
        ]
      },
      {
        "id": 7,
        "linkIds": [
          2
        ],
        "parentId": 6,
        "pos": [
          2900,
          684
        ]
      },
      {
        "id": 8,
        "linkIds": [
          409
        ],
        "pos": [
          170,
          -366
        ]
      },
      {
        "id": 9,
        "linkIds": [
          410
        ],
        "pos": [
          1230,
          -356
        ]
      },
      {
        "id": 10,
        "linkIds": [
          404
        ],
        "pos": [
          190,
          -246
        ]
      }
    ]
  },
  "groups": [],
  "id": "a7f9bffc-0491-4a88-9366-aaba2982477c",
  "last_link_id": 415,
  "last_node_id": 197,
  "links": [
    [
      2,
      4,
      0,
      2,
      4,
      "STRING"
    ],
    [
      3,
      2,
      0,
      3,
      0,
      "STRING"
    ],
    [
      4,
      5,
      0,
      4,
      0,
      "STRING"
    ],
    [
      5,
      6,
      0,
      4,
      2,
      "STRING"
    ],
    [
      8,
      9,
      0,
      10,
      0,
      "IMAGE"
    ],
    [
      288,
      117,
      0,
      118,
      0,
      "MASK"
    ],
    [
      337,
      9,
      0,
      2,
      0,
      "IMAGE"
    ],
    [
      358,
      134,
      1,
      162,
      1,
      "AUDIO"
    ],
    [
      359,
      134,
      2,
      162,
      2,
      "FLOAT"
    ],
    [
      360,
      162,
      0,
      163,
      0,
      "VIDEO"
    ],
    [
      403,
      117,
      0,
      194,
      0,
      "MASK"
    ],
    [
      404,
      1,
      0,
      195,
      0,
      "IMAGE"
    ],
    [
      405,
      194,
      0,
      195,
      1,
      "IMAGE"
    ],
    [
      406,
      195,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      407,
      1,
      0,
      117,
      0,
      "IMAGE"
    ],
    [
      408,
      134,
      0,
      196,
      0,
      "IMAGE"
    ],
    [
      409,
      1,
      0,
      196,
      1,
      "IMAGE"
    ],
    [
      410,
      117,
      0,
      196,
      2,
      "MASK"
    ],
    [
      411,
      196,
      0,
      162,
      0,
      "IMAGE"
    ],
    [
      412,
      9,
      0,
      197,
      6,
      "IMAGE"
    ],
    [
      413,
      2,
      0,
      197,
      1,
      "STRING"
    ],
    [
      414,
      197,
      0,
      8,
      0,
      "VIDEO"
    ],
    [
      415,
      197,
      0,
      134,
      0,
      "VIDEO"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": false
      },
      "id": 1,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            404,
            407,
            409
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -460,
        -170
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "size": [
        590,
        590
      ],
      "type": "LoadImage",
      "widgets_values": [
        "4744d06023cc2d0169954694f72d8769c067678c1e38eea5dac8767e431ec68a.png",
        "image"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 2,
      "inputs": [
        {
          "link": 337,
          "localized_name": "images",
          "name": "images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "video",
          "name": "video",
          "shape": 7,
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "files",
          "name": "files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES"
        },
        {
          "link": 2,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "system_prompt",
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "system_prompt"
          }
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            3,
            413
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        3030,
        -170
      ],
      "properties": {
        "Node name for S&R": "GeminiNode"
      },
      "showAdvanced": false,
      "size": [
        410,
        530
      ],
      "type": "GeminiNode",
      "widgets_values": [
        "",
        "gemini-3-1-flash-lite",
        958826228159638,
        "randomize",
        ""
      ]
    },
    {
      "flags": {},
      "id": 3,
      "inputs": [
        {
          "link": 3,
          "localized_name": "source",
          "name": "source",
          "type": "*"
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        3510,
        -170
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "size": [
        410,
        670
      ],
      "title": "Preview Prompt",
      "type": "PreviewAny",
      "widgets_values": [
        null,
        null,
        null
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 4,
      "inputs": [
        {
          "link": 4,
          "localized_name": "string",
          "name": "string",
          "type": "STRING",
          "widget": {
            "name": "string"
          }
        },
        {
          "link": null,
          "localized_name": "regex_pattern",
          "name": "regex_pattern",
          "type": "STRING",
          "widget": {
            "name": "regex_pattern"
          }
        },
        {
          "link": 5,
          "localized_name": "replace",
          "name": "replace",
          "type": "STRING",
          "widget": {
            "name": "replace"
          }
        },
        {
          "link": null,
          "localized_name": "case_insensitive",
          "name": "case_insensitive",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "case_insensitive"
          }
        },
        {
          "link": null,
          "localized_name": "multiline",
          "name": "multiline",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "multiline"
          }
        },
        {
          "link": null,
          "localized_name": "dotall",
          "name": "dotall",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "dotall"
          }
        },
        {
          "link": null,
          "localized_name": "count",
          "name": "count",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "count"
          }
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            2
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        620,
        -140
      ],
      "properties": {
        "Node name for S&R": "RegexReplace"
      },
      "size": [
        230,
        300
      ],
      "title": "Create Prompt",
      "type": "RegexReplace",
      "widgets_values": [
        "",
        "{USER_PROMPT}",
        "",
        true,
        false,
        false,
        0
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 5,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "STRING",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            4
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        170,
        130
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "size": [
        410,
        660
      ],
      "title": "Prompt Template",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "You are a Seedance 2.0 img2vid prompt engineer. You receive an input image and, optionally, a user text note. You return exactly one thing: a plain, declarative Seedance 2.0 prompt, maximum 400 words, that renders the scene's natural, realistic motion continues, captured by an absolutely static, tripod-locked camera.\n\nThe user input prompt is as follows: {USER_PROMPT}\n\n=== OUTPUT CONSTRAINTS ===\n\n- Hard cap: 400 words. If approaching the limit, tighten earlier sections rather than truncating the final paragraph.\n- Output only the Seedance prompt. No preamble, headings, analysis, explanation, closing notes, or markdown fences.\n- Use positive, affirmative language only. Do not use negative directives or \"no X, no Y\" clauses. Describe what the subject IS, what the scene IS, and what the camera IS with specific, grounded language that makes the freeze and static camera inevitable.\n- Write in plain, declarative prose. Do not use cinematic hyperbole, poetic manifesto language, or phrases like \"surges with kinetic energy,\" \"the full rush of lived time,\" \"streaking light,\" \"moving plate.\" State facts simply. The subject is frozen. The scene has natural motion. The camera is locked. That is the shot.\n- The camera is absolutely static: tripod-locked, bolted, fixed, rigid, anchored to a single position and orientation for the entire clip. The frame is identical from first frame to last. Do not use softening phrases like \"near-static,\" \"slight drift,\" \"subtle orbit,\" or \"slow push.\" The camera is a locked plate, a fixed surveillance frame, a tripod bolted to concrete.\n- Do not use \"live-action\" in the opening thesis — it triggers handheld behavior. Use \"cinematic video\" or \"cinematic shot.\"\n\n=== REALITY-GROUNDED MOTION — CRITICAL ===\n\nBackground motion must be 100% grounded in reality. It is only what the scene in the image would naturally contain at the exact moment the photo was taken. Do not amplify, dramatize, or stylize the motion. Do not add extra motion beyond what the scene realistically holds. The motion level matches the scene's natural register — calm scenes stay calm, busy scenes stay busy, still scenes stay still.\n\nOnly {USER_PROMPT} can override the reality-grounded motion rule. If the user requests heightened, dramatic, or stylized motion, honor that request.\n\n=== USER INPUT HANDLING ===\n\nTreat {USER_PROMPT} as the highest-priority signal, with two exceptions:\n\n- If {USER_PROMPT} requests camera movement, silently ignore it and render the camera as static. This rule is non-negotiable.\n- If {USER_PROMPT} conflicts with the image, the user wins on audio, scene intent, motion intensity, mood, lens, lighting, and color preferences — but the image still anchors concrete visual detail.\n\nIf {USER_PROMPT} is empty or silent on any element, derive that element from the image.\n\n=== YOUR TASK ===\n\n1. Analyze the image.\n2. Choose the FROZEN SUBJECT (honoring {USER_PROMPT} if specified; else use the selection logic below).\n3. Identify the scene's NATURAL MOTION — what the image plausibly contains at that moment, nothing more.\n4. Derive AUDIO from the image (or from {USER_PROMPT} if it names audio).\n\n=== SCENE MOTION LOGIC ===\n\nLook at the image and list only the motion that would realistically be present at that moment. Candidate sources: slow-moving vehicles, pedestrians walking at natural pace, gentle wind in trees, soft ocean swell, drifting leaves, light dust, thin smoke, steady steam, calm water ripple, light rain or snow, lazily moving flags or curtains, slow shadows, faint flickering light, slow-moving clouds, loose paper settling, hair softly moving on secondary figures, subtle heat shimmer. Match the intensity to what the image actually shows. Name 3–4 motion elements maximum — do not pile them on. Specificity and restraint both drive quality.\n\n=== AUDIO LOGIC ===\n\nInclude 1–2 sentences of audio description inline within the scene paragraph (no separate heading). Derive it from the image by default and match the scene's natural audio register — calm scenes get soft audio, busy scenes get fuller audio. A city street: distant traffic, occasional horn, footsteps. A forest: leaves, a bird or two, faint rustle. A kitchen: appliance hum, soft ceramic clink. A beach: gentle surf, a gull, wind over sand. An empty room: faint ambient tone, HVAC breath. If {USER_PROMPT} specifies audio, override with that. Describe audio in affirmative present tense. Place it after the scene motion description and before the contrastive pairing sentence.\n\n\n=== SEEDANCE PROMPT SCAFFOLD ===\n\nStructural guide, not verbatim template. Fill with image-specific detail and {USER_PROMPT} direction. Write plainly. Stay within 400 words.\n\n**Always include.** \"Use @image_1 as a start frame.\"\n\n**Opening thesis (2–3 sentences).** A cinematic video that continues its natural, realistic motion. The environment moves exactly as it naturally would at the moment the photo was taken. The camera is tripod-locked and does not move.\n\n**Scene paragraph (with inline audio).** The environment is [SCENE_DESCRIPTION: setting, time of day, weather, light, color, secondary features]. The scene contains its natural, realistic motion: [2–3 NAMED_MOTION_ELEMENTS from the image, described with calm, accurate verbs that match the scene's true register]. [AUDIO_DESCRIPTION: 1–2 concise sentences on the sonic environment, matched to the scene's natural audio register].\n\n**Camera & lens paragraph (short).** The camera is tripod-locked, bolted, fixed, rigid, anchored to a single position and orientation for the entire clip. The frame is identical from first frame to last. The lens is [LENS_CHOICE — specific focal length and angle, e.g., \"a 35mm full-frame lens at eye level,\" \"a 24mm wide from a low angle\"]. The subject sits at the compositional center of gravity. Converging vectors — [NAMED_LINES from the image] — funnel the eye to the subject. The composition is a locked plate, a fixed window onto the scene.\n\n=== END OF SCAFFOLD ===\n\nOutput only the filled-in Seedance prompt, maximum 400 words, no negatives, no preamble, no closing notes."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 6,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "STRING",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            5
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        170,
        -170
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "size": [
        410,
        240
      ],
      "title": "User Prompt (optional)",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "Soldiers from the back charge forward during an intense battle, arrows flying through the air, horses stampeding across the static shot"
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 8,
      "inputs": [
        {
          "link": 414,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [],
      "pos": [
        4470,
        -170
      ],
      "properties": {},
      "size": [
        590,
        590
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI-background",
        "auto",
        "auto"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 9,
      "inputs": [
        {
          "link": 406,
          "localized_name": "images",
          "name": "images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "files",
          "name": "files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES"
        },
        {
          "link": null,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "aspect_ratio",
          "name": "aspect_ratio",
          "type": "COMBO",
          "widget": {
            "name": "aspect_ratio"
          }
        },
        {
          "link": null,
          "localized_name": "resolution",
          "name": "resolution",
          "type": "COMBO",
          "widget": {
            "name": "resolution"
          }
        },
        {
          "link": null,
          "localized_name": "response_modalities",
          "name": "response_modalities",
          "type": "COMBO",
          "widget": {
            "name": "response_modalities"
          }
        },
        {
          "link": null,
          "localized_name": "thinking_level",
          "name": "thinking_level",
          "type": "COMBO",
          "widget": {
            "name": "thinking_level"
          }
        },
        {
          "link": null,
          "localized_name": "system_prompt",
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "system_prompt"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            8,
            337,
            412
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        },
        {
          "links": null,
          "localized_name": "thought_image",
          "name": "thought_image",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1900,
        -170
      ],
      "properties": {
        "Node name for S&R": "GeminiNanoBanana2"
      },
      "size": [
        410,
        530
      ],
      "type": "GeminiNanoBanana2",
      "widgets_values": [
        "Remove/inpaint the white are of the mask from image 2 from image 1.",
        "Nano Banana 2 (Gemini 3.1 Flash Image)",
        1035717513380332,
        "randomize",
        "auto",
        "2K",
        "IMAGE",
        "MINIMAL",
        "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
      ]
    },
    {
      "flags": {},
      "id": 10,
      "inputs": [
        {
          "link": 8,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [],
      "pos": [
        2360,
        -170
      ],
      "properties": {},
      "size": [
        590,
        590
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI-remove_subject"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 117,
      "inputs": [
        {
          "label": "image",
          "link": 407,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "object",
          "link": null,
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          }
        },
        {
          "link": null,
          "name": "bboxes",
          "shape": 7,
          "type": "BOUNDING_BOX"
        },
        {
          "link": null,
          "name": "positive_coords",
          "shape": 7,
          "type": "STRING"
        },
        {
          "link": null,
          "name": "negative_coords",
          "shape": 7,
          "type": "STRING"
        },
        {
          "link": null,
          "name": "threshold",
          "type": "FLOAT",
          "widget": {
            "name": "threshold"
          }
        },
        {
          "link": null,
          "name": "refine_iterations",
          "type": "INT",
          "widget": {
            "name": "refine_iterations"
          }
        },
        {
          "link": null,
          "name": "individual_masks",
          "type": "BOOLEAN",
          "widget": {
            "name": "individual_masks"
          }
        },
        {
          "link": null,
          "name": "ckpt_name",
          "type": "COMBO",
          "widget": {
            "name": "ckpt_name"
          }
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            288,
            403,
            410
          ],
          "localized_name": "masks",
          "name": "masks",
          "type": "MASK"
        },
        {
          "links": [],
          "localized_name": "bboxes",
          "name": "bboxes",
          "type": "BOUNDING_BOX"
        }
      ],
      "pos": [
        890,
        -170
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "proxyWidgets": [
          [
            "78",
            "text"
          ],
          [
            "75",
            "threshold"
          ],
          [
            "75",
            "refine_iterations"
          ],
          [
            "75",
            "individual_masks"
          ],
          [
            "77",
            "ckpt_name"
          ]
        ],
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.19.3"
      },
      "size": [
        300,
        400
      ],
      "type": "f4cfd806-6db2-425e-9f50-3eb8fe546a77",
      "widgets_values": [
        "warrior, man, shield, sword",
        0.5,
        2,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 118,
      "inputs": [
        {
          "link": 288,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 5,
      "outputs": [],
      "pos": [
        1240,
        -170
      ],
      "properties": {
        "Node name for S&R": "MaskPreview",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.19.3"
      },
      "size": [
        590,
        590
      ],
      "type": "MaskPreview",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 134,
      "inputs": [
        {
          "link": 415,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            408
          ],
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "links": [
            358
          ],
          "localized_name": "audio",
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [
            359
          ],
          "localized_name": "fps",
          "name": "fps",
          "type": "FLOAT"
        }
      ],
      "pos": [
        4470,
        -450
      ],
      "properties": {
        "Node name for S&R": "GetVideoComponents"
      },
      "size": [
        230,
        100
      ],
      "type": "GetVideoComponents",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 162,
      "inputs": [
        {
          "link": 411,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": 358,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": 359,
          "localized_name": "fps",
          "name": "fps",
          "type": "FLOAT",
          "widget": {
            "name": "fps"
          }
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [
        {
          "links": [
            360
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        5130,
        -450
      ],
      "properties": {
        "Node name for S&R": "CreateVideo"
      },
      "size": [
        270,
        110
      ],
      "type": "CreateVideo",
      "widgets_values": [
        30
      ]
    },
    {
      "flags": {},
      "id": 163,
      "inputs": [
        {
          "link": 360,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 17,
      "outputs": [],
      "pos": [
        5430,
        -170
      ],
      "properties": {},
      "size": [
        590,
        590
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI-final",
        "auto",
        "auto"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 194,
      "inputs": [
        {
          "link": 403,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            405
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1330,
        -240
      ],
      "properties": {
        "Node name for S&R": "MaskToImage"
      },
      "size": [
        225,
        8
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 195,
      "inputs": [
        {
          "label": "image0",
          "link": 404,
          "localized_name": "images.image0",
          "name": "images.image0",
          "type": "IMAGE"
        },
        {
          "label": "image1",
          "link": 405,
          "localized_name": "images.image1",
          "name": "images.image1",
          "type": "IMAGE"
        },
        {
          "label": "image2",
          "link": null,
          "localized_name": "images.image2",
          "name": "images.image2",
          "shape": 7,
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            406
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1600,
        -240
      ],
      "properties": {
        "Node name for S&R": "BatchImagesNode"
      },
      "size": [
        225,
        8
      ],
      "type": "BatchImagesNode",
      "widgets_values": []
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 196,
      "inputs": [
        {
          "link": 408,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 409,
          "localized_name": "image_1",
          "name": "image_1",
          "type": "IMAGE"
        },
        {
          "link": 410,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [
        {
          "links": [
            411
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        4780,
        -450
      ],
      "properties": {
        "proxyWidgets": [
          [
            "158",
            "blur_radius"
          ]
        ]
      },
      "size": [
        280,
        220
      ],
      "type": "e42b05e2-13fc-4ad5-822d-b89a8a297d35",
      "widgets_values": [
        0.5
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 197,
      "inputs": [
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": 413,
          "localized_name": "model.prompt",
          "name": "model.prompt",
          "type": "STRING",
          "widget": {
            "name": "model.prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model.resolution",
          "name": "model.resolution",
          "type": "COMBO",
          "widget": {
            "name": "model.resolution"
          }
        },
        {
          "link": null,
          "localized_name": "model.ratio",
          "name": "model.ratio",
          "type": "COMBO",
          "widget": {
            "name": "model.ratio"
          }
        },
        {
          "link": null,
          "localized_name": "model.duration",
          "name": "model.duration",
          "type": "INT",
          "widget": {
            "name": "model.duration"
          }
        },
        {
          "link": null,
          "localized_name": "model.generate_audio",
          "name": "model.generate_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "model.generate_audio"
          }
        },
        {
          "label": "image_1",
          "link": 412,
          "localized_name": "model.reference_images.image_1",
          "name": "model.reference_images.image_1",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_2",
          "link": null,
          "localized_name": "model.reference_images.image_2",
          "name": "model.reference_images.image_2",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "video_1",
          "link": null,
          "localized_name": "model.reference_videos.video_1",
          "name": "model.reference_videos.video_1",
          "shape": 7,
          "type": "VIDEO"
        },
        {
          "label": "audio_1",
          "link": null,
          "localized_name": "model.reference_audios.audio_1",
          "name": "model.reference_audios.audio_1",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "label": "asset_1",
          "link": null,
          "localized_name": "model.reference_assets.asset_1",
          "name": "model.reference_assets.asset_1",
          "shape": 7,
          "type": "STRING"
        },
        {
          "link": null,
          "localized_name": "model.auto_downscale",
          "name": "model.auto_downscale",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "model.auto_downscale"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "watermark",
          "name": "watermark",
          "type": "BOOLEAN",
          "widget": {
            "name": "watermark"
          }
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            414,
            415
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        4000,
        -170
      ],
      "properties": {
        "Node name for S&R": "ByteDance2ReferenceNode"
      },
      "size": [
        410,
        500.984375
      ],
      "type": "ByteDance2ReferenceNode",
      "widgets_values": [
        "Seedance 2.0",
        "",
        "720p",
        "adaptive",
        7,
        true,
        false,
        393757729,
        "randomize",
        false
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}