{
  "config": {},
  "extra": {
    "ds": {
      "offset": [
        3761.045504540799,
        1922.8243389665631
      ],
      "scale": 0.1677918223621205
    },
    "linearData": {
      "inputs": [
        [
          6,
          "choose video to upload"
        ],
        [
          17,
          "text1"
        ],
        [
          60,
          "Skin"
        ],
        [
          60,
          "Nose"
        ],
        [
          60,
          "Eyeglasses"
        ],
        [
          60,
          "Left-eye"
        ],
        [
          60,
          "Right-eye"
        ],
        [
          60,
          "Left-eyebrow"
        ],
        [
          60,
          "Right-eyebrow"
        ],
        [
          60,
          "Left-ear"
        ],
        [
          60,
          "Right-ear"
        ],
        [
          60,
          "Mouth"
        ],
        [
          60,
          "Upper-lip"
        ],
        [
          60,
          "Lower-lip"
        ],
        [
          60,
          "Hair"
        ],
        [
          60,
          "Earring"
        ],
        [
          60,
          "Neck"
        ],
        [
          89,
          "canvas"
        ],
        [
          61,
          "filename_prefix"
        ],
        [
          31,
          "filename_prefix"
        ],
        [
          26,
          "filename_prefix"
        ],
        [
          14,
          "filename_prefix"
        ]
      ],
      "outputs": [
        14,
        26,
        31,
        39,
        61,
        4
      ]
    },
    "linearMode": false,
    "linkExtensions": [
      {
        "id": 95,
        "parentId": 5
      },
      {
        "id": 99,
        "parentId": 6
      }
    ],
    "reroutes": [
      {
        "id": 3,
        "linkIds": [
          36
        ],
        "parentId": 7,
        "pos": [
          1134.6678884671892,
          1124.7705112802637
        ]
      },
      {
        "id": 4,
        "linkIds": [
          36
        ],
        "parentId": 3,
        "pos": [
          1963.3246733241942,
          1130.3316850379774
        ]
      },
      {
        "id": 5,
        "linkIds": [
          95
        ],
        "parentId": 6,
        "pos": [
          1973.3246733241947,
          370.3316850379773
        ]
      },
      {
        "id": 6,
        "linkIds": [
          95,
          99
        ],
        "pos": [
          1213.324673324194,
          370.3316850379773
        ]
      },
      {
        "id": 7,
        "linkIds": [
          36
        ],
        "pos": [
          1131.9962808956916,
          794.5510981591191
        ]
      }
    ]
  },
  "groups": [
    {
      "bounding": [
        -327.125530558594,
        -1137.9408685925976,
        818.5843344332219,
        695.3604166666668
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 1,
      "title": "SOURCE"
    },
    {
      "bounding": [
        844.5699896400769,
        -1145.8338657591037,
        2086.4164804201737,
        657.2322038389743
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 2,
      "title": "RMBG"
    },
    {
      "bounding": [
        -204.53127585990617,
        -383.78419391858824,
        597.0420962697975,
        321.6424488830562
      ],
      "color": "#b58b2a",
      "flags": {},
      "font_size": 24,
      "id": 3,
      "title": "SET PROMPT"
    },
    {
      "bounding": [
        842.5190244136733,
        -448.3230929081459,
        2692.3029542737145,
        671.5118956459677
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 4,
      "title": "SAM3 PROMPT"
    },
    {
      "bounding": [
        840.0419318623607,
        265.16692425144674,
        3377.4542695668206,
        806.2446640953162
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 5,
      "title": "SAM3 POINTS"
    },
    {
      "bounding": [
        846.7289694083847,
        2370.2704808577328,
        1732.2717648901403,
        699.6983128652439
      ],
      "color": "#8AA",
      "flags": {},
      "font_size": 24,
      "id": 6,
      "title": "DEPTH PASS"
    },
    {
      "bounding": [
        862.667385485712,
        3100.8650501504558,
        1708.2353606975191,
        692.9432814033216
      ],
      "color": "#8AA",
      "flags": {},
      "font_size": 24,
      "id": 7,
      "title": "NORMALS PASS"
    },
    {
      "bounding": [
        835.135518864588,
        1199.400640508564,
        2194.9119737838964,
        733.7538155999998
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 8,
      "title": "FACE SEGMENTATION"
    }
  ],
  "id": "49681c27-7502-4ed2-a2df-42c4d5b862aa",
  "last_link_id": 110,
  "last_node_id": 100,
  "links": [
    [
      1,
      7,
      0,
      3,
      0,
      "FLOAT"
    ],
    [
      3,
      5,
      0,
      4,
      4,
      "FLOAT"
    ],
    [
      4,
      6,
      3,
      7,
      0,
      "VHS_VIDEOINFO"
    ],
    [
      5,
      2,
      0,
      8,
      0,
      "DAMODEL"
    ],
    [
      7,
      6,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      8,
      10,
      0,
      8,
      1,
      "IMAGE"
    ],
    [
      9,
      7,
      3,
      11,
      0,
      "INT"
    ],
    [
      10,
      7,
      4,
      12,
      0,
      "INT"
    ],
    [
      11,
      13,
      0,
      1,
      0,
      "IMAGE"
    ],
    [
      12,
      15,
      0,
      14,
      4,
      "FLOAT"
    ],
    [
      15,
      19,
      0,
      18,
      0,
      "SAM3_MODEL"
    ],
    [
      16,
      16,
      0,
      18,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      17,
      18,
      0,
      20,
      0,
      "SAM3_VIDEO_MASKS"
    ],
    [
      18,
      18,
      2,
      20,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      19,
      18,
      1,
      20,
      2,
      "SAM3_VIDEO_SCORES"
    ],
    [
      20,
      21,
      0,
      16,
      0,
      "IMAGE"
    ],
    [
      22,
      17,
      0,
      22,
      0,
      "STRING"
    ],
    [
      23,
      23,
      0,
      16,
      6,
      "STRING"
    ],
    [
      24,
      24,
      0,
      1,
      1,
      "STRING"
    ],
    [
      25,
      20,
      0,
      25,
      0,
      "MASK"
    ],
    [
      26,
      27,
      0,
      26,
      4,
      "FLOAT"
    ],
    [
      30,
      32,
      0,
      31,
      4,
      "FLOAT"
    ],
    [
      36,
      38,
      0,
      37,
      0,
      "IMAGE"
    ],
    [
      37,
      40,
      0,
      39,
      4,
      "FLOAT"
    ],
    [
      40,
      37,
      0,
      44,
      0,
      "IMAGE"
    ],
    [
      41,
      44,
      0,
      39,
      0,
      "IMAGE"
    ],
    [
      42,
      45,
      0,
      44,
      2,
      "INT"
    ],
    [
      43,
      46,
      0,
      44,
      3,
      "INT"
    ],
    [
      44,
      48,
      0,
      47,
      2,
      "INT"
    ],
    [
      45,
      49,
      0,
      47,
      3,
      "INT"
    ],
    [
      46,
      8,
      0,
      47,
      0,
      "IMAGE"
    ],
    [
      47,
      47,
      0,
      4,
      0,
      "IMAGE"
    ],
    [
      48,
      51,
      0,
      50,
      2,
      "INT"
    ],
    [
      49,
      52,
      0,
      50,
      3,
      "INT"
    ],
    [
      51,
      50,
      0,
      31,
      0,
      "IMAGE"
    ],
    [
      52,
      54,
      0,
      53,
      2,
      "INT"
    ],
    [
      53,
      55,
      0,
      53,
      3,
      "INT"
    ],
    [
      54,
      25,
      0,
      53,
      0,
      "IMAGE"
    ],
    [
      55,
      53,
      0,
      26,
      0,
      "IMAGE"
    ],
    [
      56,
      57,
      0,
      56,
      2,
      "INT"
    ],
    [
      57,
      58,
      0,
      56,
      3,
      "INT"
    ],
    [
      59,
      56,
      0,
      14,
      0,
      "IMAGE"
    ],
    [
      60,
      1,
      1,
      59,
      0,
      "MASK"
    ],
    [
      61,
      59,
      0,
      56,
      0,
      "IMAGE"
    ],
    [
      62,
      65,
      0,
      61,
      0,
      "IMAGE"
    ],
    [
      63,
      62,
      0,
      61,
      4,
      "FLOAT"
    ],
    [
      64,
      63,
      0,
      65,
      2,
      "INT"
    ],
    [
      65,
      64,
      0,
      65,
      3,
      "INT"
    ],
    [
      67,
      66,
      0,
      60,
      0,
      "IMAGE"
    ],
    [
      68,
      60,
      1,
      67,
      0,
      "MASK"
    ],
    [
      69,
      67,
      0,
      65,
      0,
      "IMAGE"
    ],
    [
      89,
      86,
      0,
      85,
      0,
      "MASK"
    ],
    [
      90,
      87,
      0,
      86,
      0,
      "SAM3_VIDEO_MASKS"
    ],
    [
      91,
      87,
      2,
      86,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      92,
      87,
      1,
      86,
      2,
      "SAM3_VIDEO_SCORES"
    ],
    [
      93,
      92,
      0,
      87,
      0,
      "SAM3_MODEL"
    ],
    [
      94,
      88,
      0,
      87,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      95,
      91,
      0,
      88,
      0,
      "IMAGE"
    ],
    [
      96,
      89,
      0,
      88,
      1,
      "SAM3_POINTS_PROMPT"
    ],
    [
      97,
      89,
      1,
      88,
      2,
      "SAM3_POINTS_PROMPT"
    ],
    [
      98,
      90,
      0,
      89,
      0,
      "IMAGE"
    ],
    [
      99,
      91,
      0,
      90,
      0,
      "IMAGE"
    ],
    [
      100,
      85,
      0,
      50,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": true
      },
      "id": 3,
      "inputs": [
        {
          "link": 1,
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "mode": 0,
      "order": 47,
      "outputs": [
        {
          "links": null,
          "name": "*",
          "type": "*"
        }
      ],
      "pos": [
        368.64427530767966,
        -663.7904545067677
      ],
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "size": [
        210,
        34
      ],
      "title": "Set_fps",
      "type": "SetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 11,
      "inputs": [
        {
          "link": 9,
          "name": "INT",
          "type": "INT"
        }
      ],
      "mode": 0,
      "order": 48,
      "outputs": [
        {
          "links": null,
          "name": "*",
          "type": "*"
        }
      ],
      "pos": [
        365.98185074962794,
        -603.9979462799489
      ],
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "width"
      },
      "size": [
        210,
        50
      ],
      "title": "Set_width",
      "type": "SetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 12,
      "inputs": [
        {
          "link": 10,
          "name": "INT",
          "type": "INT"
        }
      ],
      "mode": 0,
      "order": 49,
      "outputs": [
        {
          "links": null,
          "name": "*",
          "type": "*"
        }
      ],
      "pos": [
        361.58185074962796,
        -551.1979462799488
      ],
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "height"
      },
      "size": [
        210,
        50
      ],
      "title": "Set_height",
      "type": "SetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 13,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            11
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        893.1416125498264,
        -1019.7405494878234
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        50
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": true
      },
      "id": 15,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            12
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        2277.510287965926,
        -930.4366547642645
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 21,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            20
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        890.7918495883637,
        -305.8379089492058
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        50
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 22,
      "inputs": [
        {
          "link": 22,
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "mode": 0,
      "order": 37,
      "outputs": [
        {
          "links": null,
          "name": "*",
          "type": "*"
        }
      ],
      "pos": [
        189.43201341526247,
        -166.2575807497736
      ],
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "prompt"
      },
      "size": [
        210,
        60
      ],
      "title": "Set_prompt",
      "type": "SetNode",
      "widgets_values": [
        "prompt"
      ]
    },
    {
      "flags": {},
      "id": 16,
      "inputs": [
        {
          "link": 20,
          "localized_name": "video_frames",
          "name": "video_frames",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "prompt_mode",
          "name": "prompt_mode",
          "type": "COMBO",
          "widget": {
            "name": "prompt_mode"
          }
        },
        {
          "link": 23,
          "localized_name": "text_prompt",
          "name": "text_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "text_prompt"
          }
        },
        {
          "link": null,
          "localized_name": "frame_idx",
          "name": "frame_idx",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "frame_idx"
          }
        },
        {
          "link": null,
          "localized_name": "score_threshold",
          "name": "score_threshold",
          "shape": 7,
          "type": "FLOAT",
          "widget": {
            "name": "score_threshold"
          }
        }
      ],
      "mode": 0,
      "order": 38,
      "outputs": [
        {
          "links": [
            16
          ],
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        1088.3848508886913,
        -291.46721227809195
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoSegmentation",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        277.4609375,
        130
      ],
      "type": "SAM3VideoSegmentation",
      "widgets_values": [
        "text",
        "",
        0,
        0.3
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 10,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            8
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1133.5075302409234,
        2628.4060176737653
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        60
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 38,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            36
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        950.2792179536682,
        3264.4927285336325
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        50
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 40,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            37
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        2008.519938414176,
        3421.0022796291364
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "flags": {},
      "id": 44,
      "inputs": [
        {
          "link": 40,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 42,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 43,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 41,
      "outputs": [
        {
          "links": [
            41
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        1718.0269873946372,
        3237.5524727854627
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 45,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            42
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1577.340064804116,
        3349.193825939289
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        60
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 46,
      "inputs": [],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            43
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1573.6590106989524,
        3405.879448371113
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        60
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "flags": {},
      "id": 37,
      "inputs": [
        {
          "link": 36,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "pipe_override",
          "name": "pipe_override",
          "shape": 7,
          "type": "NORMALCRAFTER_PIPE"
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "max_res_dimension",
          "name": "max_res_dimension",
          "type": "INT",
          "widget": {
            "name": "max_res_dimension"
          }
        },
        {
          "link": null,
          "localized_name": "window_size",
          "name": "window_size",
          "type": "INT",
          "widget": {
            "name": "window_size"
          }
        },
        {
          "link": null,
          "localized_name": "time_step_size",
          "name": "time_step_size",
          "type": "INT",
          "widget": {
            "name": "time_step_size"
          }
        },
        {
          "link": null,
          "localized_name": "decode_chunk_size",
          "name": "decode_chunk_size",
          "type": "INT",
          "widget": {
            "name": "decode_chunk_size"
          }
        },
        {
          "link": null,
          "localized_name": "offload_pipe_to_cpu_on_finish",
          "name": "offload_pipe_to_cpu_on_finish",
          "type": "BOOLEAN",
          "widget": {
            "name": "offload_pipe_to_cpu_on_finish"
          }
        },
        {
          "link": null,
          "localized_name": "use_xformers",
          "name": "use_xformers",
          "type": "COMBO",
          "widget": {
            "name": "use_xformers"
          }
        }
      ],
      "mode": 0,
      "order": 32,
      "outputs": [
        {
          "links": [
            40
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1169.925761478416,
        3238.546256410068
      ],
      "properties": {
        "Node name for S&R": "NormalCrafterNode"
      },
      "size": [
        333.236328125,
        246
      ],
      "type": "NormalCrafterNode",
      "widgets_values": [
        5794135798431254,
        "randomize",
        1024,
        14,
        10,
        4,
        true,
        "auto"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {},
      "id": 2,
      "inputs": [
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "precision",
          "name": "precision",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "precision"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            5
          ],
          "localized_name": "da_v2_model",
          "name": "da_v2_model",
          "type": "DAMODEL"
        }
      ],
      "pos": [
        911.5622874206389,
        2477.2798857911343
      ],
      "properties": {
        "Node name for S&R": "DownloadAndLoadDepthAnythingV2Model"
      },
      "size": [
        323.577734375,
        82
      ],
      "type": "DownloadAndLoadDepthAnythingV2Model",
      "widgets_values": [
        "depth_anything_v2_vitl_fp32.safetensors",
        "auto"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 48,
      "inputs": [],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": [
            44
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1595.880374905557,
        2590.0633271852494
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 49,
      "inputs": [],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            45
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1592.1993208003933,
        2646.7489496170733
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {},
      "id": 8,
      "inputs": [
        {
          "link": 5,
          "localized_name": "da_model",
          "name": "da_model",
          "type": "DAMODEL"
        },
        {
          "link": 8,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 33,
      "outputs": [
        {
          "links": [
            46
          ],
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1334.3810110166862,
        2478.6671023703875
      ],
      "properties": {
        "Node name for S&R": "DepthAnything_V2"
      },
      "size": [
        314.5963541666667,
        60
      ],
      "type": "DepthAnything_V2",
      "widgets_values": []
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 5,
      "inputs": [],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            3
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        2051.9166459059948,
        2603.81640752544
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": true
      },
      "id": 32,
      "inputs": [],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            30
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        3621.9886412908686,
        591.7116181167761
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        50.00000000000006
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 51,
      "inputs": [],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            48
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        3175.4899628021844,
        572.4717601733511
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 52,
      "inputs": [],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            49
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        3171.808908697021,
        629.1573826051755
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": true
      },
      "id": 27,
      "inputs": [],
      "mode": 0,
      "order": 15,
      "outputs": [
        {
          "links": [
            26
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        2994.148080224208,
        -196.79960257082135
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "flags": {},
      "id": 25,
      "inputs": [
        {
          "link": 25,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 59,
      "outputs": [
        {
          "links": [
            54
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        2073.917447189373,
        -295.2070168582931
      ],
      "properties": {
        "Node name for S&R": "MaskToImage"
      },
      "size": [
        193.2779296875,
        26
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 57,
      "inputs": [],
      "mode": 0,
      "order": 16,
      "outputs": [
        {
          "links": [
            56
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1620.9690353825479,
        -932.0815135566148
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 58,
      "inputs": [],
      "mode": 0,
      "order": 17,
      "outputs": [
        {
          "links": [
            57
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1617.2879812773842,
        -875.3958911247909
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "flags": {},
      "id": 56,
      "inputs": [
        {
          "link": 61,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 56,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 57,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 54,
      "outputs": [
        {
          "links": [
            59
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        1761.655957973069,
        -1043.722866710441
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "bgcolor": "#364254",
      "color": "#222e40",
      "flags": {},
      "id": 1,
      "inputs": [
        {
          "link": 11,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 24,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "output_mode",
          "name": "output_mode",
          "type": "COMBO",
          "widget": {
            "name": "output_mode"
          }
        },
        {
          "link": null,
          "localized_name": "confidence_threshold",
          "name": "confidence_threshold",
          "type": "FLOAT",
          "widget": {
            "name": "confidence_threshold"
          }
        },
        {
          "link": null,
          "localized_name": "max_segments",
          "name": "max_segments",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "max_segments"
          }
        },
        {
          "link": null,
          "localized_name": "segment_pick",
          "name": "segment_pick",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "segment_pick"
          }
        },
        {
          "link": null,
          "localized_name": "mask_blur",
          "name": "mask_blur",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "mask_blur"
          }
        },
        {
          "link": null,
          "localized_name": "mask_offset",
          "name": "mask_offset",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "mask_offset"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        },
        {
          "link": null,
          "localized_name": "invert_output",
          "name": "invert_output",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "invert_output"
          }
        },
        {
          "link": null,
          "localized_name": "unload_model",
          "name": "unload_model",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "unload_model"
          }
        },
        {
          "link": null,
          "localized_name": "background",
          "name": "background",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "background"
          }
        },
        {
          "link": null,
          "localized_name": "background_color",
          "name": "background_color",
          "shape": 7,
          "type": "COLORCODE",
          "widget": {
            "name": "background_color"
          }
        }
      ],
      "mode": 0,
      "order": 36,
      "outputs": [
        {
          "links": [],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            60
          ],
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        },
        {
          "links": null,
          "localized_name": "MASK_IMAGE",
          "name": "MASK_IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1092.4784143673844,
        -1047.711224164474
      ],
      "properties": {
        "Node name for S&R": "SAM3Segment"
      },
      "size": [
        340,
        440
      ],
      "type": "SAM3Segment",
      "widgets_values": [
        "",
        "Merged",
        0.5,
        0,
        0,
        0,
        0,
        "Auto",
        false,
        false,
        "Alpha",
        "#222222"
      ]
    },
    {
      "flags": {},
      "id": 59,
      "inputs": [
        {
          "link": 60,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 45,
      "outputs": [
        {
          "links": [
            61
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1506.4855809161388,
        -1034.4965889899092
      ],
      "properties": {
        "Node name for S&R": "MaskToImage"
      },
      "size": [
        193.2779296875,
        26
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 47,
      "inputs": [
        {
          "link": 46,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 44,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 45,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 42,
      "outputs": [
        {
          "links": [
            47
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        1736.567297496078,
        2478.4219740314234
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 66,
      "inputs": [],
      "mode": 0,
      "order": 18,
      "outputs": [
        {
          "links": [
            67
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        892.7648435848339,
        1332.7895935113127
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        50
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 7,
      "inputs": [
        {
          "link": 4,
          "localized_name": "video_info",
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "mode": 0,
      "order": 40,
      "outputs": [
        {
          "links": [
            1
          ],
          "localized_name": "source_fps🟨",
          "name": "source_fps🟨",
          "type": "FLOAT"
        },
        {
          "links": null,
          "localized_name": "source_frame_count🟨",
          "name": "source_frame_count🟨",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "source_duration🟨",
          "name": "source_duration🟨",
          "type": "FLOAT"
        },
        {
          "links": [
            9
          ],
          "localized_name": "source_width🟨",
          "name": "source_width🟨",
          "type": "INT"
        },
        {
          "links": [
            10
          ],
          "localized_name": "source_height🟨",
          "name": "source_height🟨",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "loaded_fps🟦",
          "name": "loaded_fps🟦",
          "type": "FLOAT"
        },
        {
          "links": null,
          "localized_name": "loaded_frame_count🟦",
          "name": "loaded_frame_count🟦",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "loaded_duration🟦",
          "name": "loaded_duration🟦",
          "type": "FLOAT"
        },
        {
          "links": null,
          "localized_name": "loaded_width🟦",
          "name": "loaded_width🟦",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "loaded_height🟦",
          "name": "loaded_height🟦",
          "type": "INT"
        }
      ],
      "pos": [
        63.96462586562838,
        -692.8861355343388
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoInfo"
      },
      "size": [
        234.931640625,
        220
      ],
      "type": "VHS_VideoInfo",
      "widgets_values": {}
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 64,
      "inputs": [],
      "mode": 0,
      "order": 19,
      "outputs": [
        {
          "links": [
            65
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1772.3216255147072,
        1529.6768919174692
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "flags": {},
      "id": 67,
      "inputs": [
        {
          "link": 68,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 43,
      "outputs": [
        {
          "links": [
            69
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1671.0587942220664,
        1320.4530155455905
      ],
      "properties": {
        "Node name for S&R": "MaskToImage"
      },
      "size": [
        193.2779296875,
        26
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 65,
      "inputs": [
        {
          "link": 69,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 64,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 65,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 52,
      "outputs": [
        {
          "links": [
            62
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        1975.8542358555273,
        1321.4225934298624
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": true
      },
      "id": 62,
      "inputs": [],
      "mode": 0,
      "order": 20,
      "outputs": [
        {
          "links": [
            63
          ],
          "name": "FLOAT",
          "type": "FLOAT"
        }
      ],
      "pos": [
        2353.4860567140017,
        1461.4837440437593
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_fps",
      "type": "GetNode",
      "widgets_values": [
        "fps"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 54,
      "inputs": [],
      "mode": 0,
      "order": 21,
      "outputs": [
        {
          "links": [
            52
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        2359.9225240204723,
        -188.45102656752667
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 55,
      "inputs": [],
      "mode": 0,
      "order": 22,
      "outputs": [
        {
          "links": [
            53
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        2356.2414699153087,
        -131.76540413570274
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_height",
      "type": "GetNode",
      "widgets_values": [
        "height"
      ]
    },
    {
      "flags": {},
      "id": 53,
      "inputs": [
        {
          "link": 54,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 52,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 53,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 61,
      "outputs": [
        {
          "links": [
            55
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        2538.024838719043,
        -311.00514790525193
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "bgcolor": "#29699c",
      "color": "#1b4669",
      "flags": {
        "collapsed": true
      },
      "id": 63,
      "inputs": [],
      "mode": 0,
      "order": 23,
      "outputs": [
        {
          "links": [
            64
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1770.566373757158,
        1469.938205267486
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        34
      ],
      "title": "Get_width",
      "type": "GetNode",
      "widgets_values": [
        "width"
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 90,
      "inputs": [
        {
          "link": 99,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "batch_index",
          "name": "batch_index",
          "type": "INT",
          "widget": {
            "name": "batch_index"
          }
        },
        {
          "link": null,
          "localized_name": "length",
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        }
      ],
      "mode": 0,
      "order": 35,
      "outputs": [
        {
          "links": [
            98
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1224.8836232161439,
        548.3112288758996
      ],
      "properties": {
        "Node name for S&R": "ImageFromBatch",
        "cnr_id": "comfy-core",
        "ver": "0.4.0"
      },
      "shape": 1,
      "size": [
        210,
        82
      ],
      "type": "ImageFromBatch",
      "widgets_values": [
        0,
        1
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 91,
      "inputs": [],
      "mode": 0,
      "order": 24,
      "outputs": [
        {
          "links": [
            95,
            99
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        893.3246733241941,
        380.3316850379773
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "shape": 1,
      "size": [
        210,
        50
      ],
      "title": "Get_source",
      "type": "GetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 92,
      "inputs": [
        {
          "link": null,
          "localized_name": "model_path",
          "name": "model_path",
          "type": "STRING",
          "widget": {
            "name": "model_path"
          }
        }
      ],
      "mode": 0,
      "order": 25,
      "outputs": [
        {
          "links": [
            93
          ],
          "localized_name": "sam3_model",
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        }
      ],
      "pos": [
        2362.3757848927494,
        374.1929611989485
      ],
      "properties": {
        "Node name for S&R": "LoadSAM3Model",
        "cnr_id": "comfyui-sam3",
        "ver": "29ceca1e0692ea84700ccce1aeadadf2eb644322"
      },
      "shape": 1,
      "size": [
        310,
        82
      ],
      "type": "LoadSAM3Model",
      "widgets_values": [
        "models/sam3/sam3.pt"
      ]
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {},
      "id": 4,
      "inputs": [
        {
          "link": 47,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 3,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 51,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        2198.793595202068,
        2479.648291799183
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "DEPTH PASS",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "depth",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "bfa6070778e4fc3618dce8929dbccb3dd1e54e38bab5521d1def0a0ea298e4a7.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "depth_00001.png"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {},
      "id": 39,
      "inputs": [
        {
          "link": 41,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 37,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 50,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        2174.431342830427,
        3232.9534982742343
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "NORMALS PASS",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "normals",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "cd861a3cda85eb0b35f037ffe5024e7a4adff7623cb04f018defcd96da9062d9.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "normals_00001.png"
          },
          "paused": false
        }
      }
    },
    {
      "flags": {},
      "id": 14,
      "inputs": [
        {
          "link": 59,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 12,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "label": "Output Name (Prompt Matte 1):",
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 58,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        2426.654779115697,
        -1043.1250952176965
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "MATTE 1",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "alpha_1",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "343edb1cbbb84d977e1dc528ef7d3fb29290861c227c1492b1bf94beb33e2529.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "alpha_1_00002.png"
          },
          "paused": false
        }
      }
    },
    {
      "flags": {},
      "id": 61,
      "inputs": [
        {
          "link": 62,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 63,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "label": "Output Name (Face Mattes):",
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 56,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        2540.5001440938927,
        1315.865928747573
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "BEAUTY MATTES",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "alpha_4",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "41461f3fa6ce223d016b56109436e494ae8cb0887de46286a3f112416ba27821.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "alpha_3_00004.png"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#3f5159",
      "color": "#2a363b",
      "flags": {
        "collapsed": true
      },
      "id": 9,
      "inputs": [
        {
          "link": 7,
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 39,
      "outputs": [
        {
          "links": null,
          "name": "*",
          "type": "*"
        }
      ],
      "pos": [
        320.69965235966635,
        -1019.404228962388
      ],
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "source"
      },
      "size": [
        210,
        60
      ],
      "title": "Set_source",
      "type": "SetNode",
      "widgets_values": [
        "source"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 24,
      "inputs": [],
      "mode": 0,
      "order": 26,
      "outputs": [
        {
          "links": [
            24
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        921.8145769915619,
        -947.3988072276909
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        58
      ],
      "title": "Get_prompt",
      "type": "GetNode",
      "widgets_values": [
        "prompt"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 17,
      "inputs": [
        {
          "label": "What do you want to Matte?",
          "link": null,
          "localized_name": "text1",
          "name": "text1",
          "type": "STRING",
          "widget": {
            "name": "text1"
          }
        }
      ],
      "mode": 0,
      "order": 27,
      "outputs": [
        {
          "links": [
            22
          ],
          "localized_name": "text1",
          "name": "text1",
          "type": "STRING"
        }
      ],
      "pos": [
        -105.51401373222103,
        -271.53200753553193
      ],
      "properties": {
        "Node name for S&R": "TextBox1",
        "cnr_id": "RES4LYF",
        "ver": "0dc91c00c4c3fb38e7874fcd7a2a327765e8882c",
        "widget_ue_connectable": {}
      },
      "size": [
        262.82421875,
        152.5390625
      ],
      "title": "Object Prompt",
      "type": "TextBox1",
      "widgets_values": [
        "person"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 23,
      "inputs": [],
      "mode": 0,
      "order": 28,
      "outputs": [
        {
          "links": [
            23
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        885.2574479056234,
        -195.06255004982245
      ],
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "size": [
        210,
        60
      ],
      "title": "Get_prompt",
      "type": "GetNode",
      "widgets_values": [
        "prompt"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 19,
      "inputs": [
        {
          "link": null,
          "localized_name": "model_path",
          "name": "model_path",
          "type": "STRING",
          "widget": {
            "name": "model_path"
          }
        }
      ],
      "mode": 0,
      "order": 29,
      "outputs": [
        {
          "links": [
            15
          ],
          "localized_name": "sam3_model",
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        }
      ],
      "pos": [
        1436.2969160944867,
        -351.3384877081457
      ],
      "properties": {
        "Node name for S&R": "LoadSAM3Model",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        90
      ],
      "type": "LoadSAM3Model",
      "widgets_values": [
        "models/sam3/sam3.pt"
      ]
    },
    {
      "flags": {},
      "id": 18,
      "inputs": [
        {
          "link": 15,
          "localized_name": "sam3_model",
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        },
        {
          "link": 16,
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        },
        {
          "link": null,
          "localized_name": "start_frame",
          "name": "start_frame",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "start_frame"
          }
        },
        {
          "link": null,
          "localized_name": "end_frame",
          "name": "end_frame",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "end_frame"
          }
        },
        {
          "link": null,
          "localized_name": "direction",
          "name": "direction",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "direction"
          }
        },
        {
          "link": null,
          "localized_name": "offload_model",
          "name": "offload_model",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "offload_model"
          }
        }
      ],
      "mode": 0,
      "order": 46,
      "outputs": [
        {
          "links": [
            17
          ],
          "localized_name": "masks",
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "links": [
            19
          ],
          "localized_name": "scores",
          "name": "scores",
          "type": "SAM3_VIDEO_SCORES"
        },
        {
          "links": [
            18
          ],
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        1403.1380462022125,
        -296.374772234957
      ],
      "properties": {
        "Node name for S&R": "SAM3Propagate",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        205.546875
      ],
      "type": "SAM3Propagate",
      "widgets_values": [
        0,
        -1,
        "both",
        false
      ]
    },
    {
      "flags": {},
      "id": 20,
      "inputs": [
        {
          "link": 17,
          "localized_name": "masks",
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "link": 18,
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        },
        {
          "link": 19,
          "localized_name": "scores",
          "name": "scores",
          "shape": 7,
          "type": "SAM3_VIDEO_SCORES"
        },
        {
          "link": null,
          "localized_name": "obj_id",
          "name": "obj_id",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "obj_id"
          }
        },
        {
          "link": null,
          "localized_name": "plot_all_masks",
          "name": "plot_all_masks",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "plot_all_masks"
          }
        }
      ],
      "mode": 0,
      "order": 55,
      "outputs": [
        {
          "links": [
            25
          ],
          "localized_name": "masks",
          "name": "masks",
          "type": "MASK"
        },
        {
          "links": null,
          "localized_name": "frames",
          "name": "frames",
          "type": "IMAGE"
        },
        {
          "links": [],
          "localized_name": "visualization",
          "name": "visualization",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1752.9941378331655,
        -295.64953490468093
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoOutput",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        150
      ],
      "type": "SAM3VideoOutput",
      "widgets_values": [
        -1,
        true
      ]
    },
    {
      "flags": {},
      "id": 26,
      "inputs": [
        {
          "link": 55,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 26,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "label": "Output Name (Prompt Matte 2):",
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 63,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        3149.5286088222815,
        -322.7597969780932
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "MATTE 2",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "alpha_2",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "a5b65e0a1c14e11425419982e1d8bd6d0c276328609c7a0caf3fdb5cb74aed94.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "alpha_2_00001.png"
          },
          "paused": false
        }
      }
    },
    {
      "flags": {},
      "id": 89,
      "inputs": [
        {
          "link": 98,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "points_store",
          "name": "points_store",
          "type": "STRING",
          "widget": {
            "name": "points_store"
          }
        },
        {
          "link": null,
          "localized_name": "coordinates",
          "name": "coordinates",
          "type": "STRING",
          "widget": {
            "name": "coordinates"
          }
        },
        {
          "link": null,
          "localized_name": "neg_coordinates",
          "name": "neg_coordinates",
          "type": "STRING",
          "widget": {
            "name": "neg_coordinates"
          }
        }
      ],
      "mode": 0,
      "order": 44,
      "outputs": [
        {
          "links": [
            96
          ],
          "localized_name": "positive_points",
          "name": "positive_points",
          "type": "SAM3_POINTS_PROMPT"
        },
        {
          "links": [
            97
          ],
          "localized_name": "negative_points",
          "name": "negative_points",
          "type": "SAM3_POINTS_PROMPT"
        }
      ],
      "pos": [
        1484.0835743880189,
        543.1112166688683
      ],
      "properties": {
        "Node name for S&R": "SAM3PointCollector",
        "cnr_id": "comfyui-sam3",
        "ver": "2ca51edf91962eacba4e102158b65b0cda8432dd"
      },
      "shape": 1,
      "size": [
        407.96493126532914,
        358
      ],
      "type": "SAM3PointCollector",
      "widgets_values": [
        "{\"positive\":[{\"x\":639.3392401688973,\"y\":161.28468577884667},{\"x\":654.6042907591711,\"y\":281.71285378550704},{\"x\":590.1518549335707,\"y\":290.1937106873845},{\"x\":664.7809911526871,\"y\":376.69845108653493},{\"x\":732.6256604427927,\"y\":308.85159587151503}],\"negative\":[{\"x\":902.2373336680569,\"y\":229.1315409938666},{\"x\":1095.594641144858,\"y\":329.205652436021},{\"x\":1073.5451236255738,\"y\":505.6074759950728},{\"x\":919.1985009905834,\"y\":595.5045591549742},{\"x\":637.6431234366447,\"y\":624.3394726213577},{\"x\":369.6566797407273,\"y\":546.3155891240847},{\"x\":256.01685867980024,\"y\":412.3180500744204},{\"x\":218.7022905702421,\"y\":276.62433964438054},{\"x\":349.30327895369555,\"y\":173.15788544147514},{\"x\":328.9498781666639,\"y\":134.14594369283867},{\"x\":128.8081037608521,\"y\":193.51194200598113},{\"x\":473.1198004081384,\"y\":520.8730184184523}]}",
        "[{\"x\":639.3392401688973,\"y\":161.28468577884667},{\"x\":654.6042907591711,\"y\":281.71285378550704},{\"x\":590.1518549335707,\"y\":290.1937106873845},{\"x\":664.7809911526871,\"y\":376.69845108653493},{\"x\":732.6256604427927,\"y\":308.85159587151503}]",
        "[{\"x\":902.2373336680569,\"y\":229.1315409938666},{\"x\":1095.594641144858,\"y\":329.205652436021},{\"x\":1073.5451236255738,\"y\":505.6074759950728},{\"x\":919.1985009905834,\"y\":595.5045591549742},{\"x\":637.6431234366447,\"y\":624.3394726213577},{\"x\":369.6566797407273,\"y\":546.3155891240847},{\"x\":256.01685867980024,\"y\":412.3180500744204},{\"x\":218.7022905702421,\"y\":276.62433964438054},{\"x\":349.30327895369555,\"y\":173.15788544147514},{\"x\":328.9498781666639,\"y\":134.14594369283867},{\"x\":128.8081037608521,\"y\":193.51194200598113},{\"x\":473.1198004081384,\"y\":520.8730184184523}]",
        ""
      ]
    },
    {
      "flags": {},
      "id": 88,
      "inputs": [
        {
          "link": 95,
          "localized_name": "video_frames",
          "name": "video_frames",
          "type": "IMAGE"
        },
        {
          "link": 96,
          "localized_name": "positive_points",
          "name": "positive_points",
          "shape": 7,
          "type": "SAM3_POINTS_PROMPT"
        },
        {
          "link": 97,
          "localized_name": "negative_points",
          "name": "negative_points",
          "shape": 7,
          "type": "SAM3_POINTS_PROMPT"
        },
        {
          "link": null,
          "localized_name": "prompt_mode",
          "name": "prompt_mode",
          "type": "COMBO",
          "widget": {
            "name": "prompt_mode"
          }
        },
        {
          "link": null,
          "localized_name": "text_prompt",
          "name": "text_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "text_prompt"
          }
        },
        {
          "link": null,
          "localized_name": "frame_idx",
          "name": "frame_idx",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "frame_idx"
          }
        },
        {
          "link": null,
          "localized_name": "score_threshold",
          "name": "score_threshold",
          "shape": 7,
          "type": "FLOAT",
          "widget": {
            "name": "score_threshold"
          }
        }
      ],
      "mode": 0,
      "order": 53,
      "outputs": [
        {
          "links": [
            94
          ],
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        1974.8836232161445,
        498.31122887589976
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoSegmentation",
        "cnr_id": "comfyui-sam3",
        "ver": "2ca51edf91962eacba4e102158b65b0cda8432dd"
      },
      "shape": 1,
      "size": [
        270,
        146
      ],
      "type": "SAM3VideoSegmentation",
      "widgets_values": [
        "point",
        0.3,
        0.3
      ]
    },
    {
      "flags": {},
      "id": 87,
      "inputs": [
        {
          "link": 93,
          "localized_name": "sam3_model",
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        },
        {
          "link": 94,
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        },
        {
          "link": null,
          "localized_name": "start_frame",
          "name": "start_frame",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "start_frame"
          }
        },
        {
          "link": null,
          "localized_name": "end_frame",
          "name": "end_frame",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "end_frame"
          }
        },
        {
          "link": null,
          "localized_name": "direction",
          "name": "direction",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "direction"
          }
        },
        {
          "link": null,
          "localized_name": "offload_model",
          "name": "offload_model",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "offload_model"
          }
        }
      ],
      "mode": 0,
      "order": 57,
      "outputs": [
        {
          "links": [
            90
          ],
          "localized_name": "masks",
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "links": [
            92
          ],
          "localized_name": "scores",
          "name": "scores",
          "type": "SAM3_VIDEO_SCORES"
        },
        {
          "links": [
            91
          ],
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        2363.5912598000455,
        433.2857627460268
      ],
      "properties": {
        "Node name for S&R": "SAM3Propagate",
        "cnr_id": "comfyui-sam3",
        "ver": "29ceca1e0692ea84700ccce1aeadadf2eb644322"
      },
      "shape": 1,
      "size": [
        270,
        170
      ],
      "type": "SAM3Propagate",
      "widgets_values": [
        0,
        -1,
        "both",
        false
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 86,
      "inputs": [
        {
          "link": 90,
          "localized_name": "masks",
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "link": 91,
          "localized_name": "video_state",
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        },
        {
          "link": 92,
          "localized_name": "scores",
          "name": "scores",
          "shape": 7,
          "type": "SAM3_VIDEO_SCORES"
        },
        {
          "link": null,
          "localized_name": "obj_id",
          "name": "obj_id",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "obj_id"
          }
        },
        {
          "link": null,
          "localized_name": "plot_all_masks",
          "name": "plot_all_masks",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "plot_all_masks"
          }
        }
      ],
      "mode": 0,
      "order": 60,
      "outputs": [
        {
          "links": [
            89
          ],
          "localized_name": "masks",
          "name": "masks",
          "type": "MASK"
        },
        {
          "links": [],
          "localized_name": "frames",
          "name": "frames",
          "type": "IMAGE"
        },
        {
          "links": [],
          "localized_name": "visualization",
          "name": "visualization",
          "type": "IMAGE"
        }
      ],
      "pos": [
        2687.8887099080957,
        433.56877924779394
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoOutput",
        "cnr_id": "comfyui-sam3",
        "ver": "2ca51edf91962eacba4e102158b65b0cda8432dd"
      },
      "shape": 1,
      "size": [
        270,
        122
      ],
      "type": "SAM3VideoOutput",
      "widgets_values": [
        -1,
        true
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 85,
      "inputs": [
        {
          "link": 89,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 62,
      "outputs": [
        {
          "links": [
            100
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        3029.6979250174923,
        431.9523623138242
      ],
      "properties": {
        "Node name for S&R": "MaskToImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.70"
      },
      "shape": 1,
      "size": [
        193.3166717529297,
        26
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 50,
      "inputs": [
        {
          "link": 100,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "mask",
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": 48,
          "localized_name": "width",
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 49,
          "localized_name": "height",
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": null,
          "localized_name": "upscale_method",
          "name": "upscale_method",
          "type": "COMBO",
          "widget": {
            "name": "upscale_method"
          }
        },
        {
          "link": null,
          "localized_name": "keep_proportion",
          "name": "keep_proportion",
          "type": "COMBO",
          "widget": {
            "name": "keep_proportion"
          }
        },
        {
          "link": null,
          "localized_name": "pad_color",
          "name": "pad_color",
          "type": "STRING",
          "widget": {
            "name": "pad_color"
          }
        },
        {
          "link": null,
          "localized_name": "crop_position",
          "name": "crop_position",
          "type": "COMBO",
          "widget": {
            "name": "crop_position"
          }
        },
        {
          "link": null,
          "localized_name": "divisible_by",
          "name": "divisible_by",
          "type": "INT",
          "widget": {
            "name": "divisible_by"
          }
        },
        {
          "link": null,
          "localized_name": "device",
          "name": "device",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "device"
          }
        }
      ],
      "mode": 0,
      "order": 64,
      "outputs": [
        {
          "links": [
            51
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "pos": [
        3325.5470717757626,
        432.71971382799615
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "size": [
        270,
        336.00000000000006
      ],
      "type": "ImageResizeKJv2",
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "stretch",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "flags": {},
      "id": 31,
      "inputs": [
        {
          "link": 51,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 30,
          "localized_name": "frame_rate",
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          }
        },
        {
          "link": null,
          "localized_name": "loop_count",
          "name": "loop_count",
          "type": "INT",
          "widget": {
            "name": "loop_count"
          }
        },
        {
          "label": "Output Name (Points Matte):",
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "pingpong",
          "name": "pingpong",
          "type": "BOOLEAN",
          "widget": {
            "name": "pingpong"
          }
        },
        {
          "link": null,
          "localized_name": "save_output",
          "name": "save_output",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_output"
          }
        },
        {
          "link": null,
          "name": "pix_fmt",
          "type": [
            "yuv420p",
            "yuv420p10le"
          ],
          "widget": {
            "name": "pix_fmt"
          }
        },
        {
          "link": null,
          "name": "crf",
          "type": "INT",
          "widget": {
            "name": "crf"
          }
        },
        {
          "link": null,
          "name": "save_metadata",
          "type": "BOOLEAN",
          "widget": {
            "name": "save_metadata"
          }
        },
        {
          "link": null,
          "name": "trim_to_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "trim_to_audio"
          }
        }
      ],
      "mode": 0,
      "order": 65,
      "outputs": [
        {
          "links": null,
          "localized_name": "Filenames",
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        3791.0292940922427,
        428.1286268598607
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "size": [
        319.1796875,
        512.548828125
      ],
      "title": "MATTE 3",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 12,
        "filename_prefix": "alpha_3",
        "format": "video/h264-mp4",
        "frame_rate": 24,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "fed38a7045f8819255df152b4c2223d11f437dcad49dc72df2233f5c0b1691c7.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 25,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "alpha_3_00003.png"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#364254",
      "color": "#222e40",
      "flags": {},
      "id": 60,
      "inputs": [
        {
          "link": 67,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "Skin",
          "name": "Skin",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Skin"
          }
        },
        {
          "link": null,
          "localized_name": "Nose",
          "name": "Nose",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Nose"
          }
        },
        {
          "link": null,
          "localized_name": "Eyeglasses",
          "name": "Eyeglasses",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Eyeglasses"
          }
        },
        {
          "link": null,
          "localized_name": "Left-eye",
          "name": "Left-eye",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Left-eye"
          }
        },
        {
          "link": null,
          "localized_name": "Right-eye",
          "name": "Right-eye",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Right-eye"
          }
        },
        {
          "link": null,
          "localized_name": "Left-eyebrow",
          "name": "Left-eyebrow",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Left-eyebrow"
          }
        },
        {
          "link": null,
          "localized_name": "Right-eyebrow",
          "name": "Right-eyebrow",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Right-eyebrow"
          }
        },
        {
          "link": null,
          "localized_name": "Left-ear",
          "name": "Left-ear",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Left-ear"
          }
        },
        {
          "link": null,
          "localized_name": "Right-ear",
          "name": "Right-ear",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Right-ear"
          }
        },
        {
          "link": null,
          "localized_name": "Mouth",
          "name": "Mouth",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Mouth"
          }
        },
        {
          "link": null,
          "localized_name": "Upper-lip",
          "name": "Upper-lip",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Upper-lip"
          }
        },
        {
          "link": null,
          "localized_name": "Lower-lip",
          "name": "Lower-lip",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Lower-lip"
          }
        },
        {
          "link": null,
          "localized_name": "Hair",
          "name": "Hair",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Hair"
          }
        },
        {
          "link": null,
          "localized_name": "Earring",
          "name": "Earring",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Earring"
          }
        },
        {
          "link": null,
          "localized_name": "Neck",
          "name": "Neck",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "Neck"
          }
        },
        {
          "link": null,
          "localized_name": "process_res",
          "name": "process_res",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "process_res"
          }
        },
        {
          "link": null,
          "localized_name": "mask_blur",
          "name": "mask_blur",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "mask_blur"
          }
        },
        {
          "link": null,
          "localized_name": "mask_offset",
          "name": "mask_offset",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "mask_offset"
          }
        },
        {
          "link": null,
          "localized_name": "invert_output",
          "name": "invert_output",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "invert_output"
          }
        },
        {
          "link": null,
          "localized_name": "background",
          "name": "background",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "background"
          }
        },
        {
          "link": null,
          "localized_name": "background_color",
          "name": "background_color",
          "shape": 7,
          "type": "COLORCODE",
          "widget": {
            "name": "background_color"
          }
        }
      ],
      "mode": 0,
      "order": 34,
      "outputs": [
        {
          "links": [],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            68
          ],
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        },
        {
          "links": null,
          "localized_name": "MASK_IMAGE",
          "name": "MASK_IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1213.2602827822204,
        1302.3806129213142
      ],
      "properties": {
        "Node name for S&R": "FaceSegment"
      },
      "size": [
        340,
        580
      ],
      "type": "FaceSegment",
      "widgets_values": [
        false,
        false,
        false,
        true,
        true,
        true,
        true,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        512,
        0,
        0,
        false,
        "Alpha",
        "#222222"
      ]
    },
    {
      "flags": {},
      "id": 6,
      "inputs": [
        {
          "link": null,
          "localized_name": "meta_batch",
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "localized_name": "vae",
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": null,
          "localized_name": "video",
          "name": "video",
          "type": "COMBO",
          "widget": {
            "name": "video"
          }
        },
        {
          "link": null,
          "localized_name": "force_rate",
          "name": "force_rate",
          "type": "FLOAT",
          "widget": {
            "name": "force_rate"
          }
        },
        {
          "link": null,
          "localized_name": "custom_width",
          "name": "custom_width",
          "type": "INT",
          "widget": {
            "name": "custom_width"
          }
        },
        {
          "link": null,
          "localized_name": "custom_height",
          "name": "custom_height",
          "type": "INT",
          "widget": {
            "name": "custom_height"
          }
        },
        {
          "link": null,
          "localized_name": "frame_load_cap",
          "name": "frame_load_cap",
          "type": "INT",
          "widget": {
            "name": "frame_load_cap"
          }
        },
        {
          "link": null,
          "localized_name": "skip_first_frames",
          "name": "skip_first_frames",
          "type": "INT",
          "widget": {
            "name": "skip_first_frames"
          }
        },
        {
          "link": null,
          "localized_name": "select_every_nth",
          "name": "select_every_nth",
          "type": "INT",
          "widget": {
            "name": "select_every_nth"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        }
      ],
      "mode": 0,
      "order": 30,
      "outputs": [
        {
          "links": [
            7
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "frame_count",
          "name": "frame_count",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "audio",
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [
            4
          ],
          "localized_name": "video_info",
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "pos": [
        -304.8055507001955,
        -1049.3808618787298
      ],
      "properties": {
        "Node name for S&R": "VHS_LoadVideo"
      },
      "size": [
        307.7604166666667,
        482.2682291666667
      ],
      "title": "SOURCE",
      "type": "VHS_LoadVideo",
      "widgets_values": {
        "custom_height": 0,
        "custom_width": 0,
        "force_rate": 24,
        "format": "AnimateDiff",
        "frame_load_cap": 0,
        "select_every_nth": 1,
        "skip_first_frames": 0,
        "video": "77fcc9512c2fd37409261685a39f805b8a735e5b4e85a8e9c80e543e6784d531.mp4",
        "videopreview": {
          "hidden": false,
          "params": {
            "custom_height": 0,
            "custom_width": 0,
            "filename": "77fcc9512c2fd37409261685a39f805b8a735e5b4e85a8e9c80e543e6784d531.mp4",
            "force_rate": 24,
            "format": "video/mp4",
            "frame_load_cap": 0,
            "select_every_nth": 1,
            "skip_first_frames": 0,
            "type": "input"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 100,
      "inputs": [],
      "mode": 0,
      "order": 31,
      "outputs": [],
      "pos": [
        -942.6692135870647,
        -1100.7568953888917
      ],
      "properties": {},
      "size": [
        545.6189607430179,
        1185.706411697231
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "## VFX Utilities Workflow – Quick Guide\n\nA streamlined ComfyUI workflow for generating production-ready utility passes from footage or images. Designed to speed up compositing, look dev, and integration tasks.\n\n---\n\n## What This Workflow Generates\n\n### 1. Alpha Passes (3 Methods)\n\n* **RMBG (Prompt-Based Background Removal)**\n  Quickly isolates a subject using a text prompt\n  Best for clean, obvious foreground subjects\n\n* **SAM3 Prompt (Text-Based Segmentation)**\n  More precise segmentation using prompt-driven masking\n  Better control than RMBG for complex shapes\n\n* **SAM3 Points Editor (Interactive Selection)**\n  Uses positive and negative click points\n  Best for detailed, manual control and tricky edges\n\n---\n\n### 2. Normal Pass\n\n* Generates surface direction information\n* Useful for relighting, compositing, and 3D integration\n\n---\n\n### 3. Depth Pass\n\n* Creates a grayscale depth map\n* Used for depth of field, fog, atmosphere, and layering\n\n---\n\n## How to Use the Workflow\n\n### Step 1 – Load Your Plate\n\n* Import your image or frame sequence\n* This becomes the source for all generated passes\n\n---\n\n### Step 2 – Choose Your Alpha Method\n\n#### Option A – RMBG\n\n* Enter a simple prompt describing your subject\n  Example: `person`, `car`, `tree`\n* Run the workflow to generate a clean alpha\n\n#### Option B – SAM3 Prompt\n\n* Enter a more descriptive prompt\n  Example: `man wearing a hat`\n* Produces more refined segmentation\n\n#### Option C – SAM3 Points Editor\n\n* Add **positive points** on the subject\n* Add **negative points** on the background\n* Best for precision work\n\n---\n\n### Step 3 – Generate Utility Passes\n\n* Enable the passes you need:\n\n  * Alpha\n  * Normals\n  * Depth\n* Run the workflow\n\n---\n\n### Step 4 – Review Outputs\n\n* Outputs are generated as separate images:\n\n  * **Alpha Mask** (black and white matte)\n  * **Normal Map** (RGB directional data)\n  * **Depth Map** (grayscale distance)\n\n---\n\n## Key Tips\n\n* **Mask Quality Matters**\n  Cleaner alpha = better downstream results\n\n* **Use Points Editor for Hero Shots**\n  Especially when edges matter (hair, fingers, props)\n\n* **Normals + Depth = Power Combo**\n  Great for relighting and atmospheric effects in comp\n\n* **Iterate Quickly**\n  Prompts and points can be adjusted in seconds\n\n---\n\n## When to Use This\n\n* Rough Rotoscoping\n* Prepping utility elements for comp\n* Generating depth for different VFX use cases\n* Creating essential passes for relighting\n"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}