{
 "52": {
  "inputs": {
   "filename_prefix": "cleanplate_compare",
   "format": "auto",
   "video": [
    "54:31",
    0
   ],
   "format.codec": "auto",
   "codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video Compared"
  }
 },
 "53": {
  "inputs": {
   "filename_prefix": "cleanplate_ltx_inpaint",
   "format": "auto",
   "video": [
    "54:36",
    0
   ],
   "format.codec": "auto",
   "codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video"
  }
 },
 "54:1": {
  "inputs": {
   "vae_name": "LTX23_video_vae_bf16.safetensors",
   "device": "main_device",
   "weight_dtype": "bf16"
  },
  "class_type": "VAELoaderKJ",
  "_meta": {
   "title": "VAELoader KJ"
  }
 },
 "54:2": {
  "inputs": {
   "vae_name": "LTX23_audio_vae_bf16.safetensors",
   "device": "main_device",
   "weight_dtype": "bf16"
  },
  "class_type": "VAELoaderKJ",
  "_meta": {
   "title": "VAELoader KJ"
  }
 },
 "54:3": {
  "inputs": {
   "images": [
    "54:38",
    0
   ]
  },
  "class_type": "VHS_GetImageCount",
  "_meta": {
   "title": "Get Image Count \ud83c\udfa5\ud83c\udd65\ud83c\udd57\ud83c\udd62"
  }
 },
 "54:4": {
  "inputs": {
   "clip_name1": "gemma_3_12B_it_fp4_mixed.safetensors",
   "clip_name2": "ltx-2.3_text_projection_bf16.safetensors",
   "type": "ltxv",
   "device": "default"
  },
  "class_type": "DualCLIPLoader",
  "_meta": {
   "title": "Load CLIP (Dual)"
  }
 },
 "54:5": {
  "inputs": {
   "unet_name": "ltx-2.3-22b-dev_transformer_only_bf16.safetensors",
   "weight_dtype": "default"
  },
  "class_type": "UNETLoader",
  "_meta": {
   "title": "Load Diffusion Model"
  }
 },
 "54:6": {
  "inputs": {
   "image": [
    "54:25",
    0
   ]
  },
  "class_type": "GetImageSize",
  "_meta": {
   "title": "Get Image Size"
  }
 },
 "54:9": {
  "inputs": {
   "text": [
    "133",
    0
   ],
   "clip": [
    "54:4",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Prompt)"
  }
 },
 "54:10": {
  "inputs": {
   "batch_size": 1,
   "width": [
    "54:6",
    0
   ],
   "height": [
    "54:6",
    1
   ],
   "length": [
    "54:45",
    1
   ]
  },
  "class_type": "EmptyLTXVLatentVideo",
  "_meta": {
   "title": "Empty LTXV Latent Video"
  }
 },
 "54:11": {
  "inputs": {
   "positive": [
    "54:9",
    0
   ],
   "negative": [
    "54:22",
    0
   ],
   "frame_rate": [
    "54:49",
    0
   ]
  },
  "class_type": "LTXVConditioning",
  "_meta": {
   "title": "LTXVConditioning"
  }
 },
 "54:12": {
  "inputs": {
   "frame_idx": 0,
   "strength": 1,
   "latent_downscale_factor": 1,
   "crop": "disabled",
   "use_tiled_encode": false,
   "tile_size": 256,
   "tile_overlap": 64,
   "use_streaming": false,
   "tile_frames": 97,
   "positive": [
    "54:11",
    0
   ],
   "negative": [
    "54:11",
    1
   ],
   "vae": [
    "54:1",
    0
   ],
   "latent": [
    "54:10",
    0
   ],
   "image": [
    "54:41",
    0
   ]
  },
  "class_type": "LTXAddVideoICLoRAGuide",
  "_meta": {
   "title": "\ud83c\udd5b\ud83c\udd63\ud83c\udd67 Add Video IC-LoRA Guide"
  }
 },
 "54:13": {
  "inputs": {
   "samples": [
    "54:18",
    1
   ],
   "audio_vae": [
    "54:2",
    0
   ]
  },
  "class_type": "LTXVAudioVAEDecode",
  "_meta": {
   "title": "LTXV Audio VAE Decode"
  }
 },
 "54:14": {
  "inputs": {
   "lora_name": "ltx-2.3-22b-distilled-lora-384-1.1.safetensors",
   "strength_model": 0.4,
   "model": [
    "54:15",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "54:15": {
  "inputs": {
   "lora_name": "ltx-2.3-22b-ic-lora-in-outpainting-0.9.safetensors",
   "strength_model": 1,
   "model": [
    "54:5",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "54:16": {
  "inputs": {
   "samples": [
    "54:17",
    2
   ],
   "vae": [
    "54:1",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "54:17": {
  "inputs": {
   "positive": [
    "54:12",
    0
   ],
   "negative": [
    "54:12",
    1
   ],
   "latent": [
    "54:18",
    0
   ]
  },
  "class_type": "LTXVCropGuides",
  "_meta": {
   "title": "LTXVCropGuides"
  }
 },
 "54:18": {
  "inputs": {
   "av_latent": [
    "54:19",
    0
   ]
  },
  "class_type": "LTXVSeparateAVLatent",
  "_meta": {
   "title": "Separate AV Latent"
  }
 },
 "54:19": {
  "inputs": {
   "seed": 511332212712579,
   "steps": 8,
   "cfg": 1,
   "sampler_name": "euler_ancestral_cfg_pp",
   "scheduler": "linear_quadratic",
   "denoise": 1,
   "model": [
    "54:14",
    0
   ],
   "positive": [
    "54:12",
    0
   ],
   "negative": [
    "54:12",
    1
   ],
   "latent_image": [
    "54:20",
    0
   ]
  },
  "class_type": "KSampler",
  "_meta": {
   "title": "KSampler"
  }
 },
 "54:20": {
  "inputs": {
   "video_latent": [
    "54:12",
    2
   ],
   "audio_latent": [
    "54:21",
    0
   ]
  },
  "class_type": "LTXVConcatAVLatent",
  "_meta": {
   "title": "Concat AV Latent"
  }
 },
 "54:21": {
  "inputs": {
   "batch_size": 1,
   "frames_number": [
    "54:45",
    1
   ],
   "frame_rate": [
    "54:50",
    0
   ],
   "audio_vae": [
    "54:2",
    0
   ]
  },
  "class_type": "LTXVEmptyLatentAudio",
  "_meta": {
   "title": "Empty LTXV Latent Audio"
  }
 },
 "54:22": {
  "inputs": {
   "text": "blurry, low resolution, ugly, garbled mess, compression artifacts, glitch, stop motion, still image, pixelated, robotic voice, oversaturated",
   "clip": [
    "54:4",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Prompt)"
  }
 },
 "54:25": {
  "inputs": {
   "batch_index": 0,
   "length": 1,
   "image": [
    "54:41",
    0
   ]
  },
  "class_type": "ImageFromBatch",
  "_meta": {
   "title": "Get Image from Batch"
  }
 },
 "54:26": {
  "inputs": {
   "direction": "down",
   "match_image_size": true,
   "spacing_width": 0,
   "spacing_color": "white",
   "image1": [
    "54:41",
    0
   ],
   "image2": [
    "54:16",
    0
   ]
  },
  "class_type": "ImageStitch",
  "_meta": {
   "title": "Stitch Images"
  }
 },
 "54:31": {
  "inputs": {
   "bit_depth": 8,
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "54:26",
    0
   ],
   "fps": [
    "54:49",
    0
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "54:36": {
  "inputs": {
   "bit_depth": 8,
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "54:16",
    0
   ],
   "fps": [
    "54:49",
    0
   ],
   "audio": [
    "54:38",
    1
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "54:38": {
  "inputs": {
   "video": [
    "69",
    0
   ]
  },
  "class_type": "GetVideoComponents",
  "_meta": {
   "title": "Get Video Components"
  }
 },
 "54:41": {
  "inputs": {
   "resize_type": "scale dimensions",
   "scale_method": "area",
   "input": [
    "54:38",
    0
   ],
   "resize_type.crop": "disabled",
   "resize_type.width": [
    "118",
    3
   ],
   "resize_type.height": [
    "118",
    4
   ]
  },
  "class_type": "ResizeImageMaskNode",
  "_meta": {
   "title": "Resize Image/Mask (s1 size)"
  }
 },
 "54:43": {
  "inputs": {
   "source": [
    "54:45",
    1
   ]
  },
  "class_type": "PreviewAny",
  "_meta": {
   "title": "Preview as Text"
  }
 },
 "54:45": {
  "inputs": {
   "expression": "(int((a - 1) / 8)) * 8 + 1",
   "values.a": [
    "54:3",
    0
   ]
  },
  "class_type": "ComfyMathExpression",
  "_meta": {
   "title": "Math Expression"
  }
 },
 "54:49": {
  "inputs": {
   "value": [
    "54:50",
    0
   ]
  },
  "class_type": "ComfyNumberConvert",
  "_meta": {
   "title": "Convert Number"
  }
 },
 "54:50": {
  "inputs": {
   "value": [
    "54:126",
    1
   ]
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "fps"
  }
 },
 "54:126": {
  "inputs": {
   "value": [
    "58",
    2
   ]
  },
  "class_type": "ComfyNumberConvert",
  "_meta": {
   "title": "Convert Number"
  }
 },
 "58": {
  "inputs": {
   "video": [
    "117",
    0
   ]
  },
  "class_type": "GetVideoComponents",
  "_meta": {
   "title": "Plate frames"
  }
 },
 "59": {
  "inputs": {
   "video": [
    "54:36",
    0
   ]
  },
  "class_type": "GetVideoComponents",
  "_meta": {
   "title": "LTX inpaint frames"
  }
 },
 "63": {
  "inputs": {
   "images": [
    "58",
    0
   ]
  },
  "class_type": "VHS_GetImageCount",
  "_meta": {
   "title": "n"
  }
 },
 "64": {
  "inputs": {
   "expression": "(int((a - 1) / 8)) * 8 + 1",
   "values.a": [
    "63",
    0
   ]
  },
  "class_type": "ComfyMathExpression",
  "_meta": {
   "title": "L = valid LTX length"
  }
 },
 "65": {
  "inputs": {
   "start_index": 0,
   "num_frames": [
    "64",
    1
   ],
   "images": [
    "58",
    0
   ]
  },
  "class_type": "GetImageRangeFromBatch",
  "_meta": {
   "title": "Trim plate to L"
  }
 },
 "70": {
  "inputs": {
   "model_path": "models/sam3/sam3.pt"
  },
  "class_type": "LoadSAM3Model",
  "_meta": {
   "title": "(down)Load SAM3 Model"
  }
 },
 "71": {
  "inputs": {
   "prompt_mode": "text",
   "frame_idx": 0,
   "score_threshold": 0.3,
   "video_frames": [
    "65",
    0
   ],
   "text_prompt": [
    "130",
    0
   ]
  },
  "class_type": "SAM3VideoSegmentation",
  "_meta": {
   "title": "SAM3 (object prompt)"
  }
 },
 "72": {
  "inputs": {
   "start_frame": 0,
   "end_frame": -1,
   "direction": "both",
   "offload_model": false,
   "sam3_model": [
    "70",
    0
   ],
   "video_state": [
    "71",
    0
   ]
  },
  "class_type": "SAM3Propagate",
  "_meta": {
   "title": "SAM3 Propagate"
  }
 },
 "73": {
  "inputs": {
   "obj_id": -1,
   "plot_all_masks": true,
   "masks": [
    "72",
    0
   ],
   "video_state": [
    "72",
    2
   ],
   "scores": [
    "72",
    1
   ]
  },
  "class_type": "SAM3VideoOutput",
  "_meta": {
   "title": "SAM3 Video Output"
  }
 },
 "66": {
  "inputs": {
   "spatial_radius": 10,
   "temporal_radius": 1,
   "mask": [
    "73",
    0
   ]
  },
  "class_type": "LTXVDilateVideoMask",
  "_meta": {
   "title": "Dilate matte"
  }
 },
 "67": {
  "inputs": {
   "expand": 0,
   "incremental_expandrate": 0,
   "tapered_corners": true,
   "flip_input": false,
   "blur_radius": 4,
   "lerp_alpha": 1,
   "decay_factor": 1,
   "fill_holes": false,
   "mask": [
    "66",
    0
   ]
  },
  "class_type": "GrowMaskWithBlur",
  "_meta": {
   "title": "Feather"
  }
 },
 "68": {
  "inputs": {
   "images": [
    "65",
    0
   ],
   "mask": [
    "67",
    0
   ]
  },
  "class_type": "LTXVInpaintPreprocess",
  "_meta": {
   "title": "Green-fill masked region"
  }
 },
 "69": {
  "inputs": {
   "bit_depth": 8,
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "68",
    0
   ],
   "fps": [
    "58",
    2
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "-> subgraph guide"
  }
 },
 "75": {
  "inputs": {
   "mask": [
    "67",
    0
   ]
  },
  "class_type": "MaskToImage",
  "_meta": {
   "title": "Convert Mask to Image"
  }
 },
 "76": {
  "inputs": {
   "bit_depth": 8,
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "75",
    0
   ],
   "fps": [
    "58",
    2
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "77": {
  "inputs": {
   "filename_prefix": "cleanplate_matte",
   "format": "auto",
   "video": [
    "76",
    0
   ],
   "format.codec": "auto",
   "codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Matte (Nuke)"
  }
 },
 "116": {
  "inputs": {
   "video": "9bc9794d6b638012646ea91728e4e47a61eb0f81e6c89e15427178419cbf0f8d.mp4",
   "force_rate": 0,
   "custom_width": 0,
   "custom_height": 0,
   "frame_load_cap": 0,
   "skip_first_frames": 0,
   "select_every_nth": 1,
   "format": "LTXV"
  },
  "class_type": "VHS_LoadVideo",
  "_meta": {
   "title": "Load Video (Upload) \ud83c\udfa5\ud83c\udd65\ud83c\udd57\ud83c\udd62"
  }
 },
 "117": {
  "inputs": {
   "bit_depth": 8,
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "116",
    0
   ],
   "fps": [
    "118",
    0
   ],
   "audio": [
    "116",
    2
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "118": {
  "inputs": {
   "video_info": [
    "116",
    3
   ]
  },
  "class_type": "VHS_VideoInfo",
  "_meta": {
   "title": "Video Info \ud83c\udfa5\ud83c\udd65\ud83c\udd57\ud83c\udd62"
  }
 },
 "130": {
  "inputs": {
   "value": "horse"
  },
  "class_type": "PrimitiveString",
  "_meta": {
   "title": "What do you want to remove?"
  }
 },
 "133": {
  "inputs": {
   "source": [
    "134",
    0
   ]
  },
  "class_type": "PreviewAny",
  "_meta": {
   "title": "Final prompt"
  }
 },
 "134": {
  "inputs": {
   "string_b": "removed",
   "delimiter": " ",
   "string_a": [
    "135",
    0
   ]
  },
  "class_type": "StringConcatenate",
  "_meta": {
   "title": "+ suffix"
  }
 },
 "135": {
  "inputs": {
   "string_a": "background plate, the scene with the",
   "delimiter": " ",
   "string_b": [
    "130",
    0
   ]
  },
  "class_type": "StringConcatenate",
  "_meta": {
   "title": "prefix + object"
  }
 }
}