Skip to content

Instantly share code, notes, and snippets.

@steffenr
Created November 6, 2023 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steffenr/82c1a2aa3b75b7e42473cc9f33aaedd5 to your computer and use it in GitHub Desktop.
Save steffenr/82c1a2aa3b75b7e42473cc9f33aaedd5 to your computer and use it in GitHub Desktop.
Simple IP-Adapter Face workflow with SDXL model
{
"last_node_id": 18,
"last_link_id": 29,
"nodes": [
{
"id": 10,
"type": "EmptyLatentImage",
"pos": [
790,
390
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
15
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 11,
"type": "VAEDecode",
"pos": [
1330,
470
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 17
},
{
"name": "vae",
"type": "VAE",
"link": 18,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
10
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 12,
"type": "SaveImage",
"pos": [
1600,
250
],
"size": {
"0": 320,
"1": 270
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 10
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 17,
"type": "IPAdapterModelLoader",
"pos": [
480,
-380
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IPADAPTER",
"type": "IPADAPTER",
"links": [
25
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterModelLoader"
},
"widgets_values": [
"ip-adapter-plus-face_sdxl_vit-h.safetensors"
]
},
{
"id": 7,
"type": "CheckpointLoaderSimple",
"pos": [
310,
-80
],
"size": {
"0": 380,
"1": 100
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
1,
2
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
16
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"SDXL/realvisxlV20_v20Bakedvae.safetensors"
]
},
{
"id": 8,
"type": "CLIPTextEncode",
"pos": [
770,
120
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
14
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"ugly, blurry, cartoon, illustration"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 3,
"type": "CLIPVisionLoader",
"pos": [
390,
-220
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
26
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"1.5/model.safetensors"
]
},
{
"id": 9,
"type": "CLIPTextEncode",
"pos": [
820,
-160
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 2
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
23
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A (smiling:1.4) girl in a bar"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 13,
"type": "KSampler (Efficient)",
"pos": [
1370,
-410
],
"size": [
330,
560
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 29
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 23
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 14
},
{
"name": "latent_image",
"type": "LATENT",
"link": 15
},
{
"name": "optional_vae",
"type": "VAE",
"link": 16
},
{
"name": "script",
"type": "SCRIPT",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": null,
"shape": 3
},
{
"name": "CONDITIONING+",
"type": "CONDITIONING",
"links": null,
"shape": 3
},
{
"name": "CONDITIONING-",
"type": "CONDITIONING",
"links": null,
"shape": 3
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
17
],
"shape": 3,
"slot_index": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
18
],
"shape": 3,
"slot_index": 4
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSampler (Efficient)"
},
"widgets_values": [
792170538005998,
null,
30,
6,
"dpmpp_2m_sde",
"karras",
1,
"auto",
"true"
],
"color": "#2a363b",
"bgcolor": "#3f5159",
"shape": 1
},
{
"id": 18,
"type": "IPAdapterApply",
"pos": [
900,
-430
],
"size": {
"0": 315,
"1": 142
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": 25
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 26
},
{
"name": "image",
"type": "IMAGE",
"link": 27
},
{
"name": "model",
"type": "MODEL",
"link": 28
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "IPAdapterApply"
},
"widgets_values": [
0.75,
0
]
},
{
"id": 1,
"type": "LoadImage",
"pos": [
300,
60
],
"size": [
330,
310
],
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
27
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"kai_profile_new.jpg",
"image"
]
}
],
"links": [
[
1,
7,
1,
8,
0,
"CLIP"
],
[
2,
7,
1,
9,
0,
"CLIP"
],
[
10,
11,
0,
12,
0,
"IMAGE"
],
[
14,
8,
0,
13,
2,
"CONDITIONING"
],
[
15,
10,
0,
13,
3,
"LATENT"
],
[
16,
7,
2,
13,
4,
"VAE"
],
[
17,
13,
3,
11,
0,
"LATENT"
],
[
18,
13,
4,
11,
1,
"VAE"
],
[
23,
9,
0,
13,
1,
"CONDITIONING"
],
[
25,
17,
0,
18,
0,
"IPADAPTER"
],
[
26,
3,
0,
18,
1,
"CLIP_VISION"
],
[
27,
1,
0,
18,
2,
"IMAGE"
],
[
28,
7,
0,
18,
3,
"MODEL"
],
[
29,
18,
0,
13,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment