diff --git a/ipadapter/README.md b/ipadapter/README.md index c34d8c3..ba82cbb 100644 --- a/ipadapter/README.md +++ b/ipadapter/README.md @@ -10,6 +10,10 @@ Credit to Matteo Spinelli (@cubiq) for the original workflows. ![IPAdapter Style Transfer](./ipadapter-style-transfer.png) +## Style Transfer (Precise) + +![IPAdapter Style Transfer Precise](./ipadapter-style-transfer-precise.png) + ## Style Image ![IPAdapter Style Image](./ipadapter-style-image.png) diff --git a/ipadapter/ipadapter-style-transfer-precise.json b/ipadapter/ipadapter-style-transfer-precise.json new file mode 100644 index 0000000..283e7b2 --- /dev/null +++ b/ipadapter/ipadapter-style-transfer-precise.json @@ -0,0 +1,574 @@ +{ + "last_node_id": 14, + "last_link_id": 22, + "nodes": [ + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 440, + 880 + ], + "size": { + "0": 425.27801513671875, + "1": 180.6060791015625 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "blurry, noisy, messy, lowres, jpeg, artifacts, ill, distorted, malformed" + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 1330, + 540 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 18 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 575303934252440, + "randomize", + 20, + 3.5, + "dpmpp_2m_sde", + "karras", + 1 + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1380, + 870 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 9 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 10, + "type": "IPAdapterUnifiedLoader", + "pos": [ + 500, + 150 + ], + "size": { + "0": 315, + "1": 78 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 11 + }, + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": null + } + ], + "outputs": [ + { + "name": "model", + "type": "MODEL", + "links": [ + 17 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "ipadapter", + "type": "IPADAPTER", + "links": [ + 19 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "IPAdapterUnifiedLoader" + }, + "widgets_values": [ + "PLUS (high strength)" + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 80, + 510 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 11 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "Art Universe v3.0.safetensors" + ] + }, + { + "id": 12, + "type": "LoadImage", + "pos": [ + 500, + 280 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 22 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "ComfyUI_31823_.png", + "image" + ] + }, + { + "id": 13, + "type": "IPAdapterMS", + "pos": [ + 870, + 190 + ], + "size": { + "0": 400, + "1": 364 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 17 + }, + { + "name": "ipadapter", + "type": "IPADAPTER", + "link": 19 + }, + { + "name": "image", + "type": "IMAGE", + "link": 22 + }, + { + "name": "image_negative", + "type": "IMAGE", + "link": null + }, + { + "name": "attn_mask", + "type": "MASK", + "link": null + }, + { + "name": "clip_vision", + "type": "CLIP_VISION", + "link": null + }, + { + "name": "insightface", + "type": "INSIGHTFACE", + "link": null + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 18 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IPAdapterMS" + }, + "widgets_values": [ + 0.8, + 1, + "style transfer precise", + "concat", + 0, + 1, + "V only", + "3:3, 6:1" + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 440, + 650 + ], + "size": { + "0": 422.84503173828125, + "1": 164.31304931640625 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 4 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "closeup, glowing fluorescent warhammer demon, technicolor, high quality" + ] + }, + { + "id": 9, + "type": "SaveImage", + "pos": [ + 1680, + 409 + ], + "size": { + "0": 646, + "1": 652 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 9 + } + ], + "properties": {}, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 930, + 930 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 30 + ] + } + ], + "links": [ + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 9, + 8, + 0, + 9, + 0, + "IMAGE" + ], + [ + 11, + 4, + 0, + 10, + 0, + "MODEL" + ], + [ + 17, + 10, + 0, + 13, + 0, + "MODEL" + ], + [ + 18, + 13, + 0, + 3, + 0, + "MODEL" + ], + [ + 19, + 10, + 1, + 13, + 1, + "IPADAPTER" + ], + [ + 22, + 12, + 0, + 13, + 2, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.9229599817706677, + "offset": { + "0": 18.61521545852602, + "1": 85.96882781995112 + } + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/ipadapter/ipadapter-style-transfer-precise.png b/ipadapter/ipadapter-style-transfer-precise.png new file mode 100644 index 0000000..356b0f5 Binary files /dev/null and b/ipadapter/ipadapter-style-transfer-precise.png differ