| { | |
| "last_node_id": 26, | |
| "last_link_id": 55, | |
| "nodes": [ | |
| { | |
| "id": 12, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 1050, | |
| 910 | |
| ], | |
| "size": [ | |
| 302.3999938964844, | |
| 120 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 24, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "shape": 3, | |
| "links": [ | |
| 38 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "title": "CLIP Text Encode (Prompt) - Negative", | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "ugly, text, watermark" | |
| ], | |
| "color": "#322", | |
| "bgcolor": "#533" | |
| }, | |
| { | |
| "id": 19, | |
| "type": "InpaintModelConditioning", | |
| "pos": [ | |
| 1130, | |
| 340 | |
| ], | |
| "size": [ | |
| 216.59999084472656, | |
| 138 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 37 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 38 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 44 | |
| }, | |
| { | |
| "name": "pixels", | |
| "type": "IMAGE", | |
| "link": 50 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": 51 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "shape": 3, | |
| "links": [ | |
| 39 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "shape": 3, | |
| "links": [ | |
| 40 | |
| ], | |
| "slot_index": 1 | |
| }, | |
| { | |
| "name": "latent", | |
| "type": "LATENT", | |
| "shape": 3, | |
| "links": [ | |
| 41 | |
| ], | |
| "slot_index": 2 | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "InpaintModelConditioning" | |
| }, | |
| "widgets_values": [ | |
| true | |
| ] | |
| }, | |
| { | |
| "id": 10, | |
| "type": "CheckpointLoaderSimple", | |
| "pos": [ | |
| 590, | |
| 680 | |
| ], | |
| "size": [ | |
| 370, | |
| 100 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "shape": 3, | |
| "links": [ | |
| 28 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "shape": 3, | |
| "links": [ | |
| 21, | |
| 24 | |
| ], | |
| "slot_index": 1 | |
| }, | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "shape": 3, | |
| "links": [ | |
| 32, | |
| 44 | |
| ], | |
| "slot_index": 2 | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "CheckpointLoaderSimple" | |
| }, | |
| "widgets_values": [ | |
| "sd1.5-inpainting/lazymixRealAmateur_v40Inpainting.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 7, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 1860, | |
| 370 | |
| ], | |
| "size": [ | |
| 500, | |
| 770 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 54 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "PreviewImage" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 14, | |
| "type": "KSampler", | |
| "pos": [ | |
| 1420, | |
| 670 | |
| ], | |
| "size": [ | |
| 320, | |
| 470 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 28 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 39 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 40 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 41, | |
| "slot_index": 3 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "shape": 3, | |
| "links": [ | |
| 33 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 900559780374547, | |
| "randomize", | |
| 20, | |
| 8, | |
| "dpmpp_3m_sde", | |
| "karras", | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 15, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1520, | |
| 360 | |
| ], | |
| "size": [ | |
| 210, | |
| 46 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 33, | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 32, | |
| "slot_index": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "shape": 3, | |
| "links": [ | |
| 55 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 26, | |
| "type": "InpaintStitchImproved", | |
| "pos": [ | |
| 1640, | |
| 110 | |
| ], | |
| "size": [ | |
| 235.1999969482422, | |
| 46 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "stitcher", | |
| "type": "STITCHER", | |
| "link": 52 | |
| }, | |
| { | |
| "name": "inpainted_image", | |
| "type": "IMAGE", | |
| "link": 55 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 54 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "InpaintStitchImproved" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 3, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 90, | |
| 110 | |
| ], | |
| "size": [ | |
| 400, | |
| 500 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "shape": 3, | |
| "links": [ | |
| 48 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "shape": 3, | |
| "links": [ | |
| 49 | |
| ], | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "clipspace/clipspace-mask-324879.39999999106.png [input]", | |
| "image" | |
| ] | |
| }, | |
| { | |
| "id": 22, | |
| "type": "Note", | |
| "pos": [ | |
| 40, | |
| 680 | |
| ], | |
| "size": [ | |
| 500, | |
| 470 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "title": "Instructions", | |
| "properties": { | |
| "text": "" | |
| }, | |
| "widgets_values": [ | |
| "Simplest way to run:\n\n1. Load desired image in the \"Load Image\" node and mask the area you want to replace.\n\n2. Select a checkpoint for inpainting in the \"Load Checkpoint\" node.\n\n3. Write the positive and negative prompts in the green and red boxes. These prompts do not have to match the whole image, but only the masked area.\n\n4. Adjust denoise (e.g. 1 to fully replace the content, ~0.8 to keep part of it, 0.1 to match around.\n\n5. Run!\n\n\n\nHow to increase the context area for the model to know better what to draw:\n- Option 1: Increase context_expand_factor, e.g. set it to 2.\n- Option 2: Duplicate the load image node and connect its mask to \"optional_context_mask\" in the \"Inpaint Crop\" node. Mask the area that is relevant for context (no need to fill it, only the corners of the masked area matter.\n\n\n\nThe default parameters for Inpaint Crop and Inpaint Stitch work well for most inpainting tasks.\n\nFor SDXL or Flux, increase output_target_width and output_target_height to 1024." | |
| ], | |
| "color": "#432", | |
| "bgcolor": "#653" | |
| }, | |
| { | |
| "id": 25, | |
| "type": "InpaintCropImproved", | |
| "pos": [ | |
| 620, | |
| 110 | |
| ], | |
| "size": [ | |
| 390, | |
| 410 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 48 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "shape": 7, | |
| "link": 49 | |
| }, | |
| { | |
| "name": "optional_context_mask", | |
| "type": "MASK", | |
| "shape": 7, | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "stitcher", | |
| "type": "STITCHER", | |
| "links": [ | |
| 52 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "cropped_image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 50 | |
| ], | |
| "slot_index": 1 | |
| }, | |
| { | |
| "name": "cropped_mask", | |
| "type": "MASK", | |
| "links": [ | |
| 51 | |
| ], | |
| "slot_index": 2 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "InpaintCropImproved" | |
| }, | |
| "widgets_values": [ | |
| "bilinear", | |
| "bicubic", | |
| false, | |
| "ensure minimum resolution", | |
| 1024, | |
| 1024, | |
| 16384, | |
| 16384, | |
| true, | |
| 0, | |
| false, | |
| 32, | |
| 0.1, | |
| false, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 2.0000000000000004, | |
| true, | |
| 512, | |
| 512, | |
| "32" | |
| ] | |
| }, | |
| { | |
| "id": 11, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 1050, | |
| 700 | |
| ], | |
| "size": [ | |
| 310, | |
| 140 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 21 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "shape": 3, | |
| "links": [ | |
| 37 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "title": "CLIP Text Encode (Prompt) - Positive", | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "metal cap covering a bottle, watercolor painting" | |
| ], | |
| "color": "#232", | |
| "bgcolor": "#353" | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 21, | |
| 10, | |
| 1, | |
| 11, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 24, | |
| 10, | |
| 1, | |
| 12, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 28, | |
| 10, | |
| 0, | |
| 14, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 32, | |
| 10, | |
| 2, | |
| 15, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 33, | |
| 14, | |
| 0, | |
| 15, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 37, | |
| 11, | |
| 0, | |
| 19, | |
| 0, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 38, | |
| 12, | |
| 0, | |
| 19, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 39, | |
| 19, | |
| 0, | |
| 14, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 40, | |
| 19, | |
| 1, | |
| 14, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 41, | |
| 19, | |
| 2, | |
| 14, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 44, | |
| 10, | |
| 2, | |
| 19, | |
| 2, | |
| "VAE" | |
| ], | |
| [ | |
| 48, | |
| 3, | |
| 0, | |
| 25, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 49, | |
| 3, | |
| 1, | |
| 25, | |
| 1, | |
| "MASK" | |
| ], | |
| [ | |
| 50, | |
| 25, | |
| 1, | |
| 19, | |
| 3, | |
| "IMAGE" | |
| ], | |
| [ | |
| 51, | |
| 25, | |
| 2, | |
| 19, | |
| 4, | |
| "MASK" | |
| ], | |
| [ | |
| 52, | |
| 25, | |
| 0, | |
| 26, | |
| 0, | |
| "STITCHER" | |
| ], | |
| [ | |
| 54, | |
| 26, | |
| 0, | |
| 7, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 55, | |
| 15, | |
| 0, | |
| 26, | |
| 1, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.6830134553650709, | |
| "offset": [ | |
| 259.9247209661792, | |
| 171.64611986059646 | |
| ] | |
| }, | |
| "ue_links": [] | |
| }, | |
| "version": 0.4 | |
| } |