Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonasrosland/105b31c6895e45cedbcacfb0a85d30cd to your computer and use it in GitHub Desktop.
Save jonasrosland/105b31c6895e45cedbcacfb0a85d30cd to your computer and use it in GitHub Desktop.
{
"last_node_id": 32,
"last_link_id": 46,
"nodes": [
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": {
"0": 842,
"1": 215
},
"size": {
"0": 355.20001220703125,
"1": 326
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 37,
"slot_index": 0,
"label": "noise"
},
{
"name": "guider",
"type": "GUIDER",
"link": 30,
"slot_index": 1,
"label": "guider"
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 19,
"slot_index": 2,
"label": "sampler"
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 20,
"slot_index": 3,
"label": "sigmas"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 23,
"slot_index": 4,
"label": "latent_image"
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
24
],
"slot_index": 0,
"shape": 3,
"label": "output"
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"shape": 3,
"label": "denoised_output"
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": {
"0": 1248,
"1": 192
},
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24,
"label": "samples"
},
{
"name": "vae",
"type": "VAE",
"link": 12,
"label": "vae"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0,
"label": "IMAGE"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": {
"0": 480,
"1": 720
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3,
"label": "SAMPLER"
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 17,
"type": "BasicScheduler",
"pos": {
"0": 480,
"1": 816
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 46,
"slot_index": 0,
"label": "model"
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
20
],
"shape": 3,
"label": "SIGMAS"
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"simple",
4,
1
]
},
{
"id": 27,
"type": "Note",
"pos": {
"0": 480,
"1": 960
},
"size": {
"0": 311.3529052734375,
"1": 131.16229248046875
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"The schnell model is a distilled model that can generate a good image with only 4 steps."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 9,
"type": "SaveImage",
"pos": {
"0": 1488,
"1": 192
},
"size": {
"0": 985.3012084960938,
"1": 1060.3828125
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9,
"label": "images"
}
],
"outputs": [],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 10,
"type": "VAELoader",
"pos": {
"0": 48,
"1": 384
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 0,
"shape": 3,
"label": "VAE"
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 22,
"type": "BasicGuider",
"pos": {
"0": 550,
"1": 103
},
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 45,
"slot_index": 0,
"label": "model"
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 40,
"slot_index": 1,
"label": "conditioning"
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3,
"label": "GUIDER"
}
],
"properties": {
"Node name for S&R": "BasicGuider"
}
},
{
"id": 32,
"type": "CheckpointLoaderNF4",
"pos": {
"0": 46,
"1": 84
},
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
45,
46
],
"slot_index": 0,
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": null,
"shape": 3
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderNF4"
},
"widgets_values": [
"flux1-schnell-bnb-nf4.safetensors"
]
},
{
"id": 29,
"type": "DualCLIPLoader",
"pos": {
"0": 48,
"1": 240
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
43
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"clip_l.safetensors",
"t5xxl_fp8_e4m3fn.safetensors",
"flux"
]
},
{
"id": 25,
"type": "RandomNoise",
"pos": {
"0": 480,
"1": 576
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3,
"label": "NOISE"
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
393645210323470,
"randomize"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": {
"0": 480,
"1": 432
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
23
],
"slot_index": 0,
"label": "LATENT"
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1920,
1080,
1
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": {
"0": 375,
"1": 221
},
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 43,
"label": "clip"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
40
],
"slot_index": 0,
"label": "CONDITIONING"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a laptop with white text \"COSMOS\" on the screen, floating in space, swirling highly detailed beautiful colorful galaxies and nebulas surrounding it"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 26,
"type": "Note",
"pos": {
"0": 48,
"1": 480
},
"size": {
"0": 336,
"1": 288
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"If you get an error in any of the nodes above make sure the files are in the correct directories.\n\nSee the top of the examples page for the links : https://comfyanonymous.github.io/ComfyUI_examples/flux/\n\nflux1-schnell.safetensors goes in: ComfyUI/models/checkpoints\n\nt5xxl_fp8_e4m3fn.safetensors and clip_l.safetensors go in: ComfyUI/models/clip/\n\nae.safetensors goes in: ComfyUI/models/vae/\n\nThis workflow is a modified variant of the one found at https://comfyui-wiki.com/tutorial/advanced/flux1-comfyui-guide-workflow-and-examples.en-US"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
20,
17,
0,
13,
3,
"SIGMAS"
],
[
23,
5,
0,
13,
4,
"LATENT"
],
[
24,
13,
0,
8,
0,
"LATENT"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
40,
6,
0,
22,
1,
"CONDITIONING"
],
[
43,
29,
0,
6,
0,
"CLIP"
],
[
45,
32,
0,
22,
0,
"MODEL"
],
[
46,
32,
0,
17,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
134.1870894351789,
32.542428354411186
]
}
},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment