{
  "id": "1d367ebe-cf07-4c87-b73a-db40277e6d53",
  "revision": 0,
  "last_node_id": 98,
  "last_link_id": 236,
  "nodes": [
    {
      "id": 79,
      "type": "LoadImage",
      "pos": [
        -1320.9150852677963,
        -3575.0774834567037
      ],
      "size": [
        284,
        314
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            198,
            233
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "20260120_t2i_sdxl_upscale_00080_.png",
        "image"
      ]
    },
    {
      "id": 92,
      "type": "GetVideoComponents",
      "pos": [
        -1059.339179207186,
        -2808.0733078015382
      ],
      "size": [
        221.9,
        66
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "link": 226
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            227,
            228
          ]
        },
        {
          "name": "audio",
          "type": "AUDIO",
          "links": null
        },
        {
          "name": "fps",
          "type": "FLOAT",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "GetVideoComponents"
      },
      "widgets_values": []
    },
    {
      "id": 94,
      "type": "MarkdownNote",
      "pos": [
        -1328.0748816967243,
        -3008.465472524778
      ],
      "size": [
        355.16660673787794,
        120.75890356533046
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Links",
      "properties": {},
      "widgets_values": [
        "Model:\n\n[https://huggingface.co/Comfy-Org/SAM3/blob/main/checkpoints/sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/SAM3/blob/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\ntest clip link:\n[https://github.com/facebookresearch/sam3/blob/main/assets/videos/bedroom.mp4](https://github.com/facebookresearch/sam3/blob/main/assets/videos/bedroom.mp4)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 93,
      "type": "Note",
      "pos": [
        -924.7798694987559,
        -3014.85302089144
      ],
      "size": [
        404.35907044580586,
        106.4591996354111
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Note: Prompt format",
      "properties": {},
      "widgets_values": [
        "Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 75,
      "type": "SAM3_Detect",
      "pos": [
        -888.8398509684258,
        -3577.5093408410607
      ],
      "size": [
        270,
        206
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "label": "model",
          "name": "model",
          "type": "MODEL",
          "link": 197
        },
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 198
        },
        {
          "label": "conditioning",
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 236
        },
        {
          "label": "bboxes",
          "name": "bboxes",
          "shape": 7,
          "type": "BOUNDING_BOX",
          "link": null
        },
        {
          "label": "positive_coords",
          "name": "positive_coords",
          "shape": 7,
          "type": "STRING",
          "link": null
        },
        {
          "label": "negative_coords",
          "name": "negative_coords",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            231
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": [
            232
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "SAM3_Detect"
      },
      "widgets_values": [
        0.5,
        2,
        false
      ]
    },
    {
      "id": 97,
      "type": "PreviewImage",
      "pos": [
        -42.628784472121964,
        -3565.2080622615686
      ],
      "size": [
        407.3787781529343,
        437.3044325851706
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 234
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 95,
      "type": "MaskPreview",
      "pos": [
        -430.06965778408073,
        -3625.3826794233937
      ],
      "size": [
        306.6610924663712,
        384.73408031490726
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 231
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "MaskPreview"
      },
      "widgets_values": []
    },
    {
      "id": 96,
      "type": "DrawBBoxes",
      "pos": [
        -271.0331170381459,
        -3192.108515893112
      ],
      "size": [
        144.837890625,
        46
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "link": 232
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 233
        }
      ],
      "outputs": [
        {
          "name": "out_image",
          "type": "IMAGE",
          "links": [
            234
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "DrawBBoxes"
      },
      "widgets_values": []
    },
    {
      "id": 91,
      "type": "LoadVideo",
      "pos": [
        -1649.9928221515893,
        -2810.5881074961553
      ],
      "size": [
        490.798828125,
        1022.6251375671836
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VIDEO",
          "type": "VIDEO",
          "links": [
            226
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "LoadVideo"
      },
      "widgets_values": [
        "LTX_2.3_ia2v_00019_base.mp4",
        "image"
      ]
    },
    {
      "id": 43,
      "type": "CLIPTextEncode",
      "pos": [
        -1037.6772979120135,
        -2430.6626823210677
      ],
      "size": [
        294.74375,
        148.65038304620975
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 230
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            223
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "girl, house"
      ]
    },
    {
      "id": 77,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -1331.6558503671786,
        -3180.4359683094067
      ],
      "size": [
        320.4487189885323,
        98
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            197,
            229
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            230,
            235
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "sam3.1_multiplex_fp16.safetensors"
      ]
    },
    {
      "id": 98,
      "type": "CLIPTextEncode",
      "pos": [
        -868.0639286840201,
        -3257.4817200597295
      ],
      "size": [
        294.74375,
        148.65038304620975
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 235
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            236
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "girl"
      ]
    },
    {
      "id": 87,
      "type": "SAM3_VideoTrack",
      "pos": [
        -1046.7928248429728,
        -2679.055010147499
      ],
      "size": [
        275.80859375,
        166
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "label": "images",
          "name": "images",
          "type": "IMAGE",
          "link": 228
        },
        {
          "label": "model",
          "name": "model",
          "type": "MODEL",
          "link": 229
        },
        {
          "label": "initial_mask",
          "name": "initial_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "label": "conditioning",
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 223
        }
      ],
      "outputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "links": [
            219,
            220
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "SAM3_VideoTrack"
      },
      "widgets_values": [
        0.5,
        0,
        1
      ]
    },
    {
      "id": 90,
      "type": "MaskPreview",
      "pos": [
        -164.94293282743152,
        -2539.890039225864
      ],
      "size": [
        367.7590097845066,
        460.20366665792244
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 225
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "MaskPreview"
      },
      "widgets_values": []
    },
    {
      "id": 88,
      "type": "SAM3_TrackToMask",
      "pos": [
        -98.11450373998812,
        -2682.7632466637037
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "label": "track_data",
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "link": 219
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            225
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "SAM3_TrackToMask"
      },
      "widgets_values": [
        "0"
      ]
    },
    {
      "id": 89,
      "type": "SAM3_TrackPreview",
      "pos": [
        -701.9671793152525,
        -2826.8934104978593
      ],
      "size": [
        499.312583976478,
        1001.8410617754145
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "label": "track_data",
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "link": 220
        },
        {
          "label": "images",
          "name": "images",
          "shape": 7,
          "type": "IMAGE",
          "link": 227
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "SAM3_TrackPreview"
      },
      "widgets_values": [
        0.5,
        24
      ]
    }
  ],
  "links": [
    [
      197,
      77,
      0,
      75,
      0,
      "MODEL"
    ],
    [
      198,
      79,
      0,
      75,
      1,
      "IMAGE"
    ],
    [
      219,
      87,
      0,
      88,
      0,
      "SAM3_TRACK_DATA"
    ],
    [
      220,
      87,
      0,
      89,
      0,
      "SAM3_TRACK_DATA"
    ],
    [
      223,
      43,
      0,
      87,
      3,
      "CONDITIONING"
    ],
    [
      225,
      88,
      0,
      90,
      0,
      "MASK"
    ],
    [
      226,
      91,
      0,
      92,
      0,
      "VIDEO"
    ],
    [
      227,
      92,
      0,
      89,
      1,
      "IMAGE"
    ],
    [
      228,
      92,
      0,
      87,
      0,
      "IMAGE"
    ],
    [
      229,
      77,
      0,
      87,
      1,
      "MODEL"
    ],
    [
      230,
      77,
      1,
      43,
      0,
      "CLIP"
    ],
    [
      231,
      75,
      0,
      95,
      0,
      "MASK"
    ],
    [
      232,
      75,
      1,
      96,
      0,
      "BOUNDING_BOX"
    ],
    [
      233,
      79,
      0,
      96,
      1,
      "IMAGE"
    ],
    [
      234,
      96,
      0,
      97,
      0,
      "IMAGE"
    ],
    [
      235,
      77,
      1,
      98,
      0,
      "CLIP"
    ],
    [
      236,
      98,
      0,
      75,
      2,
      "CONDITIONING"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7400249944258924,
      "offset": [
        2507.8226124004614,
        3621.0816301835457
      ]
    },
    "frontendVersion": "1.42.14",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}