Skip to content

Instantly share code, notes, and snippets.

@mmguero
Created December 11, 2025 04:28
Show Gist options
  • Select an option

  • Save mmguero/794578d1f0323b03be34ebe14eb63038 to your computer and use it in GitHub Desktop.

Select an option

Save mmguero/794578d1f0323b03be34ebe14eb63038 to your computer and use it in GitHub Desktop.
inpainting_experiment.json
{
"id": "5f2a65e4-b103-48d4-9c24-daefba71eeff",
"revision": 0,
"last_node_id": 23,
"last_link_id": 37,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
442.6771099999996,
1312.09357
],
"size": [
707.9294899054482,
265.6899414043944
],
"flags": {
"collapsed": true
},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 3
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
12
]
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "CLIPTextEncode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 11,
"type": "ConditioningZeroOut",
"pos": [
727.65085,
1311.8974200000014
],
"size": [
204.134765625,
26
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"localized_name": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 12
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
22
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "ConditioningZeroOut",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 2,
"type": "VAELoader",
"pos": [
558.6055999999988,
62.32079000000113
],
"size": [
235.72575558551137,
66.3151041912206
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "vae_name",
"name": "vae_name",
"type": "COMBO",
"widget": {
"name": "vae_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "VAE",
"name": "VAE",
"type": "VAE",
"links": [
6,
7
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "VAELoader",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 10,
"type": "InpaintModelConditioning",
"pos": [
879.4900999999982,
355.1660800000007
],
"size": [
270,
138
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 30
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 22
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 6
},
{
"localized_name": "pixels",
"name": "pixels",
"type": "IMAGE",
"link": 34
},
{
"localized_name": "mask",
"name": "mask",
"type": "MASK",
"link": 35
},
{
"localized_name": "noise_mask",
"name": "noise_mask",
"type": "BOOLEAN",
"widget": {
"name": "noise_mask"
},
"link": null
}
],
"outputs": [
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"links": [
20
]
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"links": [
19
]
},
{
"localized_name": "latent",
"name": "latent",
"type": "LATENT",
"links": [
18
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "InpaintModelConditioning",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
true
]
},
{
"id": 12,
"type": "VAEDecode",
"pos": [
1646.6811000000012,
148.03550999999976
],
"size": [
140,
46
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": 8
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 7
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "VAEDecode",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 13,
"type": "InpaintStitchImproved",
"pos": [
1644.3385400000006,
255.58770500000017
],
"size": [
223.99385681152344,
46
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"localized_name": "stitcher",
"name": "stitcher",
"type": "STITCHER",
"link": 33
},
{
"localized_name": "inpainted_image",
"name": "inpainted_image",
"type": "IMAGE",
"link": 9
}
],
"outputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"links": [
11
]
}
],
"properties": {
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintStitchImproved",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 4,
"type": "UnetLoaderGGUF",
"pos": [
1061.7452547377356,
94.19111000000022
],
"size": [
391.52030000000013,
62.39229999999998
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"localized_name": "unet_name",
"name": "unet_name",
"type": "COMBO",
"widget": {
"name": "unet_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
1
]
}
],
"properties": {
"cnr_id": "comfyui-gguf",
"ver": "1.1.9",
"Node name for S&R": "UnetLoaderGGUF",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
"z_image_turbo-Q5_K_S.gguf"
]
},
{
"id": 5,
"type": "ModelSamplingAuraFlow",
"pos": [
1067.5239679158349,
199.86199778153278
],
"size": [
223.23004065950363,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 1
},
{
"localized_name": "shift",
"name": "shift",
"type": "FLOAT",
"widget": {
"name": "shift"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
17
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "ModelSamplingAuraFlow",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
7
]
},
{
"id": 14,
"type": "SaveImage",
"pos": [
1613.0068000000026,
383.6092000000004
],
"size": [
540.5656800000002,
811.7186800000004
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 11
},
{
"localized_name": "filename_prefix",
"name": "filename_prefix",
"type": "STRING",
"widget": {
"name": "filename_prefix"
},
"link": null
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "SaveImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 3,
"type": "CLIPLoaderGGUF",
"pos": [
-42.36306999999993,
1209.8455984477048
],
"size": [
420.8023,
82
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"localized_name": "clip_name",
"name": "clip_name",
"type": "COMBO",
"widget": {
"name": "clip_name"
},
"link": null
},
{
"localized_name": "type",
"name": "type",
"type": "COMBO",
"widget": {
"name": "type"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CLIP",
"name": "CLIP",
"type": "CLIP",
"links": [
2,
3
]
}
],
"properties": {
"cnr_id": "ComfyUI-GGUF",
"ver": "cf0573351ac260d629d460d97f09b09ac17d3726",
"Node name for S&R": "CLIPLoaderGGUF",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Qwen3-4B-abliterated-q6_k_m.gguf",
"lumina2"
]
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
1293.6865900000005,
789.9109999999991
],
"size": [
267.3767,
301.2508
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 37
}
],
"outputs": [],
"title": "Cropped Image",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": []
},
{
"id": 19,
"type": "SeedVarianceEnhancer",
"pos": [
922.6174699999992,
822.6514799999997
],
"size": [
311.50390625,
250
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"localized_name": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 29
},
{
"localized_name": "randomize_percent",
"name": "randomize_percent",
"type": "FLOAT",
"widget": {
"name": "randomize_percent"
},
"link": null
},
{
"localized_name": "strength",
"name": "strength",
"type": "FLOAT",
"widget": {
"name": "strength"
},
"link": null
},
{
"localized_name": "noise_insert",
"name": "noise_insert",
"type": "COMBO",
"widget": {
"name": "noise_insert"
},
"link": null
},
{
"localized_name": "steps_switchover_percent",
"name": "steps_switchover_percent",
"type": "FLOAT",
"widget": {
"name": "steps_switchover_percent"
},
"link": null
},
{
"localized_name": "seed",
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": null
},
{
"localized_name": "mask_starts_at",
"name": "mask_starts_at",
"type": "COMBO",
"widget": {
"name": "mask_starts_at"
},
"link": null
},
{
"localized_name": "mask_percent",
"name": "mask_percent",
"type": "FLOAT",
"widget": {
"name": "mask_percent"
},
"link": null
},
{
"localized_name": "log_to_console",
"name": "log_to_console",
"type": "BOOLEAN",
"widget": {
"name": "log_to_console"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
30
]
}
],
"properties": {
"cnr_id": "seedvarianceenhancer",
"ver": "fe608a5423723a4e2e43d540aa7d4359fec8fc9f",
"Node name for S&R": "SeedVarianceEnhancer",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
50,
20,
"noise on beginning steps",
20,
1028320600932968,
"randomize",
"beginning",
0,
false
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
437.2318399999998,
906.1020000000003
],
"size": [
453.59358628828636,
274.0752576681597
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 2
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
29
]
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "CLIPTextEncode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"a bearded man wearing a stylish completely black leather motorcycle jacket"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 9,
"type": "KSampler",
"pos": [
1205.2146900000018,
350.17241000000024
],
"size": [
388.70620489199246,
386.3793745185094
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 17
},
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 20
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 19
},
{
"localized_name": "latent_image",
"name": "latent_image",
"type": "LATENT",
"link": 18
},
{
"localized_name": "seed",
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": null
},
{
"localized_name": "steps",
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": null
},
{
"localized_name": "cfg",
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"localized_name": "sampler_name",
"name": "sampler_name",
"type": "COMBO",
"widget": {
"name": "sampler_name"
},
"link": null
},
{
"localized_name": "scheduler",
"name": "scheduler",
"type": "COMBO",
"widget": {
"name": "scheduler"
},
"link": null
},
{
"localized_name": "denoise",
"name": "denoise",
"type": "FLOAT",
"widget": {
"name": "denoise"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
8
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.75",
"Node name for S&R": "KSampler",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
868189144303688,
"randomize",
5,
1,
"dpmpp_sde",
"beta",
0.7
]
},
{
"id": 20,
"type": "InpaintCropImproved",
"pos": [
435,
209.34234999999998
],
"size": [
357.44140625,
626
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 31
},
{
"localized_name": "mask",
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 32
},
{
"localized_name": "optional_context_mask",
"name": "optional_context_mask",
"shape": 7,
"type": "MASK",
"link": null
},
{
"localized_name": "downscale_algorithm",
"name": "downscale_algorithm",
"type": "COMBO",
"widget": {
"name": "downscale_algorithm"
},
"link": null
},
{
"localized_name": "upscale_algorithm",
"name": "upscale_algorithm",
"type": "COMBO",
"widget": {
"name": "upscale_algorithm"
},
"link": null
},
{
"localized_name": "preresize",
"name": "preresize",
"type": "BOOLEAN",
"widget": {
"name": "preresize"
},
"link": null
},
{
"localized_name": "preresize_mode",
"name": "preresize_mode",
"type": "COMBO",
"widget": {
"name": "preresize_mode"
},
"link": null
},
{
"localized_name": "preresize_min_width",
"name": "preresize_min_width",
"type": "INT",
"widget": {
"name": "preresize_min_width"
},
"link": null
},
{
"localized_name": "preresize_min_height",
"name": "preresize_min_height",
"type": "INT",
"widget": {
"name": "preresize_min_height"
},
"link": null
},
{
"localized_name": "preresize_max_width",
"name": "preresize_max_width",
"type": "INT",
"widget": {
"name": "preresize_max_width"
},
"link": null
},
{
"localized_name": "preresize_max_height",
"name": "preresize_max_height",
"type": "INT",
"widget": {
"name": "preresize_max_height"
},
"link": null
},
{
"localized_name": "mask_fill_holes",
"name": "mask_fill_holes",
"type": "BOOLEAN",
"widget": {
"name": "mask_fill_holes"
},
"link": null
},
{
"localized_name": "mask_expand_pixels",
"name": "mask_expand_pixels",
"type": "INT",
"widget": {
"name": "mask_expand_pixels"
},
"link": null
},
{
"localized_name": "mask_invert",
"name": "mask_invert",
"type": "BOOLEAN",
"widget": {
"name": "mask_invert"
},
"link": null
},
{
"localized_name": "mask_blend_pixels",
"name": "mask_blend_pixels",
"type": "INT",
"widget": {
"name": "mask_blend_pixels"
},
"link": null
},
{
"localized_name": "mask_hipass_filter",
"name": "mask_hipass_filter",
"type": "FLOAT",
"widget": {
"name": "mask_hipass_filter"
},
"link": null
},
{
"localized_name": "extend_for_outpainting",
"name": "extend_for_outpainting",
"type": "BOOLEAN",
"widget": {
"name": "extend_for_outpainting"
},
"link": null
},
{
"localized_name": "extend_up_factor",
"name": "extend_up_factor",
"type": "FLOAT",
"widget": {
"name": "extend_up_factor"
},
"link": null
},
{
"localized_name": "extend_down_factor",
"name": "extend_down_factor",
"type": "FLOAT",
"widget": {
"name": "extend_down_factor"
},
"link": null
},
{
"localized_name": "extend_left_factor",
"name": "extend_left_factor",
"type": "FLOAT",
"widget": {
"name": "extend_left_factor"
},
"link": null
},
{
"localized_name": "extend_right_factor",
"name": "extend_right_factor",
"type": "FLOAT",
"widget": {
"name": "extend_right_factor"
},
"link": null
},
{
"localized_name": "context_from_mask_extend_factor",
"name": "context_from_mask_extend_factor",
"type": "FLOAT",
"widget": {
"name": "context_from_mask_extend_factor"
},
"link": null
},
{
"localized_name": "output_resize_to_target_size",
"name": "output_resize_to_target_size",
"type": "BOOLEAN",
"widget": {
"name": "output_resize_to_target_size"
},
"link": null
},
{
"localized_name": "output_target_width",
"name": "output_target_width",
"type": "INT",
"widget": {
"name": "output_target_width"
},
"link": null
},
{
"localized_name": "output_target_height",
"name": "output_target_height",
"type": "INT",
"widget": {
"name": "output_target_height"
},
"link": null
},
{
"localized_name": "output_padding",
"name": "output_padding",
"type": "COMBO",
"widget": {
"name": "output_padding"
},
"link": null
}
],
"outputs": [
{
"localized_name": "stitcher",
"name": "stitcher",
"type": "STITCHER",
"links": [
33
]
},
{
"localized_name": "cropped_image",
"name": "cropped_image",
"type": "IMAGE",
"links": [
34,
37
]
},
{
"localized_name": "cropped_mask",
"name": "cropped_mask",
"type": "MASK",
"links": [
35
]
}
],
"properties": {
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintCropImproved",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
}
},
"widgets_values": [
"bilinear",
"bicubic",
false,
"ensure minimum resolution",
1024,
1024,
16384,
16384,
true,
16,
false,
32,
0.1,
false,
1,
1,
1,
1,
1.2,
true,
1024,
1024,
"32"
]
},
{
"id": 1,
"type": "LoadImage",
"pos": [
-143.05142000000006,
205.35639999999933
],
"size": [
495.3861481250001,
705.3539300000001
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "COMBO",
"widget": {
"name": "image"
},
"link": null
},
{
"localized_name": "choose file to upload",
"name": "upload",
"type": "IMAGEUPLOAD",
"widget": {
"name": "upload"
},
"link": null
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"links": [
31
]
},
{
"localized_name": "MASK",
"name": "MASK",
"type": "MASK",
"links": [
32
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.2"
},
"image": "clipspace/clipspace-painted-masked-1765426458687.png [input]"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1765426458687.png [input]",
"image"
]
}
],
"links": [
[
1,
4,
0,
5,
0,
"MODEL"
],
[
2,
3,
0,
6,
0,
"CLIP"
],
[
3,
3,
0,
7,
0,
"CLIP"
],
[
6,
2,
0,
10,
2,
"VAE"
],
[
7,
2,
0,
12,
1,
"VAE"
],
[
8,
9,
0,
12,
0,
"LATENT"
],
[
9,
12,
0,
13,
1,
"IMAGE"
],
[
11,
13,
0,
14,
0,
"IMAGE"
],
[
12,
7,
0,
11,
0,
"CONDITIONING"
],
[
17,
5,
0,
9,
0,
"MODEL"
],
[
18,
10,
2,
9,
3,
"LATENT"
],
[
19,
10,
1,
9,
2,
"CONDITIONING"
],
[
20,
10,
0,
9,
1,
"CONDITIONING"
],
[
22,
11,
0,
10,
1,
"CONDITIONING"
],
[
29,
6,
0,
19,
0,
"CONDITIONING"
],
[
30,
19,
0,
10,
0,
"CONDITIONING"
],
[
31,
1,
0,
20,
0,
"IMAGE"
],
[
32,
1,
1,
20,
1,
"MASK"
],
[
33,
20,
0,
13,
0,
"STITCHER"
],
[
34,
20,
1,
10,
3,
"IMAGE"
],
[
35,
20,
2,
10,
4,
"MASK"
],
[
37,
20,
1,
22,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"workflowRendererVersion": "LG",
"ue_links": [],
"ds": {
"scale": 0.6830134553650709,
"offset": [
442.1690199999997,
244.5635000000007
]
},
"links_added_by_ue": []
},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment