InvokeAI/docs/workflows/FaceOff_FaceScale2x.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

1395 lines
42 KiB
JSON
Raw Normal View History

Nodes-FaceTools (FaceIdentifier, FaceOff, FaceMask) (#4576) * node-FaceTools * Added more documentation for facetools * invert FaceMask masking - FaceMask had face protected and surroundings change by default (face white, else black) - Change to how FaceOff/others work: the opposite where surroundings protected, face changes by default (face black, else white) * reflect changed facemask behaviour in docs * add FaceOff+FaceMask workflows - Add FaceOff and FaceMask example workflows to docs/workflows * add FaceMask+FaceOff workflows to exampleworkflows.md - used invokeai URL paths mimicking other workflow URLs, hopefully they translate when/if merged * inheriting, typehints, black/isort/flake8 - modified FaceMask and FaceOff output classes to inherit base image, height, width from ImageOutput - Added type annotations to helper functions, required some reworking of code's stored data * remove credit header - Was in my personal/repo copy, don't think it's necessary if merged. * Optionals & image declaration duplication - Added Optional[] to optional outputs and types - removed duplication of image = context.services.images.get_pil_images(self.image.image_name) declaration - Still need to find a way to deal with mask_pil None typing errors * face(facetools): fix typing issues, add validation, clean up structure * feat(facetools): update field descriptions * Update FaceOff_FaceScale2x.json - update FaceOff workflow after Bounded Image field removed in place of inheriting Image out field from ImageOutput * feat(facetools): pass through original image on facemask if invalid face ids requested * feat(facetools): tidy variable names & fn calls * feat(facetools): bundle inter font, draw ids with it Inter is a SIL Open Font license. The license is included and is fully permissive. Inter is the same font the UI and commercial application already uses. Only the "regular" version is bundled. * chore(facetools): isort & fix mypy issues * docs(facetools): update and format docs --------- Co-authored-by: Millun Atluri <millun.atluri@gmail.com> Co-authored-by: Millun Atluri <Millu@users.noreply.github.com> Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
2023-09-29 07:54:13 +00:00
{
"name": "FaceOff_FaceScale2x",
"author": "YMGenesis",
"description": "21 September 2023\n\nPlace an image with recognizable face(s) in Image Primitive, and write what sort of new face you want in the top prompt text box. The face (and mask) will be scaled by 2 factor to allow for more details when generating. It'll then be downscaled by half before being pasted back onto the original image. See Notes for more info.",
"version": "1.0",
"contact": "YMGenesis on InvokeAI Discord",
"tags": "faceoff, facetools",
"notes": "If you want to choose one face out of many, run the original image through FaceIdentifier and view its output to get the FaceID you want to change. Then, enter it into the \"Face Id\" field on FaceOff.\n\nTo resemble the original face more when doing small touchups, change Denoise Start on Denoise Latents to a number closer to 1 (ex: 0.5-0.9). To create something fairly new, Denoise Start should be around 0.2-0.5. When using a regular model, anything around 0.2 and below might not create a face, but a new \"image\" inside the face area instead. Use an inpaint model in that case.\n\nAdjust X&Y Offsets on FaceOff to adjust the shape of the mask along those axes. Adjust Padding to zoom the bounding box out (positive integers) and in (negative integers). Zooming out will give more context to the diffusion process, resulting in a face more likely to exist in that image.",
"exposedFields": [],
"meta": {
"version": "1.0.0"
},
"nodes": [
{
"id": "c9897be0-7f59-4388-816d-86cb72cc4036",
"type": "invocation",
"data": {
"id": "c9897be0-7f59-4388-816d-86cb72cc4036",
"type": "main_model_loader",
"inputs": {
"model": {
"id": "e3c5384f-3b73-45c4-bdd0-9f394819f33d",
"name": "model",
"type": "MainModelField",
"fieldKind": "input",
"label": "",
"value": {
"model_name": "stable-diffusion-v1-5",
"base_model": "sd-1",
"model_type": "main"
}
}
},
"outputs": {
"unet": {
"id": "e578c176-1de1-4e36-bfc0-771f60d615da",
"name": "unet",
"type": "UNetField",
"fieldKind": "output"
},
"clip": {
"id": "54a97800-72ac-4951-94e5-2711ac139a07",
"name": "clip",
"type": "ClipField",
"fieldKind": "output"
},
"vae": {
"id": "814a8df5-7882-48a2-8ac1-8ff82d7c1b07",
"name": "vae",
"type": "VaeField",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 226,
"position": {
"x": 4625,
"y": 1275
}
},
{
"id": "fb7e72d9-51cb-432a-b511-c6c608d07413",
"type": "invocation",
"data": {
"id": "fb7e72d9-51cb-432a-b511-c6c608d07413",
"type": "compel",
"inputs": {
"prompt": {
"id": "a4f25874-bc29-4900-abef-47701c805132",
"name": "prompt",
"type": "string",
"fieldKind": "input",
"label": "",
"value": ""
},
"clip": {
"id": "6464b46f-fc74-4917-88b0-3fd458fc11f0",
"name": "clip",
"type": "ClipField",
"fieldKind": "input",
"label": ""
}
},
"outputs": {
"conditioning": {
"id": "65bea1c6-e3b6-4120-a546-d93ff5dd7765",
"name": "conditioning",
"type": "ConditioningField",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 259,
"position": {
"x": 5025,
"y": 1275
}
},
{
"id": "7c4e5071-5b76-4d42-b340-68b52c5ded7a",
"type": "invocation",
"data": {
"id": "7c4e5071-5b76-4d42-b340-68b52c5ded7a",
"type": "compel",
"inputs": {
"prompt": {
"id": "fcb313f2-74ab-443d-a8a8-eb5f2a9b5f96",
"name": "prompt",
"type": "string",
"fieldKind": "input",
"label": "",
"value": ""
},
"clip": {
"id": "a278e13b-823a-4dda-96ca-44cf56f994dd",
"name": "clip",
"type": "ClipField",
"fieldKind": "input",
"label": ""
}
},
"outputs": {
"conditioning": {
"id": "3c1f0f11-b8b0-444a-97ad-1cf80acf4bf7",
"name": "conditioning",
"type": "ConditioningField",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 259,
"position": {
"x": 5025,
"y": 1550
}
},
{
"id": "098898c8-7a20-4d78-9363-296d42e3d8da",
"type": "invocation",
"data": {
"id": "098898c8-7a20-4d78-9363-296d42e3d8da",
"type": "noise",
"inputs": {
"seed": {
"id": "9358ec7b-e575-40d9-af22-2d4786ba1aa7",
"name": "seed",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"width": {
"id": "8422b4ba-9d8e-41ac-bf08-1ea826859b46",
"name": "width",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 512
},
"height": {
"id": "2467c79c-302b-4800-9efd-5bca58103322",
"name": "height",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 512
},
"use_cpu": {
"id": "911c827e-a6af-4168-9f6d-cecc732938ad",
"name": "use_cpu",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": true
}
},
"outputs": {
"noise": {
"id": "9db55798-5c98-40f6-9015-56bfa8618f12",
"name": "noise",
"type": "LatentsField",
"fieldKind": "output"
},
"width": {
"id": "bc091210-946e-410e-8c70-e20982dd1ee7",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "4df04a89-43a2-441a-8f15-089350b36ea7",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 388,
"position": {
"x": 5425,
"y": 1525
}
},
{
"id": "3b2ebc7f-251d-4726-b1b8-5331355f8626",
"type": "invocation",
"data": {
"id": "3b2ebc7f-251d-4726-b1b8-5331355f8626",
"type": "l2i",
"inputs": {
"tiled": {
"id": "8265e595-8f76-4615-8b70-3a0fca854cbf",
"name": "tiled",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
},
"fp32": {
"id": "cc2dd2ee-63f6-40e7-937e-d82086685abe",
"name": "fp32",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
},
"latents": {
"id": "fbbab00e-b47f-4f45-801a-a719873429ca",
"name": "latents",
"type": "LatentsField",
"fieldKind": "input",
"label": ""
},
"vae": {
"id": "476e6075-c62d-4d42-afcf-a18e4c4a47fb",
"name": "vae",
"type": "VaeField",
"fieldKind": "input",
"label": ""
}
},
"outputs": {
"image": {
"id": "65086674-a0f7-4d6c-a02e-101010b34d74",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "e32514a9-50d5-423e-95d3-5d9fd460adaa",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "4d6557ec-2967-40ec-bcae-52725ffe766c",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 266,
"position": {
"x": 5825,
"y": 1275
}
},
{
"id": "27dd9fc3-8c6e-4602-8754-e9ca2f478d68",
"type": "invocation",
"data": {
"id": "27dd9fc3-8c6e-4602-8754-e9ca2f478d68",
"type": "rand_int",
"inputs": {
"low": {
"id": "86e06b6e-7c84-40b0-9df2-12f966c3db4d",
"name": "low",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"high": {
"id": "5ee9adcc-d48c-4b9a-951a-6892d234acbc",
"name": "high",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 2147483647
}
},
"outputs": {
"value": {
"id": "b6c69841-ba37-43f0-8904-0026b1caf8ff",
"name": "value",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": false,
"version": "1.0.0"
},
"width": 320,
"height": 218,
"position": {
"x": 5425,
"y": 1275
}
},
{
"id": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"type": "invocation",
"data": {
"id": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"type": "create_denoise_mask",
"inputs": {
"vae": {
"id": "c7991df7-9f68-4b42-96ce-d795a8e2f714",
"name": "vae",
"type": "VaeField",
"fieldKind": "input",
"label": ""
},
"image": {
"id": "3345a725-f5d5-4f47-9942-b1dfffbe5906",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"mask": {
"id": "41fb1d83-1ca3-4299-b039-fb3b7c90f04e",
"name": "mask",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"tiled": {
"id": "32d8cf55-9910-4e09-8486-1c556a580a2d",
"name": "tiled",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
},
"fp32": {
"id": "e26410cc-54f3-44f2-a81c-a22a8dad6f24",
"name": "fp32",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
}
},
"outputs": {
"denoise_mask": {
"id": "9e1b78c0-5ac6-4632-91e9-831ce328237f",
"name": "denoise_mask",
"type": "DenoiseMaskField",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 316,
"position": {
"x": 5025,
"y": 2175
}
},
{
"id": "3fac3aa6-910a-4a90-a8b6-5b7e1611efba",
"type": "invocation",
"data": {
"id": "3fac3aa6-910a-4a90-a8b6-5b7e1611efba",
"type": "image",
"inputs": {
"image": {
"id": "6efba7ef-b986-4488-84ca-80f23f939ba8",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
}
},
"outputs": {
"image": {
"id": "2512df7a-9981-4186-93ed-aa5405dc3057",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "68d2a9c6-43ff-49aa-989c-db6f5452134f",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "2cb4e505-7e9e-40bd-b402-1e7470167d30",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 225,
"position": {
"x": 4625,
"y": 1525
}
},
{
"id": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"type": "invocation",
"data": {
"id": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"type": "img_paste",
"inputs": {
"base_image": {
"id": "67487235-b302-4636-b8d5-b893bbd56db1",
"name": "base_image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"image": {
"id": "049e467a-2a5f-4017-b330-3ec97519eeef",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"mask": {
"id": "39396a0b-c12d-4384-bd24-f9358ece80b0",
"name": "mask",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"x": {
"id": "39bf90a6-8db3-4b12-8c3c-97a665e0d319",
"name": "x",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"y": {
"id": "7352707c-a833-45b3-83a5-c7b733741a5e",
"name": "y",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"crop": {
"id": "c9225c97-04a8-42f5-9cda-333a9c475abb",
"name": "crop",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
}
},
"outputs": {
"image": {
"id": "a8a59a34-59d6-4edf-972c-d5b189e488a2",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "151b99f7-4736-4d87-b49b-a82d18b70a6f",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "a3b4856e-6136-4d29-a2d5-b8db7d1f7f55",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": true,
"isIntermediate": false,
"useCache": true,
"version": "1.0.1"
},
"width": 320,
"height": 502,
"position": {
"x": 5825,
"y": 2300
}
},
{
"id": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"type": "invocation",
"data": {
"id": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"type": "i2l",
"inputs": {
"image": {
"id": "4aef9c20-51be-47e4-bdc4-d449694d75e1",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"vae": {
"id": "9507adad-df7c-447b-8aad-4d8d6f638420",
"name": "vae",
"type": "VaeField",
"fieldKind": "input",
"label": ""
},
"tiled": {
"id": "2a100779-503a-4fb4-a2b5-507eb0f8328f",
"name": "tiled",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
},
"fp32": {
"id": "3dbf8dbc-4ad4-4451-89f4-99a59ec87453",
"name": "fp32",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
}
},
"outputs": {
"latents": {
"id": "215003b1-64dd-4c97-b5a4-7593d41ffd0e",
"name": "latents",
"type": "LatentsField",
"fieldKind": "output"
},
"width": {
"id": "dc9b2940-79e0-49b2-906c-05417a691175",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "605de93b-c1c7-409f-b059-24918a292bfc",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 323,
"position": {
"x": 5025,
"y": 1825
}
},
{
"id": "233aeb43-980a-4578-bdb7-5488d54d1bbf",
"type": "invocation",
"data": {
"id": "233aeb43-980a-4578-bdb7-5488d54d1bbf",
"type": "img_scale",
"inputs": {
"image": {
"id": "81fe81ca-7532-472f-a1a7-84123ce007cd",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"scale_factor": {
"id": "0c0092eb-90c9-44d3-9388-421071352571",
"name": "scale_factor",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 2
},
"resample_mode": {
"id": "521fa4d3-7117-48e6-82c5-27c83822cf2f",
"name": "resample_mode",
"type": "enum",
"fieldKind": "input",
"label": "",
"value": "bicubic"
}
},
"outputs": {
"image": {
"id": "0110d34f-0cd0-456a-9f76-e6e2feb8e495",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "e9daa3a1-11ff-41f8-bc72-aa96c497ff13",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "0d52aba2-9181-4822-ba97-c947e455c9e2",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "Scale Image (Mask Up)",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 339,
"position": {
"x": 5025,
"y": 2500
}
},
{
"id": "8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6",
"type": "invocation",
"data": {
"id": "8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6",
"type": "img_scale",
"inputs": {
"image": {
"id": "432f3c88-285d-42b7-a42e-24ae97a4751a",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"scale_factor": {
"id": "b3dd9aff-0c84-4ad7-bfd9-a8fa1ccae58b",
"name": "scale_factor",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 0.5
},
"resample_mode": {
"id": "2eb9d0a7-d0f8-474e-b238-548d864fbd8e",
"name": "resample_mode",
"type": "enum",
"fieldKind": "input",
"label": "",
"value": "bicubic"
}
},
"outputs": {
"image": {
"id": "9c089c7e-930c-4d1f-b2ab-a957ecf288aa",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "f880ce2a-5f1c-4f0c-9398-095cf082d353",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "fde5f8e6-d5fc-4d06-a1b1-9880baabf3a6",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "Scale Image (Face Down)",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 339,
"position": {
"x": 5825,
"y": 1550
}
},
{
"id": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"type": "invocation",
"data": {
"id": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"type": "denoise_latents",
"inputs": {
"noise": {
"id": "d7a78bb2-e3d2-4e5d-b494-1cc1e5f0cc84",
"name": "noise",
"type": "LatentsField",
"fieldKind": "input",
"label": ""
},
"steps": {
"id": "2d9aba03-011e-4858-b5e2-a1301565dde9",
"name": "steps",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 20
},
"cfg_scale": {
"id": "3528c5bb-12a2-4094-a35f-c5d07ddae5ee",
"name": "cfg_scale",
"type": "FloatPolymorphic",
"fieldKind": "input",
"label": "",
"value": 5
},
"denoising_start": {
"id": "c997229c-8f35-4427-8fcc-99a3dcaaf5a3",
"name": "denoising_start",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 0.3
},
"denoising_end": {
"id": "abbb8f6b-f643-4cb2-9147-227feafd8aa6",
"name": "denoising_end",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 1
},
"scheduler": {
"id": "2fcd2bdc-de01-422f-963d-551ff58f7b70",
"name": "scheduler",
"type": "Scheduler",
"fieldKind": "input",
"label": "",
"value": "euler"
},
"control": {
"id": "1ad815aa-0957-420b-a782-7e07a5e16a05",
"name": "control",
"type": "ControlPolymorphic",
"fieldKind": "input",
"label": ""
},
"ip_adapter": {
"id": "8350154f-b179-44d6-88c8-08c8fa940648",
"name": "ip_adapter",
"type": "IPAdapterField",
"fieldKind": "input",
"label": ""
},
"latents": {
"id": "bf8c9465-743e-4b27-b370-e63053dc2175",
"name": "latents",
"type": "LatentsField",
"fieldKind": "input",
"label": ""
},
"denoise_mask": {
"id": "4487f154-4f2f-459b-8a69-561ea892eea7",
"name": "denoise_mask",
"type": "DenoiseMaskField",
"fieldKind": "input",
"label": ""
},
"positive_conditioning": {
"id": "a757a5d4-3aaa-4cd9-9a9d-bfb01b0676e4",
"name": "positive_conditioning",
"type": "ConditioningField",
"fieldKind": "input",
"label": ""
},
"negative_conditioning": {
"id": "68d0ce84-615a-4062-96bc-3599029a4b63",
"name": "negative_conditioning",
"type": "ConditioningField",
"fieldKind": "input",
"label": ""
},
"unet": {
"id": "0de640f1-2170-4983-88d3-5af648da1b5d",
"name": "unet",
"type": "UNetField",
"fieldKind": "input",
"label": ""
}
},
"outputs": {
"latents": {
"id": "3198ada0-5926-41b3-89f0-8b572af78824",
"name": "latents",
"type": "LatentsField",
"fieldKind": "output"
},
"width": {
"id": "3cea129c-3145-4f89-a5f1-849863e05001",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "ed204db5-ce67-4795-873a-67b5d6a099a6",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.1.0"
},
"width": 320,
"height": 614,
"position": {
"x": 5425,
"y": 1925
}
},
{
"id": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"type": "invocation",
"data": {
"id": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"type": "face_off",
"inputs": {
"image": {
"id": "4c4611d3-baab-47e8-a814-18ea86f1aff2",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"face_id": {
"id": "cfc00e4b-c60e-44b4-b0da-f26da1b4060e",
"name": "face_id",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"minimum_confidence": {
"id": "4ba35ea2-d1b3-4d24-88c5-737fdd396210",
"name": "minimum_confidence",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 0.5
},
"x_offset": {
"id": "c79b5f0a-df14-41e1-9f17-11f6b3ace52f",
"name": "x_offset",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 0
},
"y_offset": {
"id": "ec8eb73f-2853-41b8-aa9d-c93b6f9f08bd",
"name": "y_offset",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 0
},
"padding": {
"id": "a7a649f9-0b79-4f12-a482-b3af800b6584",
"name": "padding",
"type": "integer",
"fieldKind": "input",
"label": "",
"value": 0
},
"chunk": {
"id": "df654e9c-dda3-414d-b11b-51b36071ae62",
"name": "chunk",
"type": "boolean",
"fieldKind": "input",
"label": "",
"value": false
}
},
"outputs": {
"image": {
"id": "4292e151-cd37-4cdf-9f1b-2b3e0cc6d831",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "8e83877f-36ed-470c-889a-174a35259e6f",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "40487efd-937a-491e-a1c3-e791afe32cd6",
"name": "height",
"type": "integer",
"fieldKind": "output"
},
"mask": {
"id": "2cc63f32-0f8e-46a9-bed3-9f47a8b834f2",
"name": "mask",
"type": "ImageField",
"fieldKind": "output"
},
"x": {
"id": "12451165-986b-4eab-8159-55b8d7ce87ab",
"name": "x",
"type": "integer",
"fieldKind": "output"
},
"y": {
"id": "928c0d08-613c-4c03-9a7e-a3087f45032b",
"name": "y",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 655,
"position": {
"x": 4625,
"y": 1800
}
},
{
"id": "7ad41b86-c089-430c-b70c-3c1cbf886ed9",
"type": "invocation",
"data": {
"id": "7ad41b86-c089-430c-b70c-3c1cbf886ed9",
"type": "img_scale",
"inputs": {
"image": {
"id": "6db4f3c8-ade5-46c7-8c39-f8b8bd949912",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"scale_factor": {
"id": "ac4f04dc-2fc8-424f-bcab-292d6139a763",
"name": "scale_factor",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 2
},
"resample_mode": {
"id": "1f2fdad6-1d75-42a9-8f20-dfe5361804ad",
"name": "resample_mode",
"type": "enum",
"fieldKind": "input",
"label": "",
"value": "bicubic"
}
},
"outputs": {
"image": {
"id": "ab6ca82e-f936-47be-8640-1b1649032dfd",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "bf4f0ecd-7628-46b8-9654-e728dc69985b",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "07e63e0c-2da3-445f-bb34-82b9eef6edfb",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "Scale Image (Face Up)",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 339,
"position": {
"x": 4625,
"y": 2500
}
},
{
"id": "98a614c8-24df-413f-b001-a728b354e931",
"type": "invocation",
"data": {
"id": "98a614c8-24df-413f-b001-a728b354e931",
"type": "color_correct",
"inputs": {
"image": {
"id": "0f45f05a-192c-4951-9b94-32b32cc68cc2",
"name": "image",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"reference": {
"id": "4a430d07-f13e-4889-a58e-a241e05bf142",
"name": "reference",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"mask": {
"id": "c3bf8c13-0766-49e5-96cc-26a6e9dbafc9",
"name": "mask",
"type": "ImageField",
"fieldKind": "input",
"label": ""
},
"mask_blur_radius": {
"id": "c0a35154-41dc-494c-8807-f4cca2b996e9",
"name": "mask_blur_radius",
"type": "float",
"fieldKind": "input",
"label": "",
"value": 8
}
},
"outputs": {
"image": {
"id": "27559b60-0a58-4615-8f5a-a46d85be1d89",
"name": "image",
"type": "ImageField",
"fieldKind": "output"
},
"width": {
"id": "f03d5175-d0d8-4f4f-970f-7792d72a69c7",
"name": "width",
"type": "integer",
"fieldKind": "output"
},
"height": {
"id": "7a7b98e5-8b34-411c-b51c-e3174a9de7f6",
"name": "height",
"type": "integer",
"fieldKind": "output"
}
},
"label": "",
"isOpen": true,
"notes": "",
"embedWorkflow": false,
"isIntermediate": true,
"useCache": true,
"version": "1.0.0"
},
"width": 320,
"height": 396,
"position": {
"x": 5825,
"y": 1900
}
}
],
"edges": [
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "clip",
"target": "fb7e72d9-51cb-432a-b511-c6c608d07413",
"targetHandle": "clip",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036clip-fb7e72d9-51cb-432a-b511-c6c608d07413clip",
"type": "default"
},
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "clip",
"target": "7c4e5071-5b76-4d42-b340-68b52c5ded7a",
"targetHandle": "clip",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036clip-7c4e5071-5b76-4d42-b340-68b52c5ded7aclip",
"type": "default"
},
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "vae",
"target": "3b2ebc7f-251d-4726-b1b8-5331355f8626",
"targetHandle": "vae",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036vae-3b2ebc7f-251d-4726-b1b8-5331355f8626vae",
"type": "default"
},
{
"source": "27dd9fc3-8c6e-4602-8754-e9ca2f478d68",
"sourceHandle": "value",
"target": "098898c8-7a20-4d78-9363-296d42e3d8da",
"targetHandle": "seed",
"id": "reactflow__edge-27dd9fc3-8c6e-4602-8754-e9ca2f478d68value-098898c8-7a20-4d78-9363-296d42e3d8daseed",
"type": "default"
},
{
"source": "3fac3aa6-910a-4a90-a8b6-5b7e1611efba",
"sourceHandle": "image",
"target": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"targetHandle": "base_image",
"id": "reactflow__edge-3fac3aa6-910a-4a90-a8b6-5b7e1611efbaimage-5b15322a-1ea2-4f23-b422-c2dea5f594e2base_image",
"type": "default"
},
{
"source": "233aeb43-980a-4578-bdb7-5488d54d1bbf",
"sourceHandle": "image",
"target": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"targetHandle": "mask",
"id": "reactflow__edge-233aeb43-980a-4578-bdb7-5488d54d1bbfimage-bcbdc4ea-1fad-40d4-8632-70f84116f4b6mask",
"type": "default"
},
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "vae",
"target": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"targetHandle": "vae",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036vae-bcbdc4ea-1fad-40d4-8632-70f84116f4b6vae",
"type": "default"
},
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "vae",
"target": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"targetHandle": "vae",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036vae-a6d08bcb-0b52-4dd8-9247-8b6480238c6dvae",
"type": "default"
},
{
"source": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"sourceHandle": "width",
"target": "098898c8-7a20-4d78-9363-296d42e3d8da",
"targetHandle": "width",
"id": "reactflow__edge-a6d08bcb-0b52-4dd8-9247-8b6480238c6dwidth-098898c8-7a20-4d78-9363-296d42e3d8dawidth",
"type": "default"
},
{
"source": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"sourceHandle": "height",
"target": "098898c8-7a20-4d78-9363-296d42e3d8da",
"targetHandle": "height",
"id": "reactflow__edge-a6d08bcb-0b52-4dd8-9247-8b6480238c6dheight-098898c8-7a20-4d78-9363-296d42e3d8daheight",
"type": "default"
},
{
"source": "3b2ebc7f-251d-4726-b1b8-5331355f8626",
"sourceHandle": "image",
"target": "8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6",
"targetHandle": "image",
"id": "reactflow__edge-3b2ebc7f-251d-4726-b1b8-5331355f8626image-8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6image",
"type": "default"
},
{
"source": "fb7e72d9-51cb-432a-b511-c6c608d07413",
"sourceHandle": "conditioning",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "positive_conditioning",
"id": "reactflow__edge-fb7e72d9-51cb-432a-b511-c6c608d07413conditioning-9e356e8e-d03d-4de9-b522-026c8751d6d4positive_conditioning",
"type": "default"
},
{
"source": "7c4e5071-5b76-4d42-b340-68b52c5ded7a",
"sourceHandle": "conditioning",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "negative_conditioning",
"id": "reactflow__edge-7c4e5071-5b76-4d42-b340-68b52c5ded7aconditioning-9e356e8e-d03d-4de9-b522-026c8751d6d4negative_conditioning",
"type": "default"
},
{
"source": "c9897be0-7f59-4388-816d-86cb72cc4036",
"sourceHandle": "unet",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "unet",
"id": "reactflow__edge-c9897be0-7f59-4388-816d-86cb72cc4036unet-9e356e8e-d03d-4de9-b522-026c8751d6d4unet",
"type": "default"
},
{
"source": "098898c8-7a20-4d78-9363-296d42e3d8da",
"sourceHandle": "noise",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "noise",
"id": "reactflow__edge-098898c8-7a20-4d78-9363-296d42e3d8danoise-9e356e8e-d03d-4de9-b522-026c8751d6d4noise",
"type": "default"
},
{
"source": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"sourceHandle": "denoise_mask",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "denoise_mask",
"id": "reactflow__edge-bcbdc4ea-1fad-40d4-8632-70f84116f4b6denoise_mask-9e356e8e-d03d-4de9-b522-026c8751d6d4denoise_mask",
"type": "default"
},
{
"source": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"sourceHandle": "latents",
"target": "3b2ebc7f-251d-4726-b1b8-5331355f8626",
"targetHandle": "latents",
"id": "reactflow__edge-9e356e8e-d03d-4de9-b522-026c8751d6d4latents-3b2ebc7f-251d-4726-b1b8-5331355f8626latents",
"type": "default"
},
{
"source": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"sourceHandle": "latents",
"target": "9e356e8e-d03d-4de9-b522-026c8751d6d4",
"targetHandle": "latents",
"id": "reactflow__edge-a6d08bcb-0b52-4dd8-9247-8b6480238c6dlatents-9e356e8e-d03d-4de9-b522-026c8751d6d4latents",
"type": "default"
},
{
"source": "3fac3aa6-910a-4a90-a8b6-5b7e1611efba",
"sourceHandle": "image",
"target": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"targetHandle": "image",
"id": "reactflow__edge-3fac3aa6-910a-4a90-a8b6-5b7e1611efbaimage-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95image",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "mask",
"target": "233aeb43-980a-4578-bdb7-5488d54d1bbf",
"targetHandle": "image",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95mask-233aeb43-980a-4578-bdb7-5488d54d1bbfimage",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "x",
"target": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"targetHandle": "x",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95x-5b15322a-1ea2-4f23-b422-c2dea5f594e2x",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "y",
"target": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"targetHandle": "y",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95y-5b15322a-1ea2-4f23-b422-c2dea5f594e2y",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "image",
"target": "7ad41b86-c089-430c-b70c-3c1cbf886ed9",
"targetHandle": "image",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95image-7ad41b86-c089-430c-b70c-3c1cbf886ed9image",
"type": "default"
},
{
"source": "7ad41b86-c089-430c-b70c-3c1cbf886ed9",
"sourceHandle": "image",
"target": "bcbdc4ea-1fad-40d4-8632-70f84116f4b6",
"targetHandle": "image",
"id": "reactflow__edge-7ad41b86-c089-430c-b70c-3c1cbf886ed9image-bcbdc4ea-1fad-40d4-8632-70f84116f4b6image",
"type": "default"
},
{
"source": "7ad41b86-c089-430c-b70c-3c1cbf886ed9",
"sourceHandle": "image",
"target": "a6d08bcb-0b52-4dd8-9247-8b6480238c6d",
"targetHandle": "image",
"id": "reactflow__edge-7ad41b86-c089-430c-b70c-3c1cbf886ed9image-a6d08bcb-0b52-4dd8-9247-8b6480238c6dimage",
"type": "default"
},
{
"source": "8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6",
"sourceHandle": "image",
"target": "98a614c8-24df-413f-b001-a728b354e931",
"targetHandle": "image",
"id": "reactflow__edge-8bdaaacf-077d-4b73-b03c-ad7a2fdcc0b6image-98a614c8-24df-413f-b001-a728b354e931image",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "mask",
"target": "98a614c8-24df-413f-b001-a728b354e931",
"targetHandle": "mask",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95mask-98a614c8-24df-413f-b001-a728b354e931mask",
"type": "default"
},
{
"source": "cd886d23-b786-4d0e-83e6-b6f1cf0ddc95",
"sourceHandle": "image",
"target": "98a614c8-24df-413f-b001-a728b354e931",
"targetHandle": "reference",
"id": "reactflow__edge-cd886d23-b786-4d0e-83e6-b6f1cf0ddc95image-98a614c8-24df-413f-b001-a728b354e931reference",
"type": "default"
},
{
"source": "98a614c8-24df-413f-b001-a728b354e931",
"sourceHandle": "image",
"target": "5b15322a-1ea2-4f23-b422-c2dea5f594e2",
"targetHandle": "image",
"id": "reactflow__edge-98a614c8-24df-413f-b001-a728b354e931image-5b15322a-1ea2-4f23-b422-c2dea5f594e2image",
"type": "default"
}
]
}