{
  "id": "b826855b-4d04-481d-9cb3-71ee26da2fe9",
  "revision": 0,
  "last_node_id": 685,
  "last_link_id": 1230,
  "nodes": [
    {
      "id": 596,
      "type": "5ce0001f-2a63-4be9-9f76-b42a80d579a2",
      "pos": [
        -2528.0285936786518,
        3042.7592203785193
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 44,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1130
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1131
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1136
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "clothing, white neck piece, white cuff:2",
        0.40000000000000013,
        2,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "clothing, white neck piece, white cuff:2",
        "threshold": 0.40000000000000013,
        "refine_iterations": 2,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 598,
      "type": "PreviewImage",
      "pos": [
        -1295.8844810861888,
        2764.6814372966123
      ],
      "size": [
        384.4387656885524,
        291.00164713206595
      ],
      "flags": {},
      "order": 62,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1132
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 599,
      "type": "ImageCompositeMasked",
      "pos": [
        -1737.5820071926732,
        2767.9805418892324
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 54,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1133
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 1134
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1135
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1132
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 601,
      "type": "GrowMask",
      "pos": [
        -2167.71095834315,
        3041.6101609993725
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 49,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 1136
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            1135,
            1141
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "GrowMask"
      },
      "widgets_values": [
        0,
        true
      ],
      "widgets_values_named": {
        "expand": 0,
        "tapered_corners": true
      }
    },
    {
      "id": 602,
      "type": "EmptyImage",
      "pos": [
        -2158.7791502570735,
        2769.2692448596717
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1133
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        512,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 512,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 603,
      "type": "ResizeAndPadImage",
      "pos": [
        -2876.9339242333194,
        2805.7587766842703
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 38,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1137
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1130,
            1134,
            1140
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeAndPadImage"
      },
      "widgets_values": [
        512,
        1024,
        "white",
        "area"
      ],
      "widgets_values_named": {
        "target_width": 512,
        "target_height": 1024,
        "padding_color": "white",
        "interpolation": "area"
      }
    },
    {
      "id": 604,
      "type": "LoadImage",
      "pos": [
        -3209.173470389985,
        2741.103960345026
      ],
      "size": [
        282.83333587646484,
        314.0000000000002
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1137
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "image": "clipspace-painted-masked-1789957949245.png [input]"
      },
      "widgets_values": [
        "ComfyUI_temp_chprp_00016_.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "ComfyUI_temp_chprp_00016_.png",
        "upload": "image"
      }
    },
    {
      "id": 606,
      "type": "ConditioningConcat",
      "pos": [
        -296.62441262176407,
        2846.3099085090475
      ],
      "size": [
        236.03333282470703,
        46
      ],
      "flags": {},
      "order": 63,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning_to",
          "type": "CONDITIONING",
          "link": 1143
        },
        {
          "name": "conditioning_from",
          "type": "CONDITIONING",
          "link": 1144
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1148,
            1150
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ConditioningConcat"
      }
    },
    {
      "id": 609,
      "type": "ConditioningZeroOut",
      "pos": [
        -74.87408289144425,
        2968.868540914005
      ],
      "size": [
        204.0999984741211,
        26
      ],
      "flags": {
        "collapsed": true
      },
      "order": 68,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 1148
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1151
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ConditioningZeroOut"
      }
    },
    {
      "id": 610,
      "type": "EmptyLatentImage",
      "pos": [
        -141.77756265483885,
        3059.4443671972
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            1152
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyLatentImage"
      },
      "widgets_values": [
        512,
        1024,
        1
      ],
      "widgets_values_named": {
        "width": 512,
        "height": 1024,
        "batch_size": 1
      }
    },
    {
      "id": 611,
      "type": "KSampler",
      "pos": [
        175.7119140332147,
        2894.624544552656
      ],
      "size": [
        307.3095256226313,
        272.73814056578294
      ],
      "flags": {},
      "order": 71,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1149
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1150
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1151
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 1152
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1146
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        279508066997584,
        "randomize",
        8,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 279508066997584,
        "control_after_generate": "randomize",
        "steps": 8,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 614,
      "type": "d63c72f5-b6c9-4fd6-97f2-4691970b38e1",
      "pos": [
        -2496.7085546346193,
        1927.3361410001678
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 45,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1153
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1154
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1160
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "clothing, white neck piece, white cuff:2",
        0.40000000000000013,
        2,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "clothing, white neck piece, white cuff:2",
        "threshold": 0.40000000000000013,
        "refine_iterations": 2,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 615,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -3184.1812294155347,
        2065.0174860160027
      ],
      "size": [
        284.56533046488994,
        105.50522497263876
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1154,
            1170
          ]
        }
      ],
      "title": "SAM Masking prompt",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "dress,mannequin:0"
      ],
      "widgets_values_named": {
        "value": "dress,mannequin:0"
      }
    },
    {
      "id": 622,
      "type": "GrowMask",
      "pos": [
        -2136.390919299114,
        1926.1870816210212
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 50,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 1160
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            1158,
            1181
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "GrowMask"
      },
      "widgets_values": [
        0,
        true
      ],
      "widgets_values_named": {
        "expand": 0,
        "tapered_corners": true
      }
    },
    {
      "id": 623,
      "type": "LoadImage",
      "pos": [
        -3183.6351151841786,
        1678.5508954332377
      ],
      "size": [
        282.83333587646484,
        314.0000000000002
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1167
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_temp_qqvkn_00008_.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "ComfyUI_temp_qqvkn_00008_.png",
        "upload": "image"
      }
    },
    {
      "id": 624,
      "type": "EmptyImage",
      "pos": [
        516.6018597379453,
        1908.4835650332363
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 5,
      "mode": 2,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1187
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        1024,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 627,
      "type": "ResizeAndPadImage",
      "pos": [
        3140.725938318548,
        2199.273294034502
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 40,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1165
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1172,
            1177
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeAndPadImage"
      },
      "widgets_values": [
        256,
        512,
        "white",
        "area"
      ],
      "widgets_values_named": {
        "target_width": 256,
        "target_height": 512,
        "padding_color": "white",
        "interpolation": "area"
      }
    },
    {
      "id": 628,
      "type": "PrimitiveStringMultiline",
      "pos": [
        3132.9234897014235,
        2392.3817381292306
      ],
      "size": [
        284.56533046488994,
        105.50522497263876
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1173
          ]
        }
      ],
      "title": "SAM Masking prompt",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "person"
      ],
      "widgets_values_named": {
        "value": "person"
      }
    },
    {
      "id": 629,
      "type": "LoadImage",
      "pos": [
        2786.9757094783504,
        2211.6377790114557
      ],
      "size": [
        307.86150660568956,
        532.1026306403887
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1165
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_temp_prkbe_00001_.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "ComfyUI_temp_prkbe_00001_.png",
        "upload": "image"
      }
    },
    {
      "id": 630,
      "type": "PreviewImage",
      "pos": [
        -1272.6401984641125,
        1593.163460547717
      ],
      "size": [
        384.4387656885524,
        291.00164713206595
      ],
      "flags": {},
      "order": 65,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1166
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 631,
      "type": "ResizeAndPadImage",
      "pos": [
        -2845.613885189296,
        1690.3356973059167
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 39,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1167
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1153,
            1157,
            1180
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeAndPadImage"
      },
      "widgets_values": [
        1024,
        1024,
        "white",
        "area"
      ],
      "widgets_values_named": {
        "target_width": 1024,
        "target_height": 1024,
        "padding_color": "white",
        "interpolation": "area"
      }
    },
    {
      "id": 633,
      "type": "01ed6ae9-ebd6-4125-a6ba-1126c414e38d",
      "pos": [
        502.3436576571999,
        1594.326810169816
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 76,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1169
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1170
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1189
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "clothing, white neck piece, white cuff:2",
        0.40000000000000013,
        5,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "clothing, white neck piece, white cuff:2",
        "threshold": 0.40000000000000013,
        "refine_iterations": 5,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 635,
      "type": "EmptyImage",
      "pos": [
        3491.081426678618,
        1865.9179515332705
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1198
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        1024,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 636,
      "type": "EmptyImage",
      "pos": [
        3512.4519057227294,
        2576.495422468838
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1176
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        1024,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 637,
      "type": "17a8f57a-daef-448f-be44-ec8a79bd8bf1",
      "pos": [
        3506.4221969136775,
        2253.8904356626012
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 46,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1172
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1173
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1178,
            1196
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "clothing, white neck piece, white cuff:2",
        0.40000000000000013,
        5,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "clothing, white neck piece, white cuff:2",
        "threshold": 0.40000000000000013,
        "refine_iterations": 5,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 638,
      "type": "PreviewImage",
      "pos": [
        3897.1224023143923,
        1717.9384133549713
      ],
      "size": [
        254.6498231927128,
        269.37015671609265
      ],
      "flags": {},
      "order": 59,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1174
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 639,
      "type": "PreviewImage",
      "pos": [
        3901.003522861042,
        2436.451694233187
      ],
      "size": [
        254.6498231927128,
        269.37015671609265
      ],
      "flags": {},
      "order": 58,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1175
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 640,
      "type": "ImageCompositeMasked",
      "pos": [
        3889.6890577338663,
        2211.2543426784487
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 51,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1176
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 1177
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1178
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1175,
            1195
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 642,
      "type": "693dba9b-170d-4292-b457-4cccd5e110b7",
      "pos": [
        3468.8555136730206,
        1550.2557256338537
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 47,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1182
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1183
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1193,
            1200
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "clothing, white neck piece, white cuff:2",
        0.40000000000000013,
        5,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "clothing, white neck piece, white cuff:2",
        "threshold": 0.40000000000000013,
        "refine_iterations": 5,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 646,
      "type": "ImageCompositeMasked",
      "pos": [
        880.1275248277103,
        1595.9472152120886
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 80,
      "mode": 2,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1187
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 1188
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1189
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1171
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 647,
      "type": "PrimitiveStringMultiline",
      "pos": [
        3074.8224858698,
        1633.4168508258476
      ],
      "size": [
        284.56533046488994,
        105.50522497263876
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1183
          ]
        }
      ],
      "title": "SAM Masking prompt",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "outfit"
      ],
      "widgets_values_named": {
        "value": "outfit"
      }
    },
    {
      "id": 648,
      "type": "LoadImage",
      "pos": [
        2758.187518580545,
        1428.313098440489
      ],
      "size": [
        282.83333587646484,
        314.0000000000002
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1197
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "red lycoris agent.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "red lycoris agent.png",
        "upload": "image"
      }
    },
    {
      "id": 652,
      "type": "EmptyLatentImage",
      "pos": [
        5416.815240881253,
        2402.399058246629
      ],
      "size": [
        320,
        170
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": []
        }
      ],
      "title": "1080p Empty Latent Image (Vertical)",
      "properties": {
        "Node name for S&R": "EmptyLatentImage",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        1080,
        1920,
        1
      ],
      "widgets_values_named": {
        "width": 1080,
        "height": 1920,
        "batch_size": 1
      }
    },
    {
      "id": 653,
      "type": "EmptyLatentImage",
      "pos": [
        5422.699021560227,
        2175.3443146211193
      ],
      "size": [
        320,
        170
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": []
        }
      ],
      "title": "720p Empty Latent Image (Vertical)",
      "properties": {
        "Node name for S&R": "EmptyLatentImage",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        720,
        1280,
        1
      ],
      "widgets_values_named": {
        "width": 720,
        "height": 1280,
        "batch_size": 1
      }
    },
    {
      "id": 654,
      "type": "TextEncodeKrea2",
      "pos": [
        5358.809041318613,
        1759.0244118469634
      ],
      "size": [
        398.55072399556843,
        324
      ],
      "flags": {},
      "order": 60,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 1190
        },
        {
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "link": 1191
        },
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1192
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": 1193
        },
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": 1194
        },
        {
          "name": "image2",
          "type": "IMAGE",
          "link": 1195
        },
        {
          "name": "mask2",
          "type": "MASK",
          "link": 1196
        },
        {
          "name": "image3",
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask3",
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1202,
            1205
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TextEncodeKrea2"
      },
      "widgets_values": [
        "The agent standard issued red uniform for reference.\n\n",
        1,
        1,
        "before prompt",
        true
      ],
      "widgets_values_named": {
        "prompt": "The agent standard issued red uniform for reference.\n\n",
        "vision_megapixels": 1,
        "mask_padding": 1,
        "vision_position": "before prompt",
        "print_prompt": true
      }
    },
    {
      "id": 655,
      "type": "ResizeAndPadImage",
      "pos": [
        3080.312747929717,
        1434.2974305182297
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 41,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1197
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1182,
            1199
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeAndPadImage"
      },
      "widgets_values": [
        256,
        256,
        "white",
        "area"
      ],
      "widgets_values_named": {
        "target_width": 256,
        "target_height": 256,
        "padding_color": "white",
        "interpolation": "area"
      }
    },
    {
      "id": 656,
      "type": "ImageCompositeMasked",
      "pos": [
        3884.432231660153,
        1416.1061793580702
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 52,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1198
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 1199
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1200
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1174,
            1192
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 657,
      "type": "TextEncodeKrea2",
      "pos": [
        5363.938738122706,
        1418.3256411450834
      ],
      "size": [
        400,
        244
      ],
      "flags": {},
      "order": 43,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 1201
        },
        {
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "link": 1223
        },
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": 1222
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1203,
            1209
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TextEncodeKrea2"
      },
      "widgets_values": [
        "",
        1,
        0,
        "before prompt",
        false
      ],
      "widgets_values_named": {
        "prompt": "",
        "vision_megapixels": 1,
        "mask_padding": 0,
        "vision_position": "before prompt",
        "print_prompt": false
      }
    },
    {
      "id": 659,
      "type": "ConditioningZeroOut",
      "pos": [
        5859.611817746583,
        1844.229229609881
      ],
      "size": [
        204.0999984741211,
        26
      ],
      "flags": {},
      "order": 66,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 1202
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1206
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ConditioningZeroOut"
      }
    },
    {
      "id": 660,
      "type": "ConditioningZeroOut",
      "pos": [
        5841.675128817704,
        1512.6055964437521
      ],
      "size": [
        204.0999984741211,
        26
      ],
      "flags": {},
      "order": 48,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 1203
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1210
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ConditioningZeroOut"
      }
    },
    {
      "id": 661,
      "type": "EmptyLatentImage",
      "pos": [
        5794.652128580168,
        2391.0578356128644
      ],
      "size": [
        320,
        170
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": []
        }
      ],
      "title": "1080p Empty Latent Image",
      "properties": {
        "Node name for S&R": "EmptyLatentImage",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        1920,
        1080,
        1
      ],
      "widgets_values_named": {
        "width": 1920,
        "height": 1080,
        "batch_size": 1
      }
    },
    {
      "id": 662,
      "type": "EmptyLatentImage",
      "pos": [
        5790.194888478796,
        2175.3169572565776
      ],
      "size": [
        320,
        170
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1211
          ]
        }
      ],
      "title": "720p Empty Latent Image",
      "properties": {
        "Node name for S&R": "EmptyLatentImage",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        1280,
        720,
        1
      ],
      "widgets_values_named": {
        "width": 1280,
        "height": 720,
        "batch_size": 1
      }
    },
    {
      "id": 663,
      "type": "CLIPLoader",
      "pos": [
        -3808.743559459736,
        1183.1201528599095
      ],
      "size": [
        450,
        170
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            1145,
            1155,
            1190,
            1201,
            1220
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.25.0",
        "models": [
          {
            "name": "qwen3vl_4b_fp8_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors",
            "directory": "text_encoders"
          }
        ]
      },
      "widgets_values": [
        "qwen3_vl_4b_nvfp4_full.safetensors",
        "krea2",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "qwen3_vl_4b_nvfp4_full.safetensors",
        "type": "krea2",
        "device": "default"
      }
    },
    {
      "id": 667,
      "type": "VAELoader",
      "pos": [
        -3645.023174991455,
        1070.7032464323754
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            1147,
            1186,
            1214,
            1216
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "qwen_image_vae.safetensors"
      }
    },
    {
      "id": 670,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -3643.9339855996654,
        922.3434206321141
      ],
      "size": [
        270,
        98
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1149,
            1161,
            1204,
            1208
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": []
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "krea2_ultra_v15_nvfp4.safetensors"
      ],
      "widgets_values_named": {
        "ckpt_name": "krea2_ultra_v15_nvfp4.safetensors"
      }
    },
    {
      "id": 645,
      "type": "VAEDecode",
      "pos": [
        19.95272878654869,
        1658.3315445973863
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 72,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 1185
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 1186
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1168,
            1169,
            1188
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 632,
      "type": "PreviewImage",
      "pos": [
        205.6462986331157,
        1657.8715759458003
      ],
      "size": [
        227.82801614326502,
        266
      ],
      "flags": {},
      "order": 75,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1168
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 626,
      "type": "EmptyLatentImage",
      "pos": [
        -730.3542760299454,
        1789.5522461248356
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            1164
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyLatentImage"
      },
      "widgets_values": [
        1024,
        1024,
        1
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1
      }
    },
    {
      "id": 616,
      "type": "TextEncodeKrea2",
      "pos": [
        -761.2423260078277,
        1977.8286498126126
      ],
      "size": [
        400,
        284
      ],
      "flags": {},
      "order": 56,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 1155
        },
        {
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "link": 1219
        },
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1157
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": 1158
        },
        {
          "name": "image2",
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask2",
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1162,
            1184
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TextEncodeKrea2"
      },
      "widgets_values": [
        "dress",
        1,
        0,
        "before prompt",
        false
      ],
      "widgets_values_named": {
        "prompt": "dress",
        "vision_megapixels": 1,
        "mask_padding": 0,
        "vision_position": "before prompt",
        "print_prompt": false
      }
    },
    {
      "id": 625,
      "type": "KSampler",
      "pos": [
        -315.5095434553164,
        1642.3024869444127
      ],
      "size": [
        307.3095256226313,
        272.73814056578294
      ],
      "flags": {},
      "order": 69,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1161
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1162
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1163
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 1164
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1185
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        527236095062334,
        "randomize",
        8,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 527236095062334,
        "control_after_generate": "randomize",
        "steps": 8,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 644,
      "type": "ConditioningZeroOut",
      "pos": [
        -582.9844489746032,
        1738.0958277571067
      ],
      "size": [
        204.0999984741211,
        26
      ],
      "flags": {
        "collapsed": true
      },
      "order": 64,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 1184
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1163
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ConditioningZeroOut"
      }
    },
    {
      "id": 641,
      "type": "ImageCompositeMasked",
      "pos": [
        -1614.4920088081456,
        1594.8734880682864
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 57,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1179
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 1180
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1181
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1166
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 643,
      "type": "EmptyImage",
      "pos": [
        -2050.110145483195,
        1593.540192200426
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1179
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        1024,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 618,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -1274.3514412983902,
        2110.499112552519
      ],
      "size": [
        405.7683974442584,
        99.05304472547687
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1219
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Describe the image by detailing the color, shape, proportions, texture. Do not include spatial relationship"
      ],
      "widgets_values_named": {
        "value": "Describe the image by detailing the color, shape, proportions, texture. Do not include spatial relationship"
      }
    },
    {
      "id": 612,
      "type": "Krea2SystemPrompt",
      "pos": [
        -1256.9718022069133,
        2314.047805062472
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "system_prompt",
          "type": "STRING",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "Krea2SystemPrompt"
      },
      "widgets_values": [
        "Describe the key features of the reference image (color, shape, size, texture, objects, background), then explain how the user's instruction should combine with or alter it, and generate a new image meeting the instruction while staying consistent with the reference where appropriate:"
      ],
      "widgets_values_named": {
        "text": "Describe the key features of the reference image (color, shape, size, texture, objects, background), then explain how the user's instruction should combine with or alter it, and generate a new image meeting the instruction while staying consistent with the reference where appropriate:"
      }
    },
    {
      "id": 607,
      "type": "CLIPTextEncode",
      "pos": [
        -681.8294611598886,
        2827.0146455201934
      ],
      "size": [
        291.0984469542856,
        146.60997955852326
      ],
      "flags": {},
      "order": 42,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 1145
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1143
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "Remake in 3d anime game style like it was rendered in game."
      ],
      "widgets_values_named": {
        "text": "Remake in 3d anime game style like it was rendered in game."
      }
    },
    {
      "id": 605,
      "type": "TextEncodeKrea2",
      "pos": [
        -755.558324176752,
        3148.881681367275
      ],
      "size": [
        400,
        284
      ],
      "flags": {},
      "order": 55,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 1220
        },
        {
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "link": 1139
        },
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1140
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": 1141
        },
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": 1221
        },
        {
          "name": "image2",
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask2",
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1144
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TextEncodeKrea2"
      },
      "widgets_values": [
        "dress",
        1,
        0,
        "before prompt",
        false
      ],
      "widgets_values_named": {
        "prompt": "dress",
        "vision_megapixels": 1,
        "mask_padding": 0,
        "vision_position": "before prompt",
        "print_prompt": false
      }
    },
    {
      "id": 673,
      "type": "Note",
      "pos": [
        -1582.9774069079117,
        2340.6046542292283
      ],
      "size": [
        292.07593262138266,
        88
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "The custom node package had this prompt later on, not sure if its better than what I had."
      ],
      "widgets_values_named": {
        "text": "The custom node package had this prompt later on, not sure if its better than what I had."
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 674,
      "type": "Note",
      "pos": [
        -861.3934961125558,
        3028.7754721517167
      ],
      "size": [
        292.07593262138266,
        88
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "Found out in order to contextualize, everything should be feed to the CLIP model below. Leaving it like this as a reference, but the above prompt should be added to below"
      ],
      "widgets_values_named": {
        "text": "Found out in order to contextualize, everything should be feed to the CLIP model below. Leaving it like this as a reference, but the above prompt should be added to below"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 600,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -1273.7715026144563,
        3450.421393280577
      ],
      "size": [
        405.7683974442584,
        99.05304472547687
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1139
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Describe the image by detailing the color, shape, proportions, texture. Do not include spatial relationship"
      ],
      "widgets_values_named": {
        "value": "Describe the image by detailing the color, shape, proportions, texture. Do not include spatial relationship"
      }
    },
    {
      "id": 613,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -1252.504398923971,
        3135.020197734342
      ],
      "size": [
        308.8718166139604,
        246.60042806048818
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1221
          ]
        }
      ],
      "title": "Describe character for re-envisioning",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "The character rie_petoriyacowa pose. \n\nShe has small chest, long straight hair that flows behind her shoulder, continuing straight down peeking behind her back and ending at her hip offscreen. Her red hairbow on the back of her head, peeking out\nrie_petoriyacowa wears a plain shiny yellow dress with chest cutout, white neck with red edge, puffy shoulder, long wrinkled sleeves, white cuffs. She also wears socks, high heels.\n\nShe is standing, arms straight, hands down, legs straight."
      ],
      "widgets_values_named": {
        "value": "The character rie_petoriyacowa pose. \n\nShe has small chest, long straight hair that flows behind her shoulder, continuing straight down peeking behind her back and ending at her hip offscreen. Her red hairbow on the back of her head, peeking out\nrie_petoriyacowa wears a plain shiny yellow dress with chest cutout, white neck with red edge, puffy shoulder, long wrinkled sleeves, white cuffs. She also wears socks, high heels.\n\nShe is standing, arms straight, hands down, legs straight."
      }
    },
    {
      "id": 651,
      "type": "PrimitiveStringMultiline",
      "pos": [
        4385.5734750883,
        2253.995436763213
      ],
      "size": [
        822.2669260403222,
        375.76536752443906
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1194
          ]
        }
      ],
      "title": "Rie raid on Lycoris residence",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "In a live action adaptation located at bunk room at night.\n\nFeatures a villian organization meant to be defeated. The organization is composed of mature, adult agents and wear red uniforms (as shown in Picture 1), also wearing black socks in their dorm room. Agents are defeated, unconscious and fainted.\n\n\nTwo agents on the extra wide floor rested on the ground floor in the background. An agent is sprawled out in the far center of the scene. The agent on the right side of scene is laying sideways.\n\nThe 2 beds in the far center are empty.\n\nThere are 2 stacked bed in a row in the left side wall and closed curtains across on the right side. On the bottom bed located left of scene, a agent is facing away from the scene with her knees on the ground floor near the fallen agent nearby. Her waist is bent over with her head resting on the bed. On the top bed above, an agent laying with legs hanging over the open bed frame. \n\n\nThe fainted agent wearing the uniform in Picture 1, body laying flat on ground floor in the foreground, bottom portion of the scene. Her head rests on the floor, facing the camera eyes closed.\n\nThe japanese heroine with yellow outfit in Picture 2. She stands in the  midground, center of scene. She wears a shiny yellow dress, white neck with red edge between the yellow and white colors. Puffy shoulder, long wrinkled sleeves, white cuffs. The heroine is looking down at the fallen agent on the left. With left hand on hip and right hand holding a glock pistol.\n\n\n"
      ],
      "widgets_values_named": {
        "value": "In a live action adaptation located at bunk room at night.\n\nFeatures a villian organization meant to be defeated. The organization is composed of mature, adult agents and wear red uniforms (as shown in Picture 1), also wearing black socks in their dorm room. Agents are defeated, unconscious and fainted.\n\n\nTwo agents on the extra wide floor rested on the ground floor in the background. An agent is sprawled out in the far center of the scene. The agent on the right side of scene is laying sideways.\n\nThe 2 beds in the far center are empty.\n\nThere are 2 stacked bed in a row in the left side wall and closed curtains across on the right side. On the bottom bed located left of scene, a agent is facing away from the scene with her knees on the ground floor near the fallen agent nearby. Her waist is bent over with her head resting on the bed. On the top bed above, an agent laying with legs hanging over the open bed frame. \n\n\nThe fainted agent wearing the uniform in Picture 1, body laying flat on ground floor in the foreground, bottom portion of the scene. Her head rests on the floor, facing the camera eyes closed.\n\nThe japanese heroine with yellow outfit in Picture 2. She stands in the  midground, center of scene. She wears a shiny yellow dress, white neck with red edge between the yellow and white colors. Puffy shoulder, long wrinkled sleeves, white cuffs. The heroine is looking down at the fallen agent on the left. With left hand on hip and right hand holding a glock pistol.\n\n\n"
      }
    },
    {
      "id": 675,
      "type": "PrimitiveStringMultiline",
      "pos": [
        4676.795205931242,
        1441.6788371919195
      ],
      "size": [
        509.9226254272903,
        187.3118230204867
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1222
          ]
        }
      ],
      "title": "Basic prompt",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "In a anime movie, blah blah blah..."
      ],
      "widgets_values_named": {
        "value": "In a anime movie, blah blah blah..."
      }
    },
    {
      "id": 650,
      "type": "Krea2SystemPrompt",
      "pos": [
        4816.74751827495,
        1933.9612714860323
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "system_prompt",
          "type": "STRING",
          "links": [
            1191,
            1223
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "Krea2SystemPrompt"
      },
      "widgets_values": [
        "Describe the key features of the reference images (color, shape, size, texture, objects, spatial relationships). Then explain how the user's instruction should associate, merge, combine with it, and generate a new image meeting the instruction while staying consistent with the reference where appropriate:"
      ],
      "widgets_values_named": {
        "text": "Describe the key features of the reference images (color, shape, size, texture, objects, spatial relationships). Then explain how the user's instruction should associate, merge, combine with it, and generate a new image meeting the instruction while staying consistent with the reference where appropriate:"
      }
    },
    {
      "id": 649,
      "type": "Note",
      "pos": [
        4369.9894284543425,
        1924.4854610404745
      ],
      "size": [
        365.56701855092297,
        219.6633526473379
      ],
      "flags": {},
      "order": 30,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "- If you look at the show prompt in console, you can see that the input images is labeled \"Picture X\", I'm trying to cross-reference it using that label.\n\n- (Unless there's a trick to system prompt) You need to contextualize the image prompts to be somewhere in the scene, especially the uniform prompt. Otherwise it'll decide that its actually an object to pasted into the scene and leads to uniform floating in midair. Resizing the image to be more appropriate helps"
      ],
      "widgets_values_named": {
        "text": "- If you look at the show prompt in console, you can see that the input images is labeled \"Picture X\", I'm trying to cross-reference it using that label.\n\n- (Unless there's a trick to system prompt) You need to contextualize the image prompts to be somewhere in the scene, especially the uniform prompt. Otherwise it'll decide that its actually an object to pasted into the scene and leads to uniform floating in midair. Resizing the image to be more appropriate helps"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 617,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -296.8704038966705,
        2054.5892843003785
      ],
      "size": [
        280.51195862441,
        95.52613575760245
      ],
      "flags": {},
      "order": 31,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": []
        }
      ],
      "title": "Style prompt for re-envisioning",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "anime CGI rendered movie style. shopping catalog item, floating outfit\n"
      ],
      "widgets_values_named": {
        "value": "anime CGI rendered movie style. shopping catalog item, floating outfit\n"
      }
    },
    {
      "id": 682,
      "type": "ImageCompositeMasked",
      "pos": [
        1453.4993813102612,
        2900.7487302556765
      ],
      "size": [
        271.6666625976562,
        146
      ],
      "flags": {},
      "order": 81,
      "mode": 2,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 1224
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 1225
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1226
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        false
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": false
      }
    },
    {
      "id": 597,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -3223.4069059130975,
        3125.7206176203404
      ],
      "size": [
        284.56533046488994,
        105.50522497263876
      ],
      "flags": {},
      "order": 32,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            1131,
            1227
          ]
        }
      ],
      "title": "SAM Masking prompt",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "person"
      ],
      "widgets_values_named": {
        "value": "person"
      }
    },
    {
      "id": 683,
      "type": "PreviewImage",
      "pos": [
        1755.887621578745,
        2761.5592843045893
      ],
      "size": [
        384.4387656885524,
        291.00164713206595
      ],
      "flags": {},
      "order": 83,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1226
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 681,
      "type": "6e6888f0-3661-4f70-8f05-80d58febf43d",
      "pos": [
        1053.507183979353,
        2761.1194163595
      ],
      "size": [
        293.93299825744884,
        244
      ],
      "flags": {},
      "order": 79,
      "mode": 0,
      "inputs": [
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1229
        },
        {
          "label": "object",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 1227
        },
        {
          "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
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            1225
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": []
        }
      ],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "7.7",
          "input_ue_unconnectable": {}
        },
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "previewExposures": []
      },
      "widgets_values": [
        "",
        0.40000000000000013,
        5,
        false,
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "text": "",
        "threshold": 0.40000000000000013,
        "refine_iterations": 5,
        "individual_masks": false,
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 608,
      "type": "VAEDecode",
      "pos": [
        572.21694133012,
        2899.034860772174
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 74,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 1146
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 1147
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1159,
            1229
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 619,
      "type": "PreviewImage",
      "pos": [
        789.2795224005454,
        3047.9676615382587
      ],
      "size": [
        227.82801614326502,
        266
      ],
      "flags": {},
      "order": 78,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1159
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 680,
      "type": "EmptyImage",
      "pos": [
        1074.110623248783,
        3087.966645600292
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 33,
      "mode": 2,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1224
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        1024,
        1024,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 1024,
        "height": 1024,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 634,
      "type": "PreviewImage",
      "pos": [
        1186.4487633536437,
        1598.345706529186
      ],
      "size": [
        384.4387656885524,
        291.00164713206595
      ],
      "flags": {},
      "order": 82,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1171
        },
        {
          "name": "onTrigger",
          "nameLocked": true,
          "type": -1,
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "onExecuted",
          "nameLocked": true,
          "type": -1,
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 684,
      "type": "Note",
      "pos": [
        1241.328435309025,
        1943.9863398633515
      ],
      "size": [
        258.9731972878483,
        120.27975329251012
      ],
      "flags": {},
      "order": 34,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "If your happy, save this image and place to uniform prompt on the right "
      ],
      "widgets_values_named": {
        "text": "If your happy, save this image and place to uniform prompt on the right "
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 685,
      "type": "Note",
      "pos": [
        1833.1385070220513,
        3129.928982685192
      ],
      "size": [
        258.9731972878483,
        120.27975329251012
      ],
      "flags": {},
      "order": 35,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "If your happy, save this image and place to character prompt on the right "
      ],
      "widgets_values_named": {
        "text": "If your happy, save this image and place to character prompt on the right "
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 676,
      "type": "Note",
      "pos": [
        4243.627008050508,
        1464.8636596611327
      ],
      "size": [
        399.5098004721217,
        88
      ],
      "flags": {},
      "order": 36,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "I mainly have this simplier one here as its more casual to use "
      ],
      "widgets_values_named": {
        "text": "I mainly have this simplier one here as its more casual to use "
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 665,
      "type": "KSampler",
      "pos": [
        6215.691344924637,
        1391.0878684650902
      ],
      "size": [
        314.23160255574203,
        279.9486373711104
      ],
      "flags": {
        "collapsed": false
      },
      "order": 53,
      "mode": 2,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1208
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1209
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1210
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 1211
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1213
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        165883927614791,
        "randomize",
        8,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 165883927614791,
        "control_after_generate": "randomize",
        "steps": 8,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 672,
      "type": "PreviewImage",
      "pos": [
        6986.085917786271,
        1234.9490806006318
      ],
      "size": [
        621.5595357264378,
        414.2709282091612
      ],
      "flags": {},
      "order": 67,
      "mode": 2,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1218
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 668,
      "type": "VAEDecode",
      "pos": [
        6687.079063344809,
        1228.643122255876
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 61,
      "mode": 2,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 1213
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 1214
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1218
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 669,
      "type": "VAEDecode",
      "pos": [
        6720.9368768488675,
        1792.066659732937
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 73,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 1215
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 1216
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1217
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 671,
      "type": "PreviewImage",
      "pos": [
        6991.101744069034,
        1794.0463199944936
      ],
      "size": [
        621.5595357264378,
        414.2709282091612
      ],
      "flags": {},
      "order": 77,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 1217
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 664,
      "type": "KSampler",
      "pos": [
        6208.889720301031,
        1741.1214193445298
      ],
      "size": [
        314.23160255574203,
        279.9486373711104
      ],
      "flags": {
        "collapsed": false
      },
      "order": 70,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1204
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1205
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1206
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 1230
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1215
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        857557217422685,
        "randomize",
        8,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 857557217422685,
        "control_after_generate": "randomize",
        "steps": 8,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 658,
      "type": "EmptyLatentImage",
      "pos": [
        5795.162227535138,
        2605.067594776335
      ],
      "size": [
        320,
        170
      ],
      "flags": {},
      "order": 37,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            1230
          ]
        }
      ],
      "title": "1440p Empty Latent Image",
      "properties": {
        "Node name for S&R": "EmptyLatentImage",
        "cnr_id": "comfy-core",
        "ver": "0.25.0"
      },
      "widgets_values": [
        2560,
        1440,
        1
      ],
      "widgets_values_named": {
        "width": 2560,
        "height": 1440,
        "batch_size": 1
      }
    }
  ],
  "links": [
    [
      1130,
      603,
      0,
      596,
      0,
      "IMAGE"
    ],
    [
      1131,
      597,
      0,
      596,
      1,
      "STRING"
    ],
    [
      1132,
      599,
      0,
      598,
      0,
      "IMAGE"
    ],
    [
      1133,
      602,
      0,
      599,
      0,
      "IMAGE"
    ],
    [
      1134,
      603,
      0,
      599,
      1,
      "IMAGE"
    ],
    [
      1135,
      601,
      0,
      599,
      2,
      "MASK"
    ],
    [
      1136,
      596,
      0,
      601,
      0,
      "MASK"
    ],
    [
      1137,
      604,
      0,
      603,
      0,
      "IMAGE"
    ],
    [
      1139,
      600,
      0,
      605,
      1,
      "STRING"
    ],
    [
      1140,
      603,
      0,
      605,
      2,
      "IMAGE"
    ],
    [
      1141,
      601,
      0,
      605,
      3,
      "MASK"
    ],
    [
      1143,
      607,
      0,
      606,
      0,
      "CONDITIONING"
    ],
    [
      1144,
      605,
      0,
      606,
      1,
      "CONDITIONING"
    ],
    [
      1145,
      663,
      0,
      607,
      0,
      "CLIP"
    ],
    [
      1146,
      611,
      0,
      608,
      0,
      "LATENT"
    ],
    [
      1147,
      667,
      0,
      608,
      1,
      "VAE"
    ],
    [
      1148,
      606,
      0,
      609,
      0,
      "CONDITIONING"
    ],
    [
      1149,
      670,
      0,
      611,
      0,
      "MODEL"
    ],
    [
      1150,
      606,
      0,
      611,
      1,
      "CONDITIONING"
    ],
    [
      1151,
      609,
      0,
      611,
      2,
      "CONDITIONING"
    ],
    [
      1152,
      610,
      0,
      611,
      3,
      "LATENT"
    ],
    [
      1153,
      631,
      0,
      614,
      0,
      "IMAGE"
    ],
    [
      1154,
      615,
      0,
      614,
      1,
      "STRING"
    ],
    [
      1155,
      663,
      0,
      616,
      0,
      "CLIP"
    ],
    [
      1157,
      631,
      0,
      616,
      2,
      "IMAGE"
    ],
    [
      1158,
      622,
      0,
      616,
      3,
      "MASK"
    ],
    [
      1159,
      608,
      0,
      619,
      0,
      "IMAGE"
    ],
    [
      1160,
      614,
      0,
      622,
      0,
      "MASK"
    ],
    [
      1161,
      670,
      0,
      625,
      0,
      "MODEL"
    ],
    [
      1162,
      616,
      0,
      625,
      1,
      "CONDITIONING"
    ],
    [
      1163,
      644,
      0,
      625,
      2,
      "CONDITIONING"
    ],
    [
      1164,
      626,
      0,
      625,
      3,
      "LATENT"
    ],
    [
      1165,
      629,
      0,
      627,
      0,
      "IMAGE"
    ],
    [
      1166,
      641,
      0,
      630,
      0,
      "IMAGE"
    ],
    [
      1167,
      623,
      0,
      631,
      0,
      "IMAGE"
    ],
    [
      1168,
      645,
      0,
      632,
      0,
      "IMAGE"
    ],
    [
      1169,
      645,
      0,
      633,
      0,
      "IMAGE"
    ],
    [
      1170,
      615,
      0,
      633,
      1,
      "STRING"
    ],
    [
      1171,
      646,
      0,
      634,
      0,
      "IMAGE"
    ],
    [
      1172,
      627,
      0,
      637,
      0,
      "IMAGE"
    ],
    [
      1173,
      628,
      0,
      637,
      1,
      "STRING"
    ],
    [
      1174,
      656,
      0,
      638,
      0,
      "IMAGE"
    ],
    [
      1175,
      640,
      0,
      639,
      0,
      "IMAGE"
    ],
    [
      1176,
      636,
      0,
      640,
      0,
      "IMAGE"
    ],
    [
      1177,
      627,
      0,
      640,
      1,
      "IMAGE"
    ],
    [
      1178,
      637,
      0,
      640,
      2,
      "MASK"
    ],
    [
      1179,
      643,
      0,
      641,
      0,
      "IMAGE"
    ],
    [
      1180,
      631,
      0,
      641,
      1,
      "IMAGE"
    ],
    [
      1181,
      622,
      0,
      641,
      2,
      "MASK"
    ],
    [
      1182,
      655,
      0,
      642,
      0,
      "IMAGE"
    ],
    [
      1183,
      647,
      0,
      642,
      1,
      "STRING"
    ],
    [
      1184,
      616,
      0,
      644,
      0,
      "CONDITIONING"
    ],
    [
      1185,
      625,
      0,
      645,
      0,
      "LATENT"
    ],
    [
      1186,
      667,
      0,
      645,
      1,
      "VAE"
    ],
    [
      1187,
      624,
      0,
      646,
      0,
      "IMAGE"
    ],
    [
      1188,
      645,
      0,
      646,
      1,
      "IMAGE"
    ],
    [
      1189,
      633,
      0,
      646,
      2,
      "MASK"
    ],
    [
      1190,
      663,
      0,
      654,
      0,
      "CLIP"
    ],
    [
      1191,
      650,
      0,
      654,
      1,
      "STRING"
    ],
    [
      1192,
      656,
      0,
      654,
      2,
      "IMAGE"
    ],
    [
      1193,
      642,
      0,
      654,
      3,
      "MASK"
    ],
    [
      1194,
      651,
      0,
      654,
      4,
      "STRING"
    ],
    [
      1195,
      640,
      0,
      654,
      5,
      "IMAGE"
    ],
    [
      1196,
      637,
      0,
      654,
      6,
      "MASK"
    ],
    [
      1197,
      648,
      0,
      655,
      0,
      "IMAGE"
    ],
    [
      1198,
      635,
      0,
      656,
      0,
      "IMAGE"
    ],
    [
      1199,
      655,
      0,
      656,
      1,
      "IMAGE"
    ],
    [
      1200,
      642,
      0,
      656,
      2,
      "MASK"
    ],
    [
      1201,
      663,
      0,
      657,
      0,
      "CLIP"
    ],
    [
      1202,
      654,
      0,
      659,
      0,
      "CONDITIONING"
    ],
    [
      1203,
      657,
      0,
      660,
      0,
      "CONDITIONING"
    ],
    [
      1204,
      670,
      0,
      664,
      0,
      "MODEL"
    ],
    [
      1205,
      654,
      0,
      664,
      1,
      "CONDITIONING"
    ],
    [
      1206,
      659,
      0,
      664,
      2,
      "CONDITIONING"
    ],
    [
      1208,
      670,
      0,
      665,
      0,
      "MODEL"
    ],
    [
      1209,
      657,
      0,
      665,
      1,
      "CONDITIONING"
    ],
    [
      1210,
      660,
      0,
      665,
      2,
      "CONDITIONING"
    ],
    [
      1211,
      662,
      0,
      665,
      3,
      "LATENT"
    ],
    [
      1213,
      665,
      0,
      668,
      0,
      "LATENT"
    ],
    [
      1214,
      667,
      0,
      668,
      1,
      "VAE"
    ],
    [
      1215,
      664,
      0,
      669,
      0,
      "LATENT"
    ],
    [
      1216,
      667,
      0,
      669,
      1,
      "VAE"
    ],
    [
      1217,
      669,
      0,
      671,
      0,
      "IMAGE"
    ],
    [
      1218,
      668,
      0,
      672,
      0,
      "IMAGE"
    ],
    [
      1219,
      618,
      0,
      616,
      1,
      "STRING"
    ],
    [
      1220,
      663,
      0,
      605,
      0,
      "CLIP"
    ],
    [
      1221,
      613,
      0,
      605,
      4,
      "STRING"
    ],
    [
      1222,
      675,
      0,
      657,
      4,
      "STRING"
    ],
    [
      1223,
      650,
      0,
      657,
      1,
      "STRING"
    ],
    [
      1224,
      680,
      0,
      682,
      0,
      "IMAGE"
    ],
    [
      1225,
      681,
      0,
      682,
      2,
      "MASK"
    ],
    [
      1226,
      682,
      0,
      683,
      0,
      "IMAGE"
    ],
    [
      1227,
      597,
      0,
      681,
      1,
      "STRING"
    ],
    [
      1229,
      608,
      0,
      681,
      0,
      "IMAGE"
    ],
    [
      1230,
      658,
      0,
      664,
      3,
      "LATENT"
    ]
  ],
  "groups": [
    {
      "id": 25,
      "title": "Character pre-processor",
      "bounding": [
        -3245.05060179956,
        2571.9500979163117,
        5402.9304771105035,
        970.3777406219174
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 24,
      "title": "Extract and interpret the character",
      "bounding": [
        -2902.1182586545615,
        2678.3098704624267,
        2034.9185604387285,
        717.4079175905008
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 26,
      "title": "Re-visioning the character",
      "bounding": [
        -816.7017554440698,
        2671.690931103883,
        2969.7341613761664,
        828.3842390556056
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 27,
      "title": "Character image prompt",
      "bounding": [
        2698.6274032606666,
        2130.983971549816,
        1485.3489149310562,
        673.2796771420999
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 30,
      "title": "Outfit pre-processor",
      "bounding": [
        -3253.5339948913165,
        1384.5015387672756,
        5391.428471752692,
        1148.4033807553915
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 28,
      "title": "Re-visioning the uniform",
      "bounding": [
        -786.5318680012693,
        1505.487583268934,
        2420.3392796748003,
        820.6109836836786
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 29,
      "title": "Extract and interpret the outfit",
      "bounding": [
        -3226.294045738395,
        1501.0614300183602,
        2393.852765109563,
        771.152076578647
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 31,
      "title": "Uniform image prompt",
      "bounding": [
        2693.392582580001,
        1218.3802328871134,
        1497.563496519276,
        842.5388791502871
      ],
      "color": "#3f789e",
      "flags": {}
    }
  ],
  "definitions": {
    "subgraphs": [
      {
        "id": "5ce0001f-2a63-4be9-9f76-b42a80d579a2",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 455,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 456,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 457,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 456,
            "origin_slot": 0,
            "target_id": 455,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 457,
            "origin_slot": 0,
            "target_id": 455,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 456,
            "origin_slot": 1,
            "target_id": 457,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 455,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 455,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 455,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 457,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 455,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 455,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 455,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 455,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 455,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 455,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 456,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      },
      {
        "id": "d63c72f5-b6c9-4fd6-97f2-4691970b38e1",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 321,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 322,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 323,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 322,
            "origin_slot": 0,
            "target_id": 321,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 323,
            "origin_slot": 0,
            "target_id": 321,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 322,
            "origin_slot": 1,
            "target_id": 323,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 321,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 321,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 321,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 323,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 321,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 321,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 321,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 321,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 321,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 321,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 322,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      },
      {
        "id": "01ed6ae9-ebd6-4125-a6ba-1126c414e38d",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 412,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 413,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 414,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 413,
            "origin_slot": 0,
            "target_id": 412,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 414,
            "origin_slot": 0,
            "target_id": 412,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 413,
            "origin_slot": 1,
            "target_id": 414,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 412,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 412,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 412,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 414,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 412,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 412,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 412,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 412,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 412,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 412,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 413,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      },
      {
        "id": "17a8f57a-daef-448f-be44-ec8a79bd8bf1",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 527,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 528,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 529,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 528,
            "origin_slot": 0,
            "target_id": 527,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 529,
            "origin_slot": 0,
            "target_id": 527,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 528,
            "origin_slot": 1,
            "target_id": 529,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 527,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 527,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 527,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 529,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 527,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 527,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 527,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 527,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 527,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 527,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 528,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      },
      {
        "id": "693dba9b-170d-4292-b457-4cccd5e110b7",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 452,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 453,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 454,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 453,
            "origin_slot": 0,
            "target_id": 452,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 454,
            "origin_slot": 0,
            "target_id": 452,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 453,
            "origin_slot": 1,
            "target_id": 454,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 452,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 452,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 452,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 454,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 452,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 452,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 452,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 452,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 452,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 452,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 453,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      },
      {
        "id": "6e6888f0-3661-4f70-8f05-80d58febf43d",
        "version": 1,
        "state": {
          "lastGroupId": 31,
          "lastNodeId": 685,
          "lastLinkId": 1230,
          "lastRerouteId": 113
        },
        "revision": 0,
        "config": {},
        "name": "Image Segmentation (SAM3)",
        "description": "Segments images into masks using Meta SAM3 from text prompts, points, or boxes.",
        "inputNode": {
          "id": -10,
          "bounding": [
            -2260,
            -3450,
            136.369140625,
            220
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            -1130,
            -3305,
            120,
            80
          ]
        },
        "inputs": [
          {
            "id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              264
            ],
            "localized_name": "image",
            "label": "image",
            "pos": [
              -2143.630859375,
              -3430
            ]
          },
          {
            "id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              265
            ],
            "label": "object",
            "pos": [
              -2143.630859375,
              -3410
            ]
          },
          {
            "id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              266
            ],
            "pos": [
              -2143.630859375,
              -3390
            ]
          },
          {
            "id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
            "name": "positive_coords",
            "type": "STRING",
            "linkIds": [
              267
            ],
            "pos": [
              -2143.630859375,
              -3370
            ]
          },
          {
            "id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
            "name": "negative_coords",
            "type": "STRING",
            "linkIds": [
              268
            ],
            "pos": [
              -2143.630859375,
              -3350
            ]
          },
          {
            "id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
            "name": "threshold",
            "type": "FLOAT",
            "linkIds": [
              269
            ],
            "pos": [
              -2143.630859375,
              -3330
            ]
          },
          {
            "id": "b1439668-b050-490b-a5dc-fc4052c55666",
            "name": "refine_iterations",
            "type": "INT",
            "linkIds": [
              270
            ],
            "pos": [
              -2143.630859375,
              -3310
            ]
          },
          {
            "id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
            "name": "individual_masks",
            "type": "BOOLEAN",
            "linkIds": [
              271
            ],
            "pos": [
              -2143.630859375,
              -3290
            ]
          },
          {
            "id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
            "name": "ckpt_name",
            "type": "COMBO",
            "linkIds": [
              272
            ],
            "pos": [
              -2143.630859375,
              -3270
            ]
          }
        ],
        "outputs": [
          {
            "id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
            "name": "masks",
            "type": "MASK",
            "linkIds": [
              231
            ],
            "localized_name": "masks",
            "pos": [
              -1110,
              -3285
            ]
          },
          {
            "id": "8f622e40-8528-4078-b7d3-147e9f872194",
            "name": "bboxes",
            "type": "BOUNDING_BOX",
            "linkIds": [
              232
            ],
            "localized_name": "bboxes",
            "pos": [
              -1110,
              -3265
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 677,
            "type": "SAM3_Detect",
            "pos": [
              -1470,
              -3460
            ],
            "size": [
              270,
              260
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "label": "model",
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 237
              },
              {
                "label": "image",
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 264
              },
              {
                "label": "conditioning",
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING",
                "link": 200
              },
              {
                "label": "bboxes",
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BOUNDING_BOX",
                "link": 266
              },
              {
                "label": "positive_coords",
                "localized_name": "positive_coords",
                "name": "positive_coords",
                "shape": 7,
                "type": "STRING",
                "link": 267
              },
              {
                "label": "negative_coords",
                "localized_name": "negative_coords",
                "name": "negative_coords",
                "shape": 7,
                "type": "STRING",
                "link": 268
              },
              {
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                },
                "link": 269
              },
              {
                "localized_name": "refine_iterations",
                "name": "refine_iterations",
                "type": "INT",
                "widget": {
                  "name": "refine_iterations"
                },
                "link": 270
              },
              {
                "localized_name": "individual_masks",
                "name": "individual_masks",
                "type": "BOOLEAN",
                "widget": {
                  "name": "individual_masks"
                },
                "link": 271
              }
            ],
            "outputs": [
              {
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK",
                "links": [
                  231
                ]
              },
              {
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BOUNDING_BOX",
                "links": [
                  232
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "SAM3_Detect",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              0.5,
              2,
              false
            ],
            "widgets_values_named": {
              "threshold": 0.5,
              "refine_iterations": 2,
              "individual_masks": false
            }
          },
          {
            "id": 678,
            "type": "CheckpointLoaderSimple",
            "pos": [
              -1970,
              -3200
            ],
            "size": [
              330,
              140
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                },
                "link": 272
              }
            ],
            "outputs": [
              {
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL",
                "links": [
                  237
                ]
              },
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  240
                ]
              },
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65,
              "models": [
                {
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
                  "directory": "checkpoints"
                }
              ]
            },
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ],
            "widgets_values_named": {
              "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
            }
          },
          {
            "id": 679,
            "type": "CLIPTextEncode",
            "pos": [
              -2000,
              -3000
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 240
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 265
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  200
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.7",
                "input_ue_unconnectable": {}
              },
              "cnr_id": "comfy-core",
              "ver": "0.19.3",
              "enableTabs": false,
              "tabWidth": 65,
              "tabXOffset": 10,
              "hasSecondTab": false,
              "secondTabText": "Send Back",
              "secondTabOffset": 80,
              "secondTabWidth": 65
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "text": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 237,
            "origin_id": 678,
            "origin_slot": 0,
            "target_id": 677,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 200,
            "origin_id": 679,
            "origin_slot": 0,
            "target_id": 677,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 240,
            "origin_id": 678,
            "origin_slot": 1,
            "target_id": 679,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 231,
            "origin_id": 677,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 232,
            "origin_id": 677,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 264,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 677,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 265,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 679,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 266,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 677,
            "target_slot": 3,
            "type": "BOUNDING_BOX"
          },
          {
            "id": 267,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 677,
            "target_slot": 4,
            "type": "STRING"
          },
          {
            "id": 268,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 677,
            "target_slot": 5,
            "type": "STRING"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 677,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 270,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 677,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 271,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 677,
            "target_slot": 8,
            "type": "BOOLEAN"
          },
          {
            "id": 272,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 678,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {
          "ue_links": []
        }
      }
    ]
  },
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.24304420967400844,
      "offset": [
        594.5455557763767,
        -213.0082288797248
      ]
    },
    "reroutes": [
      {
        "id": 74,
        "pos": [
          -1890.8472976942992,
          2980.1362815055604
        ],
        "linkIds": [
          1134,
          1140
        ]
      },
      {
        "id": 75,
        "pos": [
          -676.1875433417441,
          3625.095432626495
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 76,
        "parentId": 77,
        "pos": [
          -1326.0726841361225,
          2625.590865507715
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 77,
        "pos": [
          -3223.135664113907,
          2625.7500162771717
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 78,
        "pos": [
          -3223.840520794028,
          2649.6925122846783
        ],
        "linkIds": [
          1186
        ]
      },
      {
        "id": 79,
        "pos": [
          -3224.326312232241,
          2673.3518799009134
        ],
        "linkIds": [
          1161
        ]
      },
      {
        "id": 80,
        "pos": [
          -3232.1571875203385,
          2618.4850390518554
        ],
        "linkIds": [
          1145,
          1220
        ]
      },
      {
        "id": 81,
        "parentId": 80,
        "pos": [
          -807.7382597456957,
          2614.6729968812474
        ],
        "linkIds": [
          1145,
          1220
        ]
      },
      {
        "id": 82,
        "pos": [
          -3230.2016543230416,
          2640.9865744035565
        ],
        "linkIds": [
          1149
        ]
      },
      {
        "id": 83,
        "pos": [
          -3231.4374645171706,
          2665.501058109338
        ],
        "linkIds": [
          1147
        ]
      },
      {
        "id": 84,
        "parentId": 78,
        "pos": [
          253.96110795414538,
          2639.907971912031
        ],
        "linkIds": [
          1186
        ]
      },
      {
        "id": 85,
        "parentId": 79,
        "pos": [
          103.8219911126599,
          2655.238463134262
        ],
        "linkIds": [
          1161
        ]
      },
      {
        "id": 86,
        "parentId": 82,
        "pos": [
          71.54211372591769,
          2635.8185162317973
        ],
        "linkIds": [
          1149
        ]
      },
      {
        "id": 87,
        "parentId": 83,
        "pos": [
          254.2476214493523,
          2652.1555534014055
        ],
        "linkIds": [
          1147
        ]
      },
      {
        "id": 89,
        "pos": [
          -665.2230001794734,
          2181.4927551193528
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 96,
        "pos": [
          -1859.5272586502629,
          1864.7132021272093
        ],
        "linkIds": [
          1180,
          1157
        ]
      },
      {
        "id": 97,
        "pos": [
          3865.402020064995,
          2367.4755528763726
        ],
        "linkIds": [
          1196
        ]
      },
      {
        "id": 98,
        "parentId": 108,
        "pos": [
          -756.5480535484943,
          1428.8464921594984
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 99,
        "pos": [
          -691.5296937863124,
          1687.347527774674
        ],
        "linkIds": [
          1184,
          1162
        ]
      },
      {
        "id": 100,
        "pos": [
          4214.067225154363,
          2223.2040327225995
        ],
        "linkIds": [
          1195
        ]
      },
      {
        "id": 101,
        "parentId": 97,
        "pos": [
          4220.8347495879725,
          2374.7732018422107
        ],
        "linkIds": [
          1196
        ]
      },
      {
        "id": 102,
        "parentId": 100,
        "pos": [
          4303.754007901844,
          1861.2151904468233
        ],
        "linkIds": [
          1195
        ]
      },
      {
        "id": 103,
        "parentId": 101,
        "pos": [
          4319.053453277718,
          1883.5082159959427
        ],
        "linkIds": [
          1196
        ]
      },
      {
        "id": 104,
        "pos": [
          -3215.747382136306,
          1492.0180550171726
        ],
        "linkIds": [
          1186
        ]
      },
      {
        "id": 105,
        "parentId": 106,
        "pos": [
          -413.67779517686307,
          1452.9442428447846
        ],
        "linkIds": [
          1161
        ]
      },
      {
        "id": 106,
        "pos": [
          -3212.0711214833887,
          1466.4177527341528
        ],
        "linkIds": [
          1161
        ]
      },
      {
        "id": 107,
        "parentId": 104,
        "pos": [
          -37.33573127879569,
          1481.7156432206332
        ],
        "linkIds": [
          1186
        ]
      },
      {
        "id": 108,
        "pos": [
          -3211.4152934456565,
          1438.8466207546562
        ],
        "linkIds": [
          1155
        ]
      },
      {
        "id": 110,
        "pos": [
          5263.312028062632,
          1056.300083083317
        ],
        "linkIds": [
          1190,
          1201
        ]
      },
      {
        "id": 111,
        "pos": [
          5270.873346501316,
          1009.8998909488583
        ],
        "linkIds": [
          1214,
          1216
        ]
      },
      {
        "id": 112,
        "parentId": 111,
        "pos": [
          6571.320667434567,
          1006.3774612650863
        ],
        "linkIds": [
          1214,
          1216
        ]
      },
      {
        "id": 113,
        "pos": [
          6032.826446814051,
          954.3098271750412
        ],
        "linkIds": [
          1204,
          1208
        ]
      }
    ],
    "linkExtensions": [
      {
        "id": 1134,
        "parentId": 74
      },
      {
        "id": 1140,
        "parentId": 74
      },
      {
        "id": 1145,
        "parentId": 81
      },
      {
        "id": 1147,
        "parentId": 87
      },
      {
        "id": 1149,
        "parentId": 86
      },
      {
        "id": 1155,
        "parentId": 98
      },
      {
        "id": 1157,
        "parentId": 96
      },
      {
        "id": 1161,
        "parentId": 105
      },
      {
        "id": 1162,
        "parentId": 99
      },
      {
        "id": 1180,
        "parentId": 96
      },
      {
        "id": 1184,
        "parentId": 99
      },
      {
        "id": 1186,
        "parentId": 107
      },
      {
        "id": 1190,
        "parentId": 110
      },
      {
        "id": 1195,
        "parentId": 102
      },
      {
        "id": 1196,
        "parentId": 103
      },
      {
        "id": 1201,
        "parentId": 110
      },
      {
        "id": 1204,
        "parentId": 113
      },
      {
        "id": 1208,
        "parentId": 113
      },
      {
        "id": 1214,
        "parentId": 112
      },
      {
        "id": 1216,
        "parentId": 112
      },
      {
        "id": 1220,
        "parentId": 81
      }
    ],
    "frontendVersion": "1.52.7"
  },
  "version": 0.4
}