Nvidia-PiD-Workflow / PiD-Context-Windows.json
Yogesh-DevHub's picture
Upload 4 files
65b2abf verified
Raw
History Blame Contribute Delete
26.8 kB
{
"id": "33d89cdf-8a8a-4253-a189-e3b1d3e25417",
"revision": 0,
"last_node_id": 33,
"last_link_id": 53,
"nodes": [
{
"id": 10,
"type": "GetImageSize",
"pos": [
397.26922214488764,
5380.16570429854
],
"size": [
210,
136
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 10
}
],
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
23
]
},
{
"name": "height",
"type": "INT",
"links": [
25
]
},
{
"name": "batch_size",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "GetImageSize"
},
"widgets_values": []
},
{
"id": 21,
"type": "ComfyMathExpression",
"pos": [
649.376756599586,
5427.41433501367
],
"size": [
400,
200
],
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [
{
"label": "a",
"name": "values.a",
"type": "FLOAT,INT,BOOLEAN",
"link": 25
},
{
"label": "b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT,BOOLEAN",
"link": null
}
],
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"name": "INT",
"type": "INT",
"links": [
28
]
},
{
"name": "BOOL",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"a*4"
]
},
{
"id": 20,
"type": "ComfyMathExpression",
"pos": [
649.2710305262165,
5390.48073556084
],
"size": [
400,
200
],
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [
{
"label": "a",
"name": "values.a",
"type": "FLOAT,INT,BOOLEAN",
"link": 23
},
{
"label": "b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT,BOOLEAN",
"link": null
}
],
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"name": "INT",
"type": "INT",
"links": [
27
]
},
{
"name": "BOOL",
"type": "BOOLEAN",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"a*4"
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
918.3162642595264,
5085.888652477314
],
"size": [
270,
58
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
16,
35
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"lcm"
]
},
{
"id": 22,
"type": "EmptyChromaRadianceLatentImage",
"pos": [
842.6120166409462,
5349.045454890501
],
"size": [
336.8609375,
106
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 27
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 28
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
29,
37
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "EmptyChromaRadianceLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 6,
"type": "VAEEncode",
"pos": [
399.9424414025313,
5563.809738332098
],
"size": [
140,
46
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 5
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
4
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 11,
"type": "UNETLoader",
"pos": [
388.6937097620908,
4672.026670045445
],
"size": [
427.4211054822336,
88.47964750249503
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
8
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"pid_flux1_1024_to_4096_4step_bf16.safetensors",
"default"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 1,
"type": "CLIPLoader",
"pos": [
143.7367288230216,
5004.103923117015
],
"size": [
387.0519189112158,
106
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
1,
2
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"gemma_2_2b_it_elm_fp8_scaled.safetensors",
"pixeldit",
"default"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 7,
"type": "VAELoader",
"pos": [
74.86530237615291,
5738.402049346494
],
"size": [
270,
58
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
5
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 19,
"type": "VAELoader",
"pos": [
928.0394451087177,
5502.899689683132
],
"size": [
241.93966722887126,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
22,
48
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"pixel_space"
]
},
{
"id": 18,
"type": "SaveImage",
"pos": [
1779.2279752978288,
5023.067787151781
],
"size": [
578.8685136800455,
581.618252425993
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 21
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0"
},
"widgets_values": [
"pid"
]
},
{
"id": 24,
"type": "VAEDecode",
"pos": [
1620.029195789874,
6181.718041524996
],
"size": [
140,
46
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 46
},
{
"name": "vae",
"type": "VAE",
"link": 48
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
43
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 17,
"type": "VAEDecode",
"pos": [
1504.9556188403205,
5025.267366794751
],
"size": [
140,
46
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 47
},
{
"name": "vae",
"type": "VAE",
"link": 22
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
21
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 13,
"type": "BasicScheduler",
"pos": [
913.4802607268446,
5189.035900273825
],
"size": [
270,
106
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 9
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
17,
36
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"sgm_uniform",
4,
1
]
},
{
"id": 5,
"type": "PiDConditioning",
"pos": [
921.796526631962,
4893.0908314634
],
"size": [
270,
102
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 3
},
{
"name": "latent",
"type": "LATENT",
"link": 4
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
14,
33
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "PiDConditioning"
},
"widgets_values": [
"flux",
1
]
},
{
"id": 4,
"type": "CLIPTextEncode",
"pos": [
960.8649982916808,
5036.617087023169
],
"size": [
400,
200
],
"flags": {
"collapsed": true
},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 2
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
15,
34
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 32,
"type": "ImageResizeKJv2",
"pos": [
-234.36714725100583,
5964.128400171276
],
"size": [
270,
336
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 51
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": []
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "a9ab19d2a7933e03f72bc00103863f06b9483300",
"Node name for S&R": "ImageResizeKJv2",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.1"
}
},
"widgets_values": [
1024,
1024,
"nearest-exact",
"crop",
"0, 0, 0",
"center",
32,
"cpu"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 9,
"type": "ResizeImageMaskNode",
"pos": [
71.0500474450155,
5562.852534681847
],
"size": [
270,
106
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "IMAGE,MASK",
"link": 53
}
],
"outputs": [
{
"name": "resized",
"type": "IMAGE",
"links": [
7,
10,
49
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "ResizeImageMaskNode"
},
"widgets_values": [
"scale total pixels",
1,
"bicubic"
]
},
{
"id": 23,
"type": "SamplerCustom",
"pos": [
1618.295323746994,
5908.38991969605
],
"size": [
271.125,
230
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 42
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 33
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 34
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 35
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 36
},
{
"name": "latent_image",
"type": "LATENT",
"link": 37
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
46
]
},
{
"name": "denoised_output",
"type": "LATENT",
"links": []
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "SamplerCustom"
},
"widgets_values": [
true,
324147937723823,
"fixed",
1
]
},
{
"id": 30,
"type": "PreviewImage",
"pos": [
423.2995987728871,
5663.935265115197
],
"size": [
140,
246
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 49
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 12,
"type": "ModelSamplingSD3",
"pos": [
915.2500119906665,
4735.451434277602
],
"size": [
270,
58
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 8
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
9,
13,
41
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "ModelSamplingSD3"
},
"widgets_values": [
1.5
]
},
{
"id": 15,
"type": "SamplerCustom",
"pos": [
1492.6647447434536,
4737.791251099956
],
"size": [
271.125,
230
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 13
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 14
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 15
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 16
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 17
},
{
"name": "latent_image",
"type": "LATENT",
"link": 29
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
47
]
},
{
"name": "denoised_output",
"type": "LATENT",
"links": []
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "SamplerCustom"
},
"widgets_values": [
true,
249096665097883,
"fixed",
1
]
},
{
"id": 26,
"type": "ContextWindowsManual",
"pos": [
1080.9699444152347,
5907.953322228191
],
"size": [
299.9609375,
298
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 41
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
42
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "ContextWindowsManual"
},
"widgets_values": [
2048,
512,
"standard_static",
1,
false,
"pyramid",
3,
false,
"",
false,
false
]
},
{
"id": 27,
"type": "SaveImage",
"pos": [
1829.1403750224608,
6187.257606799278
],
"size": [
578.8685136800455,
581.618252425993
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 43
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0"
},
"widgets_values": [
"pid"
]
},
{
"id": 8,
"type": "LoadImage",
"pos": [
-238.78926763751343,
5561.650327770694
],
"size": [
282.798828125,
314
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
51,
53
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"ComfyUI_temp_hqtar_00006_.png",
"image"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 28,
"type": "PrimitiveStringMultiline",
"pos": [
156.46948507270693,
4812.093756946682
],
"size": [
377.9694586000387,
142.8893656456503
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "PrimitiveStringMultiline"
},
"widgets_values": [
"anime scene\n\nUltra-detailed professional portrait photo of a young woman, natural skin texture with visible pores, fine facial details, realistic eyelashes, highly detailed irises with subtle reflections, individual hair strands, sharp focus, detailed eyebrows, detailed lips, natural beauty."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 2,
"type": "CLIPTextEncode",
"pos": [
579.7628081907188,
4889.845640639342
],
"size": [
298.72443146376895,
222.54999898651113
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
3
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.22.0",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Ultra-detailed professional portrait photo of a young woman, natural skin texture with visible pores, fine facial details, realistic eyelashes, highly detailed irises with subtle reflections, individual hair strands, sharp focus, detailed eyebrows, detailed lips, natural beauty."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 33,
"type": "MarkdownNote",
"pos": [
392.6193836353562,
4529.444428740693
],
"size": [
316.78125,
88
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Markdown Note - Link",
"properties": {},
"widgets_values": [
"YouTube Video [Link](https://youtu.be/fqNvL6Co29g)\n\n-----\n\n[https://huggingface.co/Comfy-Org/PixelDiT](https://huggingface.co/Comfy-Org/PixelDiT)"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
1,
0,
2,
0,
"CLIP"
],
[
2,
1,
0,
4,
0,
"CLIP"
],
[
3,
2,
0,
5,
0,
"CONDITIONING"
],
[
4,
6,
0,
5,
1,
"LATENT"
],
[
5,
7,
0,
6,
1,
"VAE"
],
[
7,
9,
0,
6,
0,
"IMAGE"
],
[
8,
11,
0,
12,
0,
"MODEL"
],
[
9,
12,
0,
13,
0,
"MODEL"
],
[
10,
9,
0,
10,
0,
"IMAGE"
],
[
13,
12,
0,
15,
0,
"MODEL"
],
[
14,
5,
0,
15,
1,
"CONDITIONING"
],
[
15,
4,
0,
15,
2,
"CONDITIONING"
],
[
16,
16,
0,
15,
3,
"SAMPLER"
],
[
17,
13,
0,
15,
4,
"SIGMAS"
],
[
21,
17,
0,
18,
0,
"IMAGE"
],
[
22,
19,
0,
17,
1,
"VAE"
],
[
23,
10,
0,
20,
0,
"INT"
],
[
25,
10,
1,
21,
0,
"INT"
],
[
27,
20,
1,
22,
0,
"INT"
],
[
28,
21,
1,
22,
1,
"INT"
],
[
29,
22,
0,
15,
5,
"LATENT"
],
[
33,
5,
0,
23,
1,
"CONDITIONING"
],
[
34,
4,
0,
23,
2,
"CONDITIONING"
],
[
35,
16,
0,
23,
3,
"SAMPLER"
],
[
36,
13,
0,
23,
4,
"SIGMAS"
],
[
37,
22,
0,
23,
5,
"LATENT"
],
[
41,
12,
0,
26,
0,
"MODEL"
],
[
42,
26,
0,
23,
0,
"MODEL"
],
[
43,
24,
0,
27,
0,
"IMAGE"
],
[
46,
23,
0,
24,
0,
"LATENT"
],
[
47,
15,
0,
17,
0,
"LATENT"
],
[
48,
19,
0,
24,
1,
"VAE"
],
[
49,
9,
0,
30,
0,
"IMAGE"
],
[
51,
8,
0,
32,
0,
"IMAGE"
],
[
53,
8,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5730855330116931,
"offset": [
1175.7676635839728,
-4202.320074763398
]
},
"frontendVersion": "1.44.19"
},
"version": 0.4
}