{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [
          {
            "bounding": [
              -460,
              -150,
              335,
              441.6000061035156
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 1,
            "title": "Load models"
          },
          {
            "bounding": [
              -100,
              -40,
              442.8499755859375,
              409.6000061035156
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 3,
            "title": "Prompt"
          }
        ],
        "id": "42bcb419-1e9f-48eb-a6d6-c22e0625db3a",
        "inputNode": {
          "bounding": [
            -850,
            164,
            120,
            80
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "65727ee9-09d0-40c9-bd86-11e0823eb676",
            "label": "image",
            "linkIds": [
              99
            ],
            "localized_name": "pixels",
            "name": "pixels",
            "pos": [
              -750,
              184
            ],
            "type": "IMAGE"
          },
          {
            "id": "28424f77-56c5-49c1-ba41-6bd78287c186",
            "linkIds": [
              100
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              -750,
              204
            ],
            "type": "MASK"
          }
        ],
        "links": [
          {
            "id": 41,
            "origin_id": 23,
            "origin_slot": 0,
            "target_id": 26,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 101,
            "origin_id": 23,
            "origin_slot": 0,
            "target_id": 46,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 62,
            "origin_id": 34,
            "origin_slot": 0,
            "target_id": 23,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 85,
            "origin_id": 31,
            "origin_slot": 0,
            "target_id": 39,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 86,
            "origin_id": 39,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 77,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 78,
            "origin_id": 38,
            "origin_slot": 1,
            "target_id": 3,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 88,
            "origin_id": 38,
            "origin_slot": 2,
            "target_id": 3,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 7,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 60,
            "origin_id": 32,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 80,
            "origin_id": 26,
            "origin_slot": 0,
            "target_id": 38,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 102,
            "origin_id": 46,
            "origin_slot": 0,
            "target_id": 38,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 82,
            "origin_id": 32,
            "origin_slot": 0,
            "target_id": 38,
            "target_slot": 2,
            "type": "VAE"
          },
          {
            "id": 99,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 38,
            "target_slot": 3,
            "type": "IMAGE"
          },
          {
            "id": 100,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 38,
            "target_slot": 4,
            "type": "MASK"
          },
          {
            "id": 95,
            "origin_id": 8,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          }
        ],
        "name": "Flux.1 Fill Dev Image Inpainting",
        "nodes": [
          {
            "flags": {},
            "id": 34,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  62
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              }
            ],
            "pos": [
              -450,
              50
            ],
            "properties": {
              "Node name for S&R": "DualCLIPLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "text_encoders",
                  "name": "clip_l.safetensors",
                  "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors"
                },
                {
                  "directory": "text_encoders",
                  "name": "t5xxl_fp16.safetensors",
                  "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors"
                }
              ],
              "ver": "0.3.64"
            },
            "size": [
              315,
              130
            ],
            "type": "DualCLIPLoader",
            "widgets_values": [
              "clip_l.safetensors",
              "t5xxl_fp16.safetensors",
              "flux",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 26,
            "inputs": [
              {
                "link": 41,
                "localized_name": "conditioning",
                "name": "conditioning",
                "type": "CONDITIONING"
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  80
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -90,
              230
            ],
            "properties": {
              "Node name for S&R": "FluxGuidance",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              317.3999938964844,
              58
            ],
            "type": "FluxGuidance",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 32,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  60,
                  82
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "slot_index": 0,
                "type": "VAE"
              }
            ],
            "pos": [
              -450,
              220
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "vae",
                  "name": "ae.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors"
                }
              ],
              "ver": "0.3.64"
            },
            "size": [
              315,
              58
            ],
            "type": "VAELoader",
            "widgets_values": [
              "ae.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 31,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  85
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -450,
              -80
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "diffusion_models",
                  "name": "flux1-fill-dev.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/flux1-dev/resolve/main/split_files/diffusion_models/flux1-fill-dev.safetensors"
                }
              ],
              "ver": "0.3.64"
            },
            "size": [
              315,
              82
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "flux1-fill-dev.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 46,
            "inputs": [
              {
                "link": 101,
                "localized_name": "conditioning",
                "name": "conditioning",
                "type": "CONDITIONING"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  102
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -90,
              330
            ],
            "properties": {
              "Node name for S&R": "ConditioningZeroOut",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              204.134765625,
              26
            ],
            "type": "ConditioningZeroOut",
            "widgets_values": []
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 23,
            "inputs": [
              {
                "link": 62,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  41,
                  101
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -90,
              30
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              422.8500061035156,
              164.30999755859375
            ],
            "title": "CLIP Text Encode (Positive Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "anime girl with massive fennec ears blonde hair blue eyes wearing a pink shirt"
            ]
          },
          {
            "flags": {},
            "id": 39,
            "inputs": [
              {
                "link": 85,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  86
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -100,
              -120
            ],
            "properties": {
              "Node name for S&R": "DifferentialDiffusion",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              277.20001220703125,
              58
            ],
            "type": "DifferentialDiffusion",
            "widgets_values": [
              1
            ]
          },
          {
            "flags": {},
            "id": 8,
            "inputs": [
              {
                "link": 7,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 60,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  95
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              380,
              430
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              210,
              46
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 38,
            "inputs": [
              {
                "link": 80,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 102,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 82,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 99,
                "localized_name": "pixels",
                "name": "pixels",
                "type": "IMAGE"
              },
              {
                "link": 100,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  77
                ],
                "localized_name": "positive",
                "name": "positive",
                "slot_index": 0,
                "type": "CONDITIONING"
              },
              {
                "links": [
                  78
                ],
                "localized_name": "negative",
                "name": "negative",
                "slot_index": 1,
                "type": "CONDITIONING"
              },
              {
                "links": [
                  88
                ],
                "localized_name": "latent",
                "name": "latent",
                "slot_index": 2,
                "type": "LATENT"
              }
            ],
            "pos": [
              -90,
              420
            ],
            "properties": {
              "Node name for S&R": "InpaintModelConditioning",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              302.3999938964844,
              138
            ],
            "type": "InpaintModelConditioning",
            "widgets_values": [
              true
            ]
          },
          {
            "flags": {},
            "id": 3,
            "inputs": [
              {
                "link": 86,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 77,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 78,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 88,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  7
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "slot_index": 0,
                "type": "LATENT"
              }
            ],
            "pos": [
              370,
              -120
            ],
            "properties": {
              "Node name for S&R": "KSampler",
              "cnr_id": "comfy-core",
              "ver": "0.3.64"
            },
            "size": [
              290,
              470
            ],
            "type": "KSampler",
            "widgets_values": [
              656821733471329,
              "randomize",
              20,
              1,
              "euler",
              "normal",
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            930,
            174,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "1dee24ec-54a8-41be-aa30-a8fb797d3d23",
            "linkIds": [
              95
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              950,
              194
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 3,
          "lastLinkId": 103,
          "lastNodeId": 46,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        1237.920396413059,
        851.0203958342684
      ],
      "scale": 0.5636806464042814
    },
    "frontendVersion": "1.38.6",
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "551d82b0-b1fb-483a-a5ea-564bdb813625",
  "last_link_id": 108,
  "last_node_id": 47,
  "links": [
    [
      103,
      17,
      0,
      47,
      0,
      "IMAGE"
    ],
    [
      104,
      17,
      1,
      47,
      1,
      "MASK"
    ],
    [
      105,
      47,
      0,
      9,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 45,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        -669.6665090509065,
        -118.66657776244102
      ],
      "properties": {},
      "size": [
        420,
        743.7890625
      ],
      "title": "For Local User",
      "type": "MarkdownNote",
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/flux/flux-1-fill-dev)\n\nGuide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud will be updated after the stable release; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/Comfy-Org/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n\n\n## Model links\n\n**text_encoders**\n\n- [clip_l.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors)\n- [t5xxl_fp16.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors)\n\n**diffusion_models**\n\n- [flux1-fill-dev.safetensors](https://huggingface.co/Comfy-Org/flux1-dev/resolve/main/split_files/diffusion_models/flux1-fill-dev.safetensors)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 text_encoders/\n│   │      ├── clip_l.safetensors\n│   │      └── t5xxl_fp16.safetensors\n│   ├── 📂 diffusion_models/\n│   │      └── flux1-fill-dev.safetensors\n│   └── 📂 vae/\n│          └── ae.safetensors\n```\n\n"
      ]
    },
    {
      "flags": {},
      "id": 9,
      "inputs": [
        {
          "link": 105,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [],
      "pos": [
        550,
        -120
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.64"
      },
      "size": [
        580,
        490
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 17,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            103
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        },
        {
          "links": [
            104
          ],
          "name": "MASK",
          "slot_index": 1,
          "type": "MASK"
        }
      ],
      "pos": [
        -210,
        -120
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.64"
      },
      "size": [
        315,
        421.6666666666667
      ],
      "type": "LoadImage",
      "widgets_values": [
        "flux_fill_inpaint_example_input_image.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 47,
      "inputs": [
        {
          "label": "image",
          "link": 103,
          "name": "pixels",
          "type": "IMAGE"
        },
        {
          "link": 104,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            105
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        130,
        -120
      ],
      "properties": {
        "proxyWidgets": [
          [
            "23",
            "text"
          ],
          [
            "3",
            "seed"
          ],
          [
            "3",
            "control_after_generate"
          ]
        ]
      },
      "size": [
        400,
        470
      ],
      "type": "42bcb419-1e9f-48eb-a6d6-c22e0625db3a",
      "widgets_values": []
    }
  ],
  "revision": 0,
  "version": 0.4
}