Image-to-Image
Diffusers
English
flux-ip-adapter-v2 / ip_adapter_workflow.json
stazizov's picture
Upload ip_adapter_workflow.json
84ce7a2 verified
{
"last_node_id": 54,
"last_link_id": 118,
"nodes": [
{
"id": 4,
"type": "DualCLIPLoader",
"pos": [
-308,
278
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
2,
27
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 32,
"type": "LoadFluxIPAdapter",
"pos": [
-302,
118
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "ipadapterFlux",
"type": "IP_ADAPTER_FLUX",
"links": [
65
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadFluxIPAdapter"
},
"widgets_values": [
"ip_adapter.safetensors",
"clip-vit-large-patch14/model.safetensors",
"CPU"
]
},
{
"id": 10,
"type": "UNETLoader",
"pos": [
-305,
-22
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
61
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux1-dev-fp8.safetensors",
"fp8_e4m3fn"
]
},
{
"id": 8,
"type": "VAELoader",
"pos": [
-307,
436
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
59
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 19,
"type": "CLIPTextEncodeFlux",
"pos": [
86,
344
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 27,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
26
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncodeFlux"
},
"widgets_values": [
"",
"",
3.5
]
},
{
"id": 6,
"type": "EmptyLatentImage",
"pos": [
87,
594
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
86
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 50,
"type": "ImageBatchMulti",
"pos": [
-303,
-173
],
"size": {
"0": 210,
"1": 102
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 111
},
{
"name": "image_2",
"type": "IMAGE",
"link": 113
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
101
],
"slot_index": 0,
"shape": 3
}
],
"properties": {},
"widgets_values": [
2,
null
]
},
{
"id": 53,
"type": "PreviewImage",
"pos": [
-295,
-472
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 117
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 54,
"type": "PreviewImage",
"pos": [
-304,
542
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 118
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 3,
"type": "XlabsSampler",
"pos": [
542,
54
],
"size": {
"0": 291.4068298339844,
"1": 534.7640991210938
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 62,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 18
},
{
"name": "neg_conditioning",
"type": "CONDITIONING",
"link": 26
},
{
"name": "latent_image",
"type": "LATENT",
"link": 86
},
{
"name": "controlnet_condition",
"type": "ControlNetCondition",
"link": null
}
],
"outputs": [
{
"name": "latent",
"type": "LATENT",
"links": [
6
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "XlabsSampler"
},
"widgets_values": [
1101861597943838,
"randomize",
25,
26,
1,
0
]
},
{
"id": 7,
"type": "VAEDecode",
"pos": [
622,
-32
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 6,
"slot_index": 0
},
{
"name": "vae",
"type": "VAE",
"link": 59
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
76
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 48,
"type": "ImageResizeKJ",
"pos": [
-555,
-172
],
"size": {
"0": 210,
"1": 238
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 116
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"type": "INT",
"link": null,
"widget": {
"name": "width_input"
}
},
{
"name": "height_input",
"type": "INT",
"link": null,
"widget": {
"name": "height_input"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
111,
117
],
"slot_index": 0,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
false,
2,
0,
0,
"center"
]
},
{
"id": 52,
"type": "ImageResizeKJ",
"pos": [
-558,
247
],
"size": {
"0": 210,
"1": 238
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 103
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"type": "INT",
"link": null,
"widget": {
"name": "width_input"
}
},
{
"name": "height_input",
"type": "INT",
"link": null,
"widget": {
"name": "height_input"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
113,
118
],
"slot_index": 0,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
false,
2,
0,
0,
"disabled"
]
},
{
"id": 36,
"type": "PreviewImage",
"pos": [
882,
-38
],
"size": {
"0": 840,
"1": 860
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 76,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 27,
"type": "ApplyFluxIPAdapter",
"pos": [
108,
-86
],
"size": {
"0": 210,
"1": 98
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 61,
"slot_index": 0
},
{
"name": "ip_adapter_flux",
"type": "IP_ADAPTER_FLUX",
"link": 65
},
{
"name": "image",
"type": "IMAGE",
"link": 101,
"slot_index": 2
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
62
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ApplyFluxIPAdapter"
},
"widgets_values": [
1
]
},
{
"id": 51,
"type": "LoadImage",
"pos": [
-829,
243
],
"size": {
"0": 260,
"1": 340
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
103
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"ComfyUI_temp_hbnuk_00206_.png",
"image"
]
},
{
"id": 47,
"type": "LoadImage",
"pos": [
-830,
-173
],
"size": {
"0": 260,
"1": 340
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
116
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Mona_Lisa,_by_Leonardo_da_Vinci,_from_C2RMF_retouched.jpg",
"image"
]
},
{
"id": 5,
"type": "CLIPTextEncodeFlux",
"pos": [
93,
73
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 2,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
18
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncodeFlux"
},
"widgets_values": [
"oil portrait of a women",
"oil portrait of a women",
3.5
]
}
],
"links": [
[
2,
4,
0,
5,
0,
"CLIP"
],
[
6,
3,
0,
7,
0,
"LATENT"
],
[
18,
5,
0,
3,
1,
"CONDITIONING"
],
[
26,
19,
0,
3,
2,
"CONDITIONING"
],
[
27,
4,
0,
19,
0,
"CLIP"
],
[
59,
8,
0,
7,
1,
"VAE"
],
[
61,
10,
0,
27,
0,
"MODEL"
],
[
62,
27,
0,
3,
0,
"MODEL"
],
[
65,
32,
0,
27,
1,
"IP_ADAPTER_FLUX"
],
[
76,
7,
0,
36,
0,
"IMAGE"
],
[
86,
6,
0,
3,
3,
"LATENT"
],
[
101,
50,
0,
27,
2,
"IMAGE"
],
[
103,
51,
0,
52,
0,
"IMAGE"
],
[
111,
48,
0,
50,
0,
"IMAGE"
],
[
113,
52,
0,
50,
1,
"IMAGE"
],
[
116,
47,
0,
48,
0,
"IMAGE"
],
[
117,
48,
0,
53,
0,
"IMAGE"
],
[
118,
52,
0,
54,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5054470284993017,
"offset": {
"0": 882.032958984375,
"1": 595.8410034179688
}
}
},
"version": 0.4
}