Files
if@impactframes.com bc1fb3277e feat(nodes): enhance radial attention resolution selector for video
- Overhauled the resolution calculation to be compatible with video radial attention by incorporating video length and patch divisor.
- Added UI controls for , , and  to the ResolutionSelector node.
- The node now outputs  for easier integration with video pipelines.
- Updated presets and added an example workflow for the new functionality.
2025-09-08 15:59:01 +01:00

1170 lines
20 KiB
JSON

{
"id": "ec7da562-7e21-4dac-a0d2-f4441e1efd3b",
"revision": 0,
"last_node_id": 97,
"last_link_id": 206,
"nodes": [
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
440.47662353515625,
209.98793029785156
],
"size": [
422.84503173828125,
164.31304931640625
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 74
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
134
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
"A girl in a Chinese dress is dancing."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
420,
440
],
"size": [
425.27801513671875,
180.6060791015625
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 75
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
135
]
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
"色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1286.3074951171875,
269.0856628417969
],
"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": [
203
]
}
],
"properties": {
"Node name for S&R": "VAEDecode",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": []
},
{
"id": 38,
"type": "CLIPLoader",
"pos": [
3.1326584815979004,
210
],
"size": [
346.391845703125,
106
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
74,
75
]
}
],
"properties": {
"Node name for S&R": "CLIPLoader",
"cnr_id": "comfy-core",
"ver": "0.3.45",
"models": [
{
"name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"directory": "text_encoders"
}
]
},
"widgets_values": [
"umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"wan",
"default"
]
},
{
"id": 39,
"type": "VAELoader",
"pos": [
30,
370
],
"size": [
344.731689453125,
59.98149108886719
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
76,
141
]
}
],
"properties": {
"Node name for S&R": "VAELoader",
"cnr_id": "comfy-core",
"ver": "0.3.45",
"models": [
{
"name": "wan_2.1_vae.safetensors",
"url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",
"directory": "vae"
}
]
},
"widgets_values": [
"wan_2.1_vae.safetensors"
]
},
{
"id": 57,
"type": "KSamplerAdvanced",
"pos": [
936.6778564453125,
-282.4851989746094
],
"size": [
304.748046875,
632.748046875
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 194
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 136
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 137
},
{
"name": "latent_image",
"type": "LATENT",
"link": 140
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
113
]
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
"enable",
705558785040989,
"fixed",
5,
1,
"lcm",
"sgm_uniform",
0,
2,
"enable"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 58,
"type": "KSamplerAdvanced",
"pos": [
949.11474609375,
464.7907409667969
],
"size": [
304.748046875,
632.748046875
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 197
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 138
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 139
},
{
"name": "latent_image",
"type": "LATENT",
"link": 113
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
124
]
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
"disable",
0,
"fixed",
5,
1,
"res_multistep",
"simple",
2,
5,
"disable"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 62,
"type": "LoadImage",
"pos": [
-375.8215026855469,
545.3287963867188
],
"size": [
315,
314.0000305175781
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
133
]
},
{
"name": "MASK",
"type": "MASK",
"slot_index": 1,
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
"c6ed5b17-9e65-4bb4-9ee3-0da8632d25b8.jpg",
"image"
]
},
{
"id": 63,
"type": "WanImageToVideo",
"pos": [
47.91752243041992,
685.1818237304688
],
"size": [
342.5999755859375,
210
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 134
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 135
},
{
"name": "vae",
"type": "VAE",
"link": 141
},
{
"name": "clip_vision_output",
"shape": 7,
"type": "CLIP_VISION_OUTPUT",
"link": null
},
{
"name": "start_image",
"shape": 7,
"type": "IMAGE",
"link": 133
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 205
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 206
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
136,
138
]
},
{
"name": "negative",
"type": "CONDITIONING",
"slot_index": 1,
"links": [
137,
139
]
},
{
"name": "latent",
"type": "LATENT",
"slot_index": 2,
"links": [
140
]
}
],
"properties": {
"Node name for S&R": "WanImageToVideo",
"cnr_id": "comfy-core",
"ver": "0.3.45"
},
"widgets_values": [
768,
768,
29,
1
]
},
{
"id": 67,
"type": "UnetLoaderGGUF",
"pos": [
-336.7863464355469,
-230.62857055664062
],
"size": [
270,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
201
]
}
],
"properties": {
"Node name for S&R": "UnetLoaderGGUF"
},
"widgets_values": [
"Wan2.2-I2V-A14B-HighNoise-Q4_K_M.gguf"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 68,
"type": "UnetLoaderGGUF",
"pos": [
-332.6245422363281,
16.288700103759766
],
"size": [
270,
58
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
202
]
}
],
"properties": {
"Node name for S&R": "UnetLoaderGGUF"
},
"widgets_values": [
"Wan2.2-I2V-A14B-LowNoise-Q4_K_M.gguf"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 83,
"type": "LoraLoaderModelOnly",
"pos": [
-25.5593204498291,
-244.51576232910156
],
"size": [
270,
82
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 201
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
200
]
}
],
"properties": {
"Node name for S&R": "LoraLoaderModelOnly"
},
"widgets_values": [
"wan2.2\\r64_ligh-i2v_a14b_4step_high_noise_model.safetensors",
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 84,
"type": "LoraLoaderModelOnly",
"pos": [
-9.370347023010254,
-12.503665924072266
],
"size": [
270,
82
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 202
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
199
]
}
],
"properties": {
"Node name for S&R": "LoraLoaderModelOnly"
},
"widgets_values": [
"wan2.2\\r64_ligh-i2v_a14b_4step_low_noise_model.safetensors",
1
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 88,
"type": "PatchRadialAttn",
"pos": [
282.6745300292969,
-326.0108337402344
],
"size": [
270,
154
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 200
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
195
]
}
],
"properties": {
"Node name for S&R": "PatchRadialAttn"
},
"widgets_values": [
1,
1,
0,
128,
0.2
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 89,
"type": "PatchRadialAttn",
"pos": [
297.17193603515625,
-82.21897888183594
],
"size": [
270,
154
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 199
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
196
]
}
],
"properties": {
"Node name for S&R": "PatchRadialAttn"
},
"widgets_values": [
1,
0,
1,
128,
0.2
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 91,
"type": "TorchCompileModel",
"pos": [
601.5918579101562,
-256.4695739746094
],
"size": [
229.6283416748047,
58
],
"flags": {},
"order": 13,
"mode": 4,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 195
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
194
]
}
],
"properties": {
"Node name for S&R": "TorchCompileModel"
},
"widgets_values": [
"inductor"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 92,
"type": "TorchCompileModel",
"pos": [
598.84619140625,
-92.0170669555664
],
"size": [
270,
58
],
"flags": {},
"order": 14,
"mode": 4,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 196
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
197
]
}
],
"properties": {
"Node name for S&R": "TorchCompileModel"
},
"widgets_values": [
"inductor"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 93,
"type": "CreateVideo",
"pos": [
1279.8104248046875,
129.08473205566406
],
"size": [
270,
78
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 203
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
}
],
"outputs": [
{
"name": "VIDEO",
"type": "VIDEO",
"links": [
204
]
}
],
"properties": {
"Node name for S&R": "CreateVideo"
},
"widgets_values": [
16
]
},
{
"id": 94,
"type": "SaveVideo",
"pos": [
1589.8104248046875,
129.08473205566406
],
"size": [
270,
578
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "video",
"type": "VIDEO",
"link": 204
}
],
"outputs": [],
"properties": {
"Node name for S&R": "SaveVideo"
},
"widgets_values": [
"video/ComfyUI",
"auto",
"auto"
]
},
{
"id": 96,
"type": "ResolutionSelector",
"pos": [
-394.1922302246094,
211.75831604003906
],
"size": [
320.6529235839844,
282
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "context",
"shape": 7,
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
205
]
},
{
"name": "height",
"type": "INT",
"links": [
206
]
},
{
"name": "length",
"type": "INT",
"links": null
},
{
"name": "size_string",
"type": "STRING",
"links": null
},
{
"name": "context",
"type": "*",
"links": null
}
],
"properties": {
"Node name for S&R": "ResolutionSelector"
},
"widgets_values": [
"I2V720p",
"Vertical",
"HQ",
"video",
29,
16,
128
]
}
],
"links": [
[
74,
38,
0,
6,
0,
"CLIP"
],
[
75,
38,
0,
7,
0,
"CLIP"
],
[
76,
39,
0,
8,
1,
"VAE"
],
[
113,
57,
0,
58,
3,
"LATENT"
],
[
124,
58,
0,
8,
0,
"LATENT"
],
[
133,
62,
0,
63,
4,
"IMAGE"
],
[
134,
6,
0,
63,
0,
"CONDITIONING"
],
[
135,
7,
0,
63,
1,
"CONDITIONING"
],
[
136,
63,
0,
57,
1,
"CONDITIONING"
],
[
137,
63,
1,
57,
2,
"CONDITIONING"
],
[
138,
63,
0,
58,
1,
"CONDITIONING"
],
[
139,
63,
1,
58,
2,
"CONDITIONING"
],
[
140,
63,
2,
57,
3,
"LATENT"
],
[
141,
39,
0,
63,
2,
"VAE"
],
[
194,
91,
0,
57,
0,
"MODEL"
],
[
195,
88,
0,
91,
0,
"MODEL"
],
[
196,
89,
0,
92,
0,
"MODEL"
],
[
197,
92,
0,
58,
0,
"MODEL"
],
[
199,
84,
0,
89,
0,
"MODEL"
],
[
200,
83,
0,
88,
0,
"MODEL"
],
[
201,
67,
0,
83,
0,
"MODEL"
],
[
202,
68,
0,
84,
0,
"MODEL"
],
[
203,
8,
0,
93,
0,
"IMAGE"
],
[
204,
93,
0,
94,
0,
"VIDEO"
],
[
205,
96,
0,
63,
5,
"INT"
],
[
206,
96,
1,
63,
6,
"INT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.45259537565112845,
"offset": [
1155.0256533936054,
438.07284314697273
]
},
"frontendVersion": "1.25.11",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}