Skip to content

Instantly share code, notes, and snippets.

@Art9681
Created July 29, 2025 11:23
Show Gist options
  • Select an option

  • Save Art9681/91394be3df4f809ca5d008d219fbc5f2 to your computer and use it in GitHub Desktop.

Select an option

Save Art9681/91394be3df4f809ca5d008d219fbc5f2 to your computer and use it in GitHub Desktop.
Fast image to video generation in WAN 2.2
{
"id": "ec7da562-7e21-4dac-a0d2-f4441e1efd3b",
"revision": 0,
"last_node_id": 80,
"last_link_id": 182,
"nodes": [
{
"id": 38,
"type": "CLIPLoader",
"pos": [
30,
190
],
"size": [
360,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
74,
75
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"wan",
"default"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 37,
"type": "UNETLoader",
"pos": [
30,
-70
],
"size": [
430,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
110
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors",
"default"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 56,
"type": "UNETLoader",
"pos": [
30,
60
],
"size": [
430,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
112
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors",
"default"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 39,
"type": "VAELoader",
"pos": [
30,
340
],
"size": [
360,
58
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
76,
99
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"wan_2.1_vae.safetensors"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 59,
"type": "Note",
"pos": [
-202.05557250976562,
-57.859466552734375
],
"size": [
210,
159.49227905273438
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"This model uses a different diffusion model for the first steps (high noise) vs the last steps (low noise).\n\n"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 60,
"type": "Note",
"pos": [
-200,
340
],
"size": [
210,
159.49227905273438
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"This model uses the wan 2.1 VAE.\n\n\n"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": [
425.27801513671875,
180.6060791015625
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 75
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
98
]
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
[
false,
true
]
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 62,
"type": "LoraLoaderModelOnly",
"pos": [
1005.25634765625,
-161.79449462890625
],
"size": [
270,
82
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 127
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
182
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "LoraLoaderModelOnly"
},
"widgets_values": [
"wan\\Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors",
1
]
},
{
"id": 63,
"type": "LoraLoaderModelOnly",
"pos": [
1008.1455688476562,
-22.18080711364746
],
"size": [
270,
82
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 129
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
181
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "LoraLoaderModelOnly"
},
"widgets_values": [
"wan\\Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors",
1
]
},
{
"id": 54,
"type": "ModelSamplingSD3",
"pos": [
486.4836120605469,
-69.28914642333984
],
"size": [
315,
58
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 110
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
127
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "ModelSamplingSD3"
},
"widgets_values": [
8.000000000000002
]
},
{
"id": 55,
"type": "ModelSamplingSD3",
"pos": [
484.0019836425781,
54.46213912963867
],
"size": [
315,
58
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 112
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
129
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "ModelSamplingSD3"
},
"widgets_values": [
8
]
},
{
"id": 68,
"type": "ImageResize+",
"pos": [
160.1168212890625,
637.47412109375
],
"size": [
270,
218
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 133
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
134
]
},
{
"name": "width",
"type": "INT",
"links": [
142
]
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui_essentials",
"ver": "9d9f4bedfc9f0321c19faf71855e228c93bd0dc9",
"Node name for S&R": "ImageResize+"
},
"widgets_values": [
832,
832,
"lanczos",
"fill / crop",
"always",
0
]
},
{
"id": 50,
"type": "WanImageToVideo",
"pos": [
491.7362060546875,
617.798095703125
],
"size": [
342.5999755859375,
210
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 97
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 98
},
{
"name": "vae",
"type": "VAE",
"link": 99
},
{
"name": "clip_vision_output",
"shape": 7,
"type": "CLIP_VISION_OUTPUT",
"link": null
},
{
"name": "start_image",
"shape": 7,
"type": "IMAGE",
"link": 134
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
118,
121
]
},
{
"name": "negative",
"type": "CONDITIONING",
"slot_index": 1,
"links": [
119,
122
]
},
{
"name": "latent",
"type": "LATENT",
"slot_index": 2,
"links": [
120
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "WanImageToVideo"
},
"widgets_values": [
480,
480,
81,
1
]
},
{
"id": 52,
"type": "LoadImage",
"pos": [
-189.57891845703125,
645.921630859375
],
"size": [
305.79901123046875,
352.6527404785156
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
133
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Screenshot 2025-07-28 at 7.37.37 PM.png",
"image"
]
},
{
"id": 57,
"type": "KSamplerAdvanced",
"pos": [
1313.188720703125,
-411.1846618652344
],
"size": [
304.748046875,
334
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 182
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 118
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 119
},
{
"name": "latent_image",
"type": "LATENT",
"link": 120
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
113
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
33317916179920,
"randomize",
6,
1,
"euler",
"simple",
0,
3,
"enable"
]
},
{
"id": 58,
"type": "KSamplerAdvanced",
"pos": [
1316.308837890625,
-16.472421646118164
],
"size": [
304.748046875,
334
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 181
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 121
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 122
},
{
"name": "latent_image",
"type": "LATENT",
"link": 113
},
{
"name": "noise_seed",
"type": "INT",
"widget": {
"name": "noise_seed"
},
"link": 142
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
124
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"disable",
0,
"fixed",
6,
1,
"euler",
"simple",
3,
10000,
"disable"
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1665.9649658203125,
-15.40721607208252
],
"size": [
210,
46
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 124
},
{
"name": "vae",
"type": "VAE",
"link": 76
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
131
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 64,
"type": "VHS_VideoCombine",
"pos": [
1671.4327392578125,
355.29095458984375
],
"size": [
219.3603515625,
334
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 131
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "a7ce59e381934733bfae03b1be029756d6ce936d",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 24,
"loop_count": 0,
"filename_prefix": "wan2_2",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "wan2_2_0001.mp4",
"subfolder": "",
"type": "temp",
"format": "video/h264-mp4",
"frame_rate": 24,
"workflow": "wan2_2_00048.png",
"fullpath": "C:\\ComfyUI_windows_portable_nvidia_p312\\wan2_2_00048.mp4"
}
}
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
1318.603515625,
369.7391052246094
],
"size": [
304.78485107421875,
231.23268127441406
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 74
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
97
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.46",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"",
[
false,
true
]
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
74,
38,
0,
6,
0,
"CLIP"
],
[
75,
38,
0,
7,
0,
"CLIP"
],
[
76,
39,
0,
8,
1,
"VAE"
],
[
97,
6,
0,
50,
0,
"CONDITIONING"
],
[
98,
7,
0,
50,
1,
"CONDITIONING"
],
[
99,
39,
0,
50,
2,
"VAE"
],
[
110,
37,
0,
54,
0,
"MODEL"
],
[
112,
56,
0,
55,
0,
"MODEL"
],
[
113,
57,
0,
58,
3,
"LATENT"
],
[
118,
50,
0,
57,
1,
"CONDITIONING"
],
[
119,
50,
1,
57,
2,
"CONDITIONING"
],
[
120,
50,
2,
57,
3,
"LATENT"
],
[
121,
50,
0,
58,
1,
"CONDITIONING"
],
[
122,
50,
1,
58,
2,
"CONDITIONING"
],
[
124,
58,
0,
8,
0,
"LATENT"
],
[
127,
54,
0,
62,
0,
"MODEL"
],
[
129,
55,
0,
63,
0,
"MODEL"
],
[
131,
8,
0,
64,
0,
"IMAGE"
],
[
133,
52,
0,
68,
0,
"IMAGE"
],
[
134,
68,
0,
50,
4,
"IMAGE"
],
[
142,
68,
1,
58,
4,
"INT"
],
[
181,
63,
0,
58,
0,
"MODEL"
],
[
182,
62,
0,
57,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6588450000000009,
"offset": [
62.7879665814953,
398.09503199601863
]
},
"frontendVersion": "1.23.4",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment