flux_test_loras / workflows /img2img.json
daswer123's picture
Upload 8 files
3350321 verified
{
"last_node_id": 21,
"last_link_id": 24,
"nodes": [
{
"id": 1,
"type": "DualCLIPLoaderGGUF",
"pos": {
"0": 74,
"1": 222,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 315,
"1": 106
},
"flags": {
"pinned": true
},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
14
],
"shape": 3
}
],
"title": "Dual CLIP Loader (GGUF)",
"properties": {
"Node name for S&R": "DualCLIPLoaderGGUF"
},
"widgets_values": [
"clip_l_2.safetensors",
"t5xxl_Q8.gguf",
"flux"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 2,
"type": "UnetLoaderGGUF",
"pos": {
"0": 74,
"1": 365,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 314.3998107910156,
"1": 60.6082763671875
},
"flags": {
"pinned": true
},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
16,
24
],
"slot_index": 0,
"shape": 3
}
],
"title": "Unet Model Loader (GGUF)",
"properties": {
"Node name for S&R": "UnetLoaderGGUF"
},
"widgets_values": [
"flux1-dev-Q8_0.gguf"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 15,
"type": "BasicScheduler",
"pos": {
"0": 820,
"1": 612,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 268.8857421875,
"1": 106
},
"flags": {
"pinned": true
},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 16
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
15
],
"slot_index": 0,
"shape": 3
}
],
"title": "Scheduler",
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"normal",
25,
0.85
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 14,
"type": "KSamplerSelect",
"pos": {
"0": 820,
"1": 520,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 268.5687561035156,
"1": 58
},
"flags": {
"pinned": true
},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
11
],
"slot_index": 0,
"shape": 3
}
],
"title": "Sampler",
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 13,
"type": "RandomNoise",
"pos": {
"0": 820,
"1": 405,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 268.8857421875,
"1": 82
},
"flags": {
"pinned": true
},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"title": "Seed",
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
600359149251474,
"randomize"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 20,
"type": "ImageScaleToTotalPixels",
"pos": {
"0": 820,
"1": 292,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 269.872314453125,
"1": 82
},
"flags": {
"pinned": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 23
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
22
],
"shape": 3
}
],
"title": "Input Image Scale",
"properties": {
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"lanczos",
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 9,
"type": "FluxGuidance",
"pos": {
"0": 820,
"1": 201,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 269.5687561035156,
"1": 58
},
"flags": {
"pinned": true
},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 13
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
5
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
2
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 18,
"type": "SaveImage",
"pos": {
"0": 1095,
"1": 202,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 504.0967712402344,
"1": 486.4903564453125
},
"flags": {
"pinned": true
},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 19
}
],
"outputs": [],
"title": "Saved image",
"properties": {},
"widgets_values": [
"ComfyUI"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 21,
"type": "LoadImage",
"pos": {
"0": 654,
"1": 751,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 432.3708801269531,
"1": 314
},
"flags": {
"pinned": true
},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
23
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"title": "Input Image",
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"sample-input-image.jpg",
"image"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 8,
"type": "VAEDecode",
"pos": {
"0": 686,
"1": 191,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true,
"pinned": true
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 8
},
{
"name": "vae",
"type": "VAE",
"link": 2
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
19
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 19,
"type": "VAEEncode",
"pos": {
"0": 549,
"1": 192,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true,
"pinned": true
},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 22
},
{
"name": "vae",
"type": "VAE",
"link": 21
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
20
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 17,
"type": "SamplerCustomAdvanced",
"pos": {
"0": 382,
"1": 192,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 355.20001220703125,
"1": 106
},
"flags": {
"collapsed": true,
"pinned": true
},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 10
},
{
"name": "guider",
"type": "GUIDER",
"link": 9
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 11
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 15
},
{
"name": "latent_image",
"type": "LATENT",
"link": 20
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
8
],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"shape": 3
}
],
"title": "SamplerAdvanced",
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 11,
"type": "CLIPTextEncode",
"pos": {
"0": 1095,
"1": 721,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 507.1328125,
"1": 340.8622741699219
},
"flags": {
"pinned": true
},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 14
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
13
],
"shape": 3
}
],
"title": "Prompt",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A Victorian closeup a Scottish woman with a very shocked face and open wide mouth is giving a lecture."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 6,
"type": "BasicGuider",
"pos": {
"0": 248,
"1": 192,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {
"collapsed": true,
"pinned": true
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 24
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 5
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
9
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 4,
"type": "VAELoader",
"pos": {
"0": 75,
"1": 461,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 315,
"1": 58
},
"flags": {
"pinned": true
},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
2,
21
],
"slot_index": 0,
"shape": 3
}
],
"title": "VAE Loader",
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux-vae.safetensors"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 5,
"type": "Note",
"pos": {
"0": 397,
"1": 224,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 420.7815856933594,
"1": 493.9324035644531
},
"flags": {
"pinned": true
},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
" --== SIMPLE FLUX1.D WITH IMG_TO_IMG v2 GGUF ==--\n\n\nThis workflow is 2x faster than original workflow from XLabs for lora.\nNvidia RTX 3090 - XLabs workflow 2.2s/it, this workflow 1.1s/it\n\nCLIP T5xx - GGUF Q8 (default), fp16 - Q8 very close to fp16. Fp16 is giving sometimes slighty better results but not always, fp8 verion is much worse than fp16.\n\nMODEL - GGUF Q8 (default), Q4K, Q8 is extremely close to fp16, fp8 has worse quality.\nIf you need to use 4-bit use Q4K (quality closer to fp16) than nf4 but Q4 is slower around 35% than nf4.\n\n------------------------------------------------------------------------\n\n1. Install Manager\nhttps://github.com/ltdrdata/ComfyUI-Manager\nLater under manager run \"Install Missing Custom Nodes\" and later also \"Update All\".\n\n2. Download files.\n CLIP\nhttps://huggingface.co/mirek190/Flux1_dev_GGUF/tree/main/clip \n MODELS\nhttps://huggingface.co/mirek190/Flux1_dev_GGUF/tree/main/unet \n VAE\nhttps://huggingface.co/mirek190/Flux1_dev_GGUF/tree/main/vae\n\n3. Put files to the correct locations.\nCLIP files to ComfyUI\\models\\clip\nMODELS files to ComfyUI\\models\\unet\nVAE file to ComfyUI\\models\\vae\n\nUsually lora needs trigger word! Except are realism or mjv6"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
2,
4,
0,
8,
1,
"VAE"
],
[
5,
9,
0,
6,
1,
"CONDITIONING"
],
[
8,
17,
0,
8,
0,
"LATENT"
],
[
9,
6,
0,
17,
1,
"GUIDER"
],
[
10,
13,
0,
17,
0,
"NOISE"
],
[
11,
14,
0,
17,
2,
"SAMPLER"
],
[
13,
11,
0,
9,
0,
"CONDITIONING"
],
[
14,
1,
0,
11,
0,
"CLIP"
],
[
15,
15,
0,
17,
3,
"SIGMAS"
],
[
16,
2,
0,
15,
0,
"MODEL"
],
[
19,
8,
0,
18,
0,
"IMAGE"
],
[
20,
19,
0,
17,
4,
"LATENT"
],
[
21,
4,
0,
19,
1,
"VAE"
],
[
22,
20,
0,
19,
0,
"IMAGE"
],
[
23,
21,
0,
20,
0,
"IMAGE"
],
[
24,
2,
0,
6,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
-51.91171118388738,
14.912934453607884
]
}
},
"version": 0.4
}