{
 "16": {
  "inputs": {
   "prompt_mode": "text",
   "frame_idx": 0,
   "score_threshold": 0.3,
   "video_frames": [
    "6",
    0
   ],
   "text_prompt": [
    "17",
    0
   ]
  },
  "class_type": "SAM3VideoSegmentation",
  "_meta": {
   "title": "SAM3 Video Segmentation"
  }
 },
 "44": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "37",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "37": {
  "inputs": {
   "seed": 5794135798431254,
   "max_res_dimension": 1024,
   "window_size": 14,
   "time_step_size": 10,
   "decode_chunk_size": 4,
   "offload_pipe_to_cpu_on_finish": true,
   "use_xformers": "auto",
   "images": [
    "6",
    0
   ]
  },
  "class_type": "NormalCrafterNode",
  "_meta": {
   "title": "NormalCrafter (Process Video)"
  }
 },
 "2": {
  "inputs": {
   "model": "depth_anything_v2_vitl_fp32.safetensors",
   "precision": "auto"
  },
  "class_type": "DownloadAndLoadDepthAnythingV2Model",
  "_meta": {
   "title": "DownloadAndLoadDepthAnythingV2Model"
  }
 },
 "8": {
  "inputs": {
   "da_model": [
    "2",
    0
   ],
   "images": [
    "6",
    0
   ]
  },
  "class_type": "DepthAnything_V2",
  "_meta": {
   "title": "Depth Anything V2"
  }
 },
 "25": {
  "inputs": {
   "mask": [
    "20",
    0
   ]
  },
  "class_type": "MaskToImage",
  "_meta": {
   "title": "Convert Mask to Image"
  }
 },
 "56": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "59",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "1": {
  "inputs": {
   "output_mode": "Merged",
   "confidence_threshold": 0.5,
   "max_segments": 0,
   "segment_pick": 0,
   "mask_blur": 0,
   "mask_offset": 0,
   "device": "Auto",
   "invert_output": false,
   "unload_model": false,
   "background": "Alpha",
   "background_color": "#222222",
   "image": [
    "6",
    0
   ],
   "prompt": [
    "17",
    0
   ]
  },
  "class_type": "SAM3Segment",
  "_meta": {
   "title": "SAM3 Segmentation (RMBG)"
  }
 },
 "59": {
  "inputs": {
   "mask": [
    "1",
    1
   ]
  },
  "class_type": "MaskToImage",
  "_meta": {
   "title": "Convert Mask to Image"
  }
 },
 "47": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "8",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "7": {
  "inputs": {
   "video_info": [
    "6",
    3
   ]
  },
  "class_type": "VHS_VideoInfo",
  "_meta": {
   "title": "Video Info \ud83c\udfa5\ud83c\udd65\ud83c\udd57\ud83c\udd62"
  }
 },
 "67": {
  "inputs": {
   "mask": [
    "60",
    1
   ]
  },
  "class_type": "MaskToImage",
  "_meta": {
   "title": "Convert Mask to Image"
  }
 },
 "65": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "67",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "53": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "25",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "90": {
  "inputs": {
   "batch_index": 0,
   "length": 1,
   "image": [
    "6",
    0
   ]
  },
  "class_type": "ImageFromBatch",
  "_meta": {
   "title": "Get Image from Batch"
  }
 },
 "92": {
  "inputs": {
   "model_path": "models/sam3/sam3.pt"
  },
  "class_type": "LoadSAM3Model",
  "_meta": {
   "title": "(down)Load SAM3 Model"
  }
 },
 "4": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "depth",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "47",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "DEPTH PASS"
  }
 },
 "39": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "normals",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "44",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "NORMALS PASS"
  }
 },
 "14": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "alpha_1",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "56",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "MATTE 1"
  }
 },
 "61": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "alpha_4",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "65",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "BEAUTY MATTES"
  }
 },
 "17": {
  "inputs": {
   "text1": "person"
  },
  "class_type": "TextBox1",
  "_meta": {
   "title": "Object Prompt"
  }
 },
 "19": {
  "inputs": {
   "model_path": "models/sam3/sam3.pt"
  },
  "class_type": "LoadSAM3Model",
  "_meta": {
   "title": "(down)Load SAM3 Model"
  }
 },
 "18": {
  "inputs": {
   "start_frame": 0,
   "end_frame": -1,
   "direction": "both",
   "offload_model": false,
   "sam3_model": [
    "19",
    0
   ],
   "video_state": [
    "16",
    0
   ]
  },
  "class_type": "SAM3Propagate",
  "_meta": {
   "title": "SAM3 Propagate"
  }
 },
 "20": {
  "inputs": {
   "obj_id": -1,
   "plot_all_masks": true,
   "masks": [
    "18",
    0
   ],
   "video_state": [
    "18",
    2
   ],
   "scores": [
    "18",
    1
   ]
  },
  "class_type": "SAM3VideoOutput",
  "_meta": {
   "title": "SAM3 Video Output"
  }
 },
 "26": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "alpha_2",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "53",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "MATTE 2"
  }
 },
 "89": {
  "inputs": {
   "points_store": "{\"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}]}",
   "coordinates": "[{\"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}]",
   "neg_coordinates": "[{\"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}]",
   "image": [
    "90",
    0
   ]
  },
  "class_type": "SAM3PointCollector",
  "_meta": {
   "title": "SAM3 Point Collector"
  }
 },
 "88": {
  "inputs": {
   "prompt_mode": "point",
   "text_prompt": "",
   "frame_idx": 0,
   "score_threshold": 0.3,
   "video_frames": [
    "6",
    0
   ],
   "positive_points": [
    "89",
    0
   ],
   "negative_points": [
    "89",
    1
   ]
  },
  "class_type": "SAM3VideoSegmentation",
  "_meta": {
   "title": "SAM3 Video Segmentation"
  }
 },
 "87": {
  "inputs": {
   "start_frame": 0,
   "end_frame": -1,
   "direction": "both",
   "offload_model": false,
   "sam3_model": [
    "92",
    0
   ],
   "video_state": [
    "88",
    0
   ]
  },
  "class_type": "SAM3Propagate",
  "_meta": {
   "title": "SAM3 Propagate"
  }
 },
 "86": {
  "inputs": {
   "obj_id": -1,
   "plot_all_masks": true,
   "masks": [
    "87",
    0
   ],
   "video_state": [
    "87",
    2
   ],
   "scores": [
    "87",
    1
   ]
  },
  "class_type": "SAM3VideoOutput",
  "_meta": {
   "title": "SAM3 Video Output"
  }
 },
 "85": {
  "inputs": {
   "mask": [
    "86",
    0
   ]
  },
  "class_type": "MaskToImage",
  "_meta": {
   "title": "Convert Mask to Image"
  }
 },
 "50": {
  "inputs": {
   "upscale_method": "nearest-exact",
   "keep_proportion": "stretch",
   "pad_color": "0, 0, 0",
   "crop_position": "center",
   "divisible_by": 2,
   "device": "cpu",
   "image": [
    "85",
    0
   ],
   "width": [
    "7",
    3
   ],
   "height": [
    "7",
    4
   ]
  },
  "class_type": "ImageResizeKJv2",
  "_meta": {
   "title": "Resize Image v2"
  }
 },
 "31": {
  "inputs": {
   "loop_count": 0,
   "filename_prefix": "alpha_3",
   "format": "video/h264-mp4",
   "pingpong": false,
   "save_output": true,
   "images": [
    "50",
    0
   ],
   "frame_rate": [
    "7",
    0
   ],
   "crf": 12,
   "pix_fmt": "yuv420p",
   "save_metadata": true,
   "trim_to_audio": false
  },
  "class_type": "VHS_VideoCombine",
  "_meta": {
   "title": "MATTE 3"
  }
 },
 "60": {
  "inputs": {
   "Skin": false,
   "Nose": false,
   "Eyeglasses": false,
   "Left-eye": true,
   "Right-eye": true,
   "Left-eyebrow": true,
   "Right-eyebrow": true,
   "Left-ear": false,
   "Right-ear": false,
   "Mouth": false,
   "Upper-lip": false,
   "Lower-lip": false,
   "Hair": false,
   "Earring": false,
   "Neck": false,
   "process_res": 512,
   "mask_blur": 0,
   "mask_offset": 0,
   "invert_output": false,
   "background": "Alpha",
   "background_color": "#222222",
   "images": [
    "6",
    0
   ]
  },
  "class_type": "FaceSegment",
  "_meta": {
   "title": "Face Segment (RMBG)"
  }
 },
 "6": {
  "inputs": {
   "video": "77fcc9512c2fd37409261685a39f805b8a735e5b4e85a8e9c80e543e6784d531.mp4",
   "force_rate": 24,
   "custom_width": 0,
   "custom_height": 0,
   "frame_load_cap": 0,
   "skip_first_frames": 0,
   "select_every_nth": 1,
   "format": "AnimateDiff"
  },
  "class_type": "VHS_LoadVideo",
  "_meta": {
   "title": "SOURCE"
  }
 }
}