Add IPAdapter workflow

This commit is contained in:
moshferatu 2023-11-15 14:11:39 -08:00
parent 1f6b4dc9ea
commit 5792e67e01
3 changed files with 583 additions and 5 deletions

View File

@ -4,6 +4,10 @@
![Text to Image](./text-to-image.png)
## IPAdapter
![ip-adapter](./ip-adapter.png)
## LoRA
![LoRA](./lora.png)
@ -16,10 +20,10 @@
![Upscale](./upscale.png)
## Text to Image with Refiner
![Text to Image with Refiner](./text-to-image-with-refiner.png)
## Face Swap
![Face Swap Image](./face-swap.png)
## Text to Image with Refiner
![Text to Image with Refiner](./text-to-image-with-refiner.png)

574
ip-adapter.json Normal file
View File

@ -0,0 +1,574 @@
{
"last_node_id": 12,
"last_link_id": 15,
"nodes": [
{
"id": 8,
"type": "CLIPTextEncode",
"pos": [
990,
730
],
"size": {
"0": 210,
"1": 120
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 6
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
9
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
990,
560
],
"size": {
"0": 210,
"1": 120
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
8
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"nosferatu wearing (black:1.1) headphones, high quality"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 4,
"type": "CLIPVisionLoader",
"pos": [
630,
480
],
"size": {
"0": 300,
"1": 60
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
2
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"sd_1.5_clip.safetensors"
]
},
{
"id": 6,
"type": "LoadImage",
"pos": [
380,
370
],
"size": {
"0": 220,
"1": 320
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"moshferatu.jpg",
"image"
]
},
{
"id": 11,
"type": "VAEDecode",
"pos": [
1640,
480
],
"size": {
"0": 140,
"1": 50
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 11
},
{
"name": "vae",
"type": "VAE",
"link": 15
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 5,
"type": "IPAdapterApply",
"pos": [
990,
330
],
"size": {
"0": 210,
"1": 186
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": 1
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 2
},
{
"name": "image",
"type": "IMAGE",
"link": 3
},
{
"name": "model",
"type": "MODEL",
"link": 4
},
{
"name": "attn_mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
7
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterApply"
},
"widgets_values": [
0.7000000000000001,
0.33,
"original"
]
},
{
"id": 9,
"type": "KSampler",
"pos": [
1270,
480
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 7
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 8
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 9
},
{
"name": "latent_image",
"type": "LATENT",
"link": 10
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
11
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
304808657853555,
"randomize",
30,
6,
"dpmpp_2m",
"karras",
1
]
},
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [
630,
590
],
"size": {
"0": 300,
"1": 100
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
4
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
5,
6
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
15
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"protovisionXL.safetensors"
]
},
{
"id": 12,
"type": "SaveImage",
"pos": [
1641,
579
],
"size": {
"0": 400,
"1": 450
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 13
}
],
"properties": {},
"widgets_values": [
"IPAdapter"
]
},
{
"id": 3,
"type": "IPAdapterModelLoader",
"pos": [
630,
370
],
"size": {
"0": 300,
"1": 60
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "IPADAPTER",
"type": "IPADAPTER",
"links": [
1
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterModelLoader"
},
"widgets_values": [
"ip-adapter-plus.bin"
]
},
{
"id": 10,
"type": "EmptyLatentImage",
"pos": [
990,
900
],
"size": {
"0": 210,
"1": 110
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
10
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
}
],
"links": [
[
1,
3,
0,
5,
0,
"IPADAPTER"
],
[
2,
4,
0,
5,
1,
"CLIP_VISION"
],
[
3,
6,
0,
5,
2,
"IMAGE"
],
[
4,
1,
0,
5,
3,
"MODEL"
],
[
5,
1,
1,
7,
0,
"CLIP"
],
[
6,
1,
1,
8,
0,
"CLIP"
],
[
7,
5,
0,
9,
0,
"MODEL"
],
[
8,
7,
0,
9,
1,
"CONDITIONING"
],
[
9,
8,
0,
9,
2,
"CONDITIONING"
],
[
10,
10,
0,
9,
3,
"LATENT"
],
[
11,
9,
0,
11,
0,
"LATENT"
],
[
13,
11,
0,
12,
0,
"IMAGE"
],
[
15,
1,
2,
11,
1,
"VAE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

BIN
ip-adapter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 KiB