Flux2-Dev-Workflows / Flux2_Dev_Fp8_workflow.json
stablediffusiontutorials's picture
Upload 2 files
9e94b79 verified
{
"id": "7c048efb-a059-44e2-970a-43e1eb472d0d",
"revision": 0,
"last_node_id": 61,
"last_link_id": 153,
"nodes": [
{
"id": 48,
"type": "Flux2Scheduler",
"pos": [
-160,
260
],
"size": [
222.3482666015625,
106
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 136
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 138
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
132
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "Flux2Scheduler"
},
"widgets_values": [
20,
1024,
1024
]
},
{
"id": 22,
"type": "BasicGuider",
"pos": [
-160,
70
],
"size": [
222.3482666015625,
46
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 133
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 153
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"slot_index": 0,
"links": [
30
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "BasicGuider"
},
"widgets_values": []
},
{
"id": 45,
"type": "ImageScaleToTotalPixels",
"pos": [
-970,
750
],
"size": [
270,
82
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 128
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
126
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"area",
1
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
-973.1827364834872,
230
],
"size": [
298.1818181818182,
60.429901123046875
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
12,
120,
127
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "VAELoader",
"models": [
{
"name": "flux2-vae.safetensors",
"url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors",
"directory": "vae"
}
]
},
"widgets_values": [
"flux2-vae.safetensors"
]
},
{
"id": 40,
"type": "VAEEncode",
"pos": [
-405.919921875,
880
],
"size": [
140,
46
],
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 122
},
{
"name": "vae",
"type": "VAE",
"link": 120
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
121
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 42,
"type": "LoadImage",
"pos": [
-540,
400
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
123
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"image_flux2_input_ref_image.png",
"image"
]
},
{
"id": 44,
"type": "VAEEncode",
"pos": [
-840,
880
],
"size": [
140,
46
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 126
},
{
"name": "vae",
"type": "VAE",
"link": 127
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
125
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 41,
"type": "ImageScaleToTotalPixels",
"pos": [
-535.919921875,
750
],
"size": [
270,
82
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 123
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
122
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"area",
1
]
},
{
"id": 26,
"type": "FluxGuidance",
"pos": [
-520,
220
],
"size": [
317.4000244140625,
58
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
144
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
4
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 50,
"type": "PrimitiveNode",
"pos": [
-160,
470
],
"size": [
210,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"widget": {
"name": "width"
},
"links": [
135,
136
]
}
],
"title": "width",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
1024,
"fixed"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 51,
"type": "PrimitiveNode",
"pos": [
-160,
590
],
"size": [
210,
82
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"widget": {
"name": "height"
},
"links": [
137,
138
]
}
],
"title": "height",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
1024,
"fixed"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
170,
740
],
"size": [
210,
46
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
9
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 47,
"type": "EmptyFlux2LatentImage",
"pos": [
110,
500
],
"size": [
270,
106
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 135
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 137
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
131
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "EmptyFlux2LatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
90,
-40
],
"size": [
272.3617858886719,
124.53733825683594
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 37
},
{
"name": "guider",
"type": "GUIDER",
"link": 30
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 19
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 132
},
{
"name": "latent_image",
"type": "LATENT",
"link": 131
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"slot_index": 0,
"links": [
24
]
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "SamplerCustomAdvanced"
},
"widgets_values": []
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
-160,
160
],
"size": [
222.3482666015625,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 46,
"type": "LoadImage",
"pos": [
-970,
390
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
128
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"image_flux2_input_Illustration.png",
"image"
]
},
{
"id": 43,
"type": "ReferenceLatent",
"pos": [
-910,
920
],
"size": [
197.712890625,
46
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 144
},
{
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 125
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
145
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ReferenceLatent"
},
"widgets_values": []
},
{
"id": 39,
"type": "ReferenceLatent",
"pos": [
-463.6328125,
920
],
"size": [
197.712890625,
46
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 145
},
{
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 121
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
153
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ReferenceLatent"
},
"widgets_values": []
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-630,
-50
],
"size": [
430,
230
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 117
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
41
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Apply the design from Reference Image 1 onto objects in Reference Image 2.\n"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 12,
"type": "UNETLoader",
"pos": [
-973.1827364834872,
-42
],
"size": [
298.1818181818182,
82
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
133
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "UNETLoader",
"models": [
{
"name": "flux2_dev_fp8mixed.safetensors",
"url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/diffusion_models/flux2_dev_fp8mixed.safetensors",
"directory": "diffusion_models"
}
]
},
"widgets_values": [
"flux2_dev_fp8mixed.safetensors",
"default"
]
},
{
"id": 60,
"type": "Note",
"pos": [
-980,
1070
],
"size": [
490,
130
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Unbypass (CTRL-B) the ReferenceLatent nodes to give ref images.\n\nIf you want to add more reference images, you can add multiple reference images by following the pattern.\n\nIf you don't want any reference image, just select all ReferenceLatent nodes and then use CTRL-B to bypass them, turning the workflow into a Text to Image workflow."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 25,
"type": "RandomNoise",
"pos": [
-160,
-50
],
"size": [
222.3482666015625,
82
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
120839687766682,
"randomize"
]
},
{
"id": 9,
"type": "SaveImage",
"pos": [
410,
-90
],
"size": [
985.3012084960938,
1060.3828125
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71"
},
"widgets_values": [
"Flux2"
]
},
{
"id": 38,
"type": "CLIPLoader",
"pos": [
-973.1827364834872,
82
],
"size": [
298.1818181818182,
106
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
117
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "CLIPLoader",
"models": [
{
"name": "mistral_3_small_flux2_fp8.safetensors",
"url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/text_encoders/mistral_3_small_flux2_fp8.safetensors",
"directory": "text_encoders"
}
]
},
"widgets_values": [
"mistral_3_small_flux2_fp8.safetensors",
"flux2",
"default"
]
},
{
"id": 61,
"type": "MarkdownNote",
"pos": [
-1400,
-90
],
"size": [
400,
450
],
"flags": {
"collapsed": false
},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Model links",
"properties": {},
"widgets_values": [
"We are using quantized weights in this workflow, the original flux 2 repo is [here](https://huggingface.co/black-forest-labs/FLUX.2-dev/)\n\n## Report issue\n\nIf you found any issues when running this workflow, [report template issue here](https://github.com/Comfy-Org/workflow_templates/issues)\n\n\n## Model links\n\n**text_encoders**\n\n- [mistral_3_small_flux2_fp8.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/text_encoders/mistral_3_small_flux2_fp8.safetensors)\n- [mistral_3_small_flux2_bf16.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/text_encoders/mistral_3_small_flux2_bf16.safetensors)\n\n**diffusion_models**\n\n- [flux2_dev_fp8mixed.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/diffusion_models/flux2_dev_fp8mixed.safetensors)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)\n\n\nModel Storage Location\n\n```\n๐Ÿ“‚ ComfyUI/\nโ”œโ”€โ”€ ๐Ÿ“‚ models/\nโ”‚ โ”œโ”€โ”€ ๐Ÿ“‚ text_encoders/\nโ”‚ โ”‚ โ””โ”€โ”€ mistral_3_small_flux2_fp8.safetensors\nโ”‚ โ”‚ โ””โ”€โ”€ mistral_3_small_flux2_bf16.safetensors\nโ”‚ โ”œโ”€โ”€ ๐Ÿ“‚ diffusion_models/\nโ”‚ โ”‚ โ””โ”€โ”€ flux2_dev_fp8mixed.safetensors\nโ”‚ โ””โ”€โ”€ ๐Ÿ“‚ vae/\nโ”‚ โ””โ”€โ”€ flux2-vae.safetensors\n```\n"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
24,
13,
0,
8,
0,
"LATENT"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
41,
6,
0,
26,
0,
"CONDITIONING"
],
[
117,
38,
0,
6,
0,
"CLIP"
],
[
120,
10,
0,
40,
1,
"VAE"
],
[
121,
40,
0,
39,
1,
"LATENT"
],
[
122,
41,
0,
40,
0,
"IMAGE"
],
[
123,
42,
0,
41,
0,
"IMAGE"
],
[
125,
44,
0,
43,
1,
"LATENT"
],
[
126,
45,
0,
44,
0,
"IMAGE"
],
[
127,
10,
0,
44,
1,
"VAE"
],
[
128,
46,
0,
45,
0,
"IMAGE"
],
[
131,
47,
0,
13,
4,
"LATENT"
],
[
132,
48,
0,
13,
3,
"SIGMAS"
],
[
133,
12,
0,
22,
0,
"MODEL"
],
[
135,
50,
0,
47,
0,
"INT"
],
[
136,
50,
0,
48,
0,
"INT"
],
[
137,
51,
0,
47,
1,
"INT"
],
[
138,
51,
0,
48,
1,
"INT"
],
[
144,
26,
0,
43,
0,
"CONDITIONING"
],
[
145,
43,
0,
39,
0,
"CONDITIONING"
],
[
153,
39,
0,
22,
1,
"CONDITIONING"
]
],
"groups": [
{
"id": 1,
"title": "Step 1 - Upload models",
"bounding": [
-980,
-120,
318.18181818181813,
416.0299011230469
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Custom sampler",
"bounding": [
-170,
-120,
558.5359191894531,
501.6
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Image size",
"bounding": [
-170,
400,
560,
285.6
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Step2 - Prompt",
"bounding": [
-640,
-120,
450,
420
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Reference images (up to 10)",
"bounding": [
-980,
320,
790,
700
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5129938563229115,
"offset": [
2458.6957654431176,
746.4168139566004
]
},
"frontendVersion": "1.30.6",
"groupNodes": {},
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"workflowRendererVersion": "LG"
},
"version": 0.4
}