Skip to content

Instantly share code, notes, and snippets.

@OrsoEric
Created March 7, 2025 09:38
Show Gist options
  • Save OrsoEric/1ce22ac3e272cf352cb898c5076d90ac to your computer and use it in GitHub Desktop.
Save OrsoEric/1ce22ac3e272cf352cb898c5076d90ac to your computer and use it in GitHub Desktop.
FLUX-img2img
{
"last_node_id": 64,
"last_link_id": 93,
"nodes": [
{
"id": 25,
"type": "RandomNoise",
"pos": [
429,
242
],
"size": [
320,
82
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
119848925688375,
"randomize"
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
432,
380
],
"size": [
320,
60
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
839,
90.83999633789062
],
"size": [
360,
540
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 37,
"slot_index": 0
},
{
"name": "guider",
"type": "GUIDER",
"link": 30,
"slot_index": 1
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 19,
"slot_index": 2
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 20,
"slot_index": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 92,
"slot_index": 4
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
24
],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "SamplerCustomAdvanced"
},
"widgets_values": []
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1250,
95
],
"size": [
220,
46
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 89
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "VAEDecode"
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 53,
"type": "Note",
"pos": [
-560,
188
],
"size": [
519.1436157226562,
287.5044860839844
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"The checkpoint goes in ComfyUI/models/unet (not checkpoints)\nDownload the original weights here:\nhttps://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/flux1-dev.sft\n\nDownload the fp8 version for <16gb vram systems:\nhttps://huggingface.co/Kijai/flux-fp8/blob/main/flux1-dev-fp8.safetensors\n\nText encoders go in ComfyUI/models/clip:\nhttps://huggingface.co/comfyanonymous/flux_text_encoders/tree/main\n\nVAE (ae.sft) goes in ComfyUI/models/vae:\nhttps://huggingface.co/black-forest-labs/FLUX.1-schnell/blob/main/ae.sft\n\nDownload the fp8 t5xxl for degraded quality but less RAM use\nLaunch ComfyUI with \"--lowvram\" arg (in the .bat file) to offload text encoder to CPU.\n\nI can confirm this runs on:\n- RTX 3090 (24gb) 1.29s/it\n- RTX 4070 (12gb) 85s/it\n- RTX 4080s (16gb) 28.99 seconds\nBoth running the fp8 quantized version. The 4070 is very slow though."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 60,
"type": "CheckpointLoaderSimple",
"pos": [
30.822895050048828,
84.50211334228516
],
"size": [
315,
98
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
86,
88
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
87
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
89,
91
],
"slot_index": 2
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"flux1-dev-fp8-full.safetensors"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
401,
716
],
"size": [
210,
60
],
"flags": {
"collapsed": false
},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 87
},
{
"name": "text",
"type": "STRING",
"link": 47,
"slot_index": 1,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
40
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 22,
"type": "BasicGuider",
"pos": [
623,
715
],
"size": [
161.1999969482422,
56.80556869506836
],
"flags": {
"collapsed": false
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 88,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 40,
"slot_index": 1
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "BasicGuider"
},
"widgets_values": []
},
{
"id": 63,
"type": "VAEEncode",
"pos": [
661.7076416015625,
-331.394287109375
],
"size": [
140,
50
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 90
},
{
"name": "vae",
"type": "VAE",
"link": 91
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
92
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "VAEEncode"
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 52,
"type": "Note",
"pos": [
847,
699
],
"size": [
346.2236022949219,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"To see the preview, update your ComfyUI and go into the Manager menu. Set \"Preview Method\" to \"Auto\""
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 64,
"type": "Note",
"pos": [
210.41427612304688,
875.7130126953125
],
"size": [
346.2236022949219,
58
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"denoise below 0.7 does nothing"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 61,
"type": "LoadImage",
"pos": [
10.393234252929688,
-452.6556396484375
],
"size": [
352.1800231933594,
432.99993896484375
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
93
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"brainstorm.png",
"image"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 17,
"type": "BasicScheduler",
"pos": [
432,
491
],
"size": [
320,
106
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 86,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
20
],
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"normal",
15,
0.75
]
},
{
"id": 28,
"type": "String Literal",
"pos": [
26,
560
],
"size": [
320,
200
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
47
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"aux_id": "giriss/comfy-image-saver",
"ver": "65e6903eff274a50f8b5cd768f0f96baf37baea1",
"Node name for S&R": "String Literal"
},
"widgets_values": [
"pastel pencil painting. absurdist. abstract shapes with human features. Misshaped noses, eyes, mouth, teeth.\n\nBerserk. Behelit."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1263.720458984375,
218.52001953125
],
"size": [
680.719970703125,
469.20001220703125
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"%date:yyyy-MM-dd%"
]
},
{
"id": 62,
"type": "ImageScale",
"pos": [
411.6945495605469,
-337.3575439453125
],
"size": [
220,
130
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 93
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
90
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.14",
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"lanczos",
1536,
1536,
"center"
],
"color": "#323",
"bgcolor": "#535"
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
20,
17,
0,
13,
3,
"SIGMAS"
],
[
24,
13,
0,
8,
0,
"LATENT"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
40,
6,
0,
22,
1,
"CONDITIONING"
],
[
47,
28,
0,
6,
1,
"STRING"
],
[
86,
60,
0,
17,
0,
"MODEL"
],
[
87,
60,
1,
6,
0,
"CLIP"
],
[
88,
60,
0,
22,
0,
"MODEL"
],
[
89,
60,
2,
8,
1,
"VAE"
],
[
90,
62,
0,
63,
0,
"IMAGE"
],
[
91,
60,
2,
63,
1,
"VAE"
],
[
92,
63,
0,
13,
4,
"LATENT"
],
[
93,
61,
0,
62,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "Load FLUX.1",
"bounding": [
1,
2,
367,
462
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Set Parameters",
"bounding": [
379,
0,
425,
620
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "FLUX Prompt",
"bounding": [
1,
473,
368,
318
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Conditioning",
"bounding": [
380,
632,
423,
158
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "1st Pass",
"bounding": [
815,
1,
409,
788
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.620921323059155,
"offset": [
870.7722488702326,
783.2158993244229
]
},
"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