The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
{
"1": {
"class_type": "LoadVideo",
"inputs": {
"file": "segment.mp4"
},
"_meta": {
"title": "blockout depth segment (<=81 frames @16 fps, near = bright)"
}
},
"2": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1",
0
]
},
"_meta": {
"title": "GetVideoComponents"
}
},
"3": {
"class_type": "ImageScale",
"inputs": {
"image": [
"2",
0
],
"upscale_method": "lanczos",
"width": 832,
"height": 480,
"crop": "center"
},
"_meta": {
"title": "depth frames at the work size"
}
},
"4": {
"class_type": "LoadImage",
"inputs": {
"image": "first_frame.png"
},
"_meta": {
"title": "first frame drawn from the references (Qwen-Image-Edit 2511), or the last frame of the window before"
}
},
"5": {
"class_type": "ImageScale",
"inputs": {
"image": [
"4",
0
],
"upscale_method": "lanczos",
"width": 832,
"height": 480,
"crop": "center"
},
"_meta": {
"title": "ImageScale"
}
},
"11": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"type": "wan",
"device": "default"
},
"_meta": {
"title": "CLIPLoader"
}
},
"12": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"11",
0
],
"text": "A woman walks slowly down a narrow corridor holding a torch; the door at the end swings open. Cinematic, photographic, natural motion."
},
"_meta": {
"title": "CLIPTextEncode"
}
},
"13": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"11",
0
],
"text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
},
"_meta": {
"title": "CLIPTextEncode"
}
},
"14": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"_meta": {
"title": "VAELoader"
}
},
"15": {
"class_type": "WanVaceToVideo",
"inputs": {
"positive": [
"12",
0
],
"negative": [
"13",
0
],
"vae": [
"14",
0
],
"width": 832,
"height": 480,
"length": [
"30",
0
],
"batch_size": 1,
"strength": 1,
"control_video": [
"33",
0
],
"control_masks": [
"40",
0
],
"reference_image": [
"5",
0
]
},
"_meta": {
"title": "WanVaceToVideo"
}
},
"16": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "UNETLoader"
}
},
"17": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "UNETLoader"
}
},
"18": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"model": [
"16",
0
],
"lora_name": "wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors",
"strength_model": 1
},
"_meta": {
"title": "LoraLoaderModelOnly"
}
},
"19": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"model": [
"17",
0
],
"lora_name": "wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors",
"strength_model": 1
},
"_meta": {
"title": "LoraLoaderModelOnly"
}
},
"20": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"18",
0
],
"shift": 5
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"21": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"19",
0
],
"shift": 5
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"22": {
"class_type": "KSamplerAdvanced",
"inputs": {
"model": [
"20",
0
],
"add_noise": "enable",
"noise_seed": 0,
"steps": 4,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"positive": [
"15",
0
],
"negative": [
"15",
1
],
"latent_image": [
"15",
2
],
"start_at_step": 0,
"end_at_step": 2,
"return_with_leftover_noise": "enable"
},
"_meta": {
"title": "KSamplerAdvanced"
}
},
"23": {
"class_type": "KSamplerAdvanced",
"inputs": {
"model": [
"21",
0
],
"add_noise": "disable",
"noise_seed": 0,
"steps": 4,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"positive": [
"15",
0
],
"negative": [
"15",
1
],
"latent_image": [
"22",
0
],
"start_at_step": 2,
"end_at_step": 10000,
"return_with_leftover_noise": "disable"
},
"_meta": {
"title": "KSamplerAdvanced"
}
},
"24": {
"class_type": "TrimVideoLatent",
"inputs": {
"samples": [
"23",
0
],
"trim_amount": [
"15",
3
]
},
"_meta": {
"title": "TrimVideoLatent"
}
},
"25": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"24",
0
],
"vae": [
"14",
0
]
},
"_meta": {
"title": "VAEDecode"
}
},
"26": {
"class_type": "CreateVideo",
"inputs": {
"images": [
"25",
0
],
"fps": 16,
"bit_depth": "auto",
"color_space": "sRGB",
"codec": "none"
},
"_meta": {
"title": "CreateVideo (silent: sound comes afterwards)"
}
},
"27": {
"class_type": "SaveVideo",
"inputs": {
"video": [
"26",
0
],
"filename_prefix": "fuobe/video-blockout-wan22-fun-vace",
"format": "auto",
"format.codec": "auto",
"codec": "auto"
},
"_meta": {
"title": "SaveVideo"
}
},
"30": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 81
},
"_meta": {
"title": "frames (4n+1, <= source frames)"
}
},
"31": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a - 1",
"values.a": [
"30",
0
]
},
"_meta": {
"title": "ComfyMathExpression"
}
},
"32": {
"class_type": "ImageFromBatch",
"inputs": {
"image": [
"3",
0
],
"batch_index": 1,
"length": [
"31",
1
]
},
"_meta": {
"title": "depth frames 1..N-1 (frame 0 is the first frame)"
}
},
"33": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"5",
0
],
"images.image1": [
"43",
0
]
},
"_meta": {
"title": "BatchImagesNode"
}
},
"34": {
"class_type": "SolidMask",
"inputs": {
"value": 0,
"width": 832,
"height": 480
},
"_meta": {
"title": "SolidMask"
}
},
"35": {
"class_type": "SolidMask",
"inputs": {
"value": 1,
"width": 832,
"height": 480
},
"_meta": {
"title": "SolidMask"
}
},
"36": {
"class_type": "RepeatImageBatch",
"inputs": {
"image": [
"37",
0
],
"amount": [
"31",
1
]
},
"_meta": {
"title": "RepeatImageBatch"
}
},
"37": {
"class_type": "MaskToImage",
"inputs": {
"mask": [
"35",
0
]
},
"_meta": {
"title": "MaskToImage"
}
},
"38": {
"class_type": "MaskToImage",
"inputs": {
"mask": [
"34",
0
]
},
"_meta": {
"title": "MaskToImage"
}
},
"39": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"38",
0
],
"images.image1": [
"36",
0
]
},
"_meta": {
"title": "BatchImagesNode"
}
},
"40": {
"class_type": "ImageToMask",
"inputs": {
"image": [
"39",
0
],
"channel": "red"
},
"_meta": {
"title": "ImageToMask"
}
},
"41": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": false
},
"_meta": {
"title": "near is dark (a Blender mist pass): invert the depth"
}
},
"42": {
"class_type": "ImageInvert",
"inputs": {
"image": [
"32",
0
]
},
"_meta": {
"title": "ImageInvert"
}
},
"43": {
"class_type": "ComfySwitchNode",
"inputs": {
"switch": [
"41",
0
],
"on_false": [
"32",
0
],
"on_true": [
"42",
0
]
},
"_meta": {
"title": "the depth as near = bright"
}
}
}