ComfyUI
ComfyUI copied to clipboard
[question]How to simulate the sampling process in comfyui
I used 20 samplers and set the denoising from 1-0.3 and ran each sampler for only one step, but it didn't work well,Using 20 advanced samplers and setting the number of steps separately, the results are similar, can anyone help me?
On all samplers except the first disable "add noise", on all samplers except the last one set "return with leftover noise".
import this picture to get my node
On all samplers except the first disable "add noise", on all samplers except the last one set "return with leftover noise".
Thanks, I will try it
Here, copy paste this on the UI:
{
"last_node_id": 20,
"last_link_id": 34,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 3,
"type": "KSampler",
"pos": [
863,
186
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
156680208700286,
"fixed",
20,
8,
"euler",
"normal",
1
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
415,
186
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4,
24
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6,
25
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
473,
609
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
2,
15
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 14,
"type": "Reroute",
"pos": [
774,
-352
],
"size": [
75,
26
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 24,
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
20,
21,
28
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 15,
"type": "Reroute",
"pos": [
773,
-315
],
"size": [
75,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 25,
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
22,
23,
29
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 11,
"type": "KSamplerAdvanced",
"pos": [
946,
-377
],
"size": {
"0": 315,
"1": 334
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 17,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 20,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 23,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 15
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
10
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
156680208700286,
"fixed",
20,
8,
"euler",
"normal",
0,
10,
"enable"
]
},
{
"id": 13,
"type": "Reroute",
"pos": [
775,
-385
],
"size": [
75,
26
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 19,
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
17,
18,
27
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 18,
"type": "KSamplerAdvanced",
"pos": [
1779,
-388
],
"size": {
"0": 315,
"1": 334
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 27,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 28
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 29,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 31
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
32
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"disable",
0,
"fixed",
20,
8,
"euler",
"normal",
15,
10000,
"disable"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
26,
474
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1,
19
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
3,
5
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8,
33
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned-emaonly.ckpt"
]
},
{
"id": 19,
"type": "VAEDecode",
"pos": [
2277.8520646528764,
-207.24179909446025
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 32
},
{
"name": "vae",
"type": "VAE",
"link": 33
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
34
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1545,
204
],
"size": [
210,
270
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 10,
"type": "KSamplerAdvanced",
"pos": [
1342,
-379
],
"size": {
"0": 315,
"1": 334
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 18,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 21
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 22,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 10
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
31
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"disable",
0,
"fixed",
20,
8,
"euler",
"normal",
10,
15,
"enable"
]
},
{
"id": 20,
"type": "SaveImage",
"pos": [
1829,
200
],
"size": [
244.4886912081488,
279.44777988771784
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 34
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
2,
5,
0,
3,
3,
"LATENT"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
10,
11,
0,
10,
3,
"LATENT"
],
[
15,
5,
0,
11,
3,
"LATENT"
],
[
17,
13,
0,
11,
0,
"MODEL"
],
[
18,
13,
0,
10,
0,
"MODEL"
],
[
19,
4,
0,
13,
0,
"*"
],
[
20,
14,
0,
11,
1,
"CONDITIONING"
],
[
21,
14,
0,
10,
1,
"CONDITIONING"
],
[
22,
15,
0,
10,
2,
"CONDITIONING"
],
[
23,
15,
0,
11,
2,
"CONDITIONING"
],
[
24,
6,
0,
14,
0,
"*"
],
[
25,
7,
0,
15,
0,
"*"
],
[
27,
13,
0,
18,
0,
"MODEL"
],
[
28,
14,
0,
18,
1,
"CONDITIONING"
],
[
29,
15,
0,
18,
2,
"CONDITIONING"
],
[
31,
10,
0,
18,
3,
"LATENT"
],
[
32,
18,
0,
19,
0,
"LATENT"
],
[
33,
4,
2,
19,
1,
"VAE"
],
[
34,
19,
0,
20,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
Super cool!I wanted to do this because I wanted to use sd1.5 to cross-sample with sdxl, and now I can do it, thanks again!,