{
  "id": "ad18abd3-bdee-4f80-8fae-d15d4f845b9d",
  "revision": 0,
  "last_node_id": 61,
  "last_link_id": 162,
  "nodes": [
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        866,
        367
      ],
      "size": [
        210,
        46
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 24
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 12
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            9
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "VAEDecode",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 27,
      "type": "EmptySD3LatentImage",
      "pos": [
        480,
        624
      ],
      "size": [
        315,
        106
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 112
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 113
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            116
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "EmptySD3LatentImage",
        "widget_ue_connectable": {
          "width": true,
          "height": true
        }
      },
      "widgets_values": [
        1024,
        1024,
        1
      ]
    },
    {
      "id": 37,
      "type": "Note",
      "pos": [
        480,
        1344
      ],
      "size": [
        314.99755859375,
        117.98363494873047
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "text": "",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "The reference sampling implementation auto adjusts the shift value based on the resolution, if you don't want this you can just bypass (CTRL-B) this ModelSamplingFlux node.\n"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 13,
      "type": "SamplerCustomAdvanced",
      "pos": [
        864,
        192
      ],
      "size": [
        272.3617858886719,
        380.3617858886719
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "noise",
          "type": "NOISE",
          "link": 37
        },
        {
          "name": "guider",
          "type": "GUIDER",
          "link": 30
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 162
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 20
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 116
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            24
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "SamplerCustomAdvanced",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 39,
      "type": "VAEEncode",
      "pos": [
        501.1323547363281,
        -12.391702651977539
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 143
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 120
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            138
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "VAEEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 42,
      "type": "ReferenceLatent",
      "pos": [
        676.4634399414062,
        -28.66999626159668
      ],
      "size": [
        197.712890625,
        46
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 123
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 138
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            157
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.42",
        "Node name for S&R": "ReferenceLatent",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 22,
      "type": "BasicGuider",
      "pos": [
        887.5904541015625,
        60.72023010253906
      ],
      "size": [
        222.3482666015625,
        46
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 54
        },
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 157
        }
      ],
      "outputs": [
        {
          "name": "GUIDER",
          "type": "GUIDER",
          "slot_index": 0,
          "links": [
            30
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "BasicGuider",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 25,
      "type": "RandomNoise",
      "pos": [
        480,
        768
      ],
      "size": [
        315,
        82
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "NOISE",
          "type": "NOISE",
          "links": [
            37
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "RandomNoise",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        497815859529802,
        "randomize"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 30,
      "type": "ModelSamplingFlux",
      "pos": [
        480,
        1152
      ],
      "size": [
        315,
        130
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 160
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 115
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 114
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            54,
            55
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "ModelSamplingFlux",
        "widget_ue_connectable": {
          "width": true,
          "height": true
        }
      },
      "widgets_values": [
        1.15,
        0.5,
        1024,
        1024
      ]
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        1188.329345703125,
        256.9534912109375
      ],
      "size": [
        985.3012084960938,
        1060.3828125
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 9
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "SaveImage",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 40,
      "type": "FluxKontextImageScale",
      "pos": [
        49.908851623535156,
        33.698631286621094
      ],
      "size": [
        187.75448608398438,
        26
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 158
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            142
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.42",
        "Node name for S&R": "FluxKontextImageScale",
        "widget_ue_connectable": {}
      },
      "widgets_values": []
    },
    {
      "id": 53,
      "type": "ImageScaleBy",
      "pos": [
        258.1321716308594,
        -25.683725357055664
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 16,
      "mode": 4,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 142
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            143
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "ImageScaleBy",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "area",
        0.5000000000000001
      ]
    },
    {
      "id": 60,
      "type": "UNETLoader",
      "pos": [
        -2.8829524517059326,
        122.46749114990234
      ],
      "size": [
        381.352783203125,
        87.69417572021484
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            160
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.42",
        "Node name for S&R": "UNETLoader"
      },
      "widgets_values": [
        "flux1-dev-kontext_fp8_scaled.safetensors",
        "default"
      ]
    },
    {
      "id": 11,
      "type": "DualCLIPLoader",
      "pos": [
        48,
        274.3157958984375
      ],
      "size": [
        315,
        130
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            10
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "DualCLIPLoader",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "t5xxl_fp16.safetensors",
        "clip_l.safetensors",
        "flux",
        "default"
      ]
    },
    {
      "id": 28,
      "type": "Note",
      "pos": [
        48,
        576
      ],
      "size": [
        336,
        288
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "text": "",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "If you get an error in any of the nodes above make sure the files are in the correct directories.\n\nSee the examples page for the links : https://comfyanonymous.github.io/ComfyUI_examples/flux/\n\nflux1-kontext-dev.safetensors goes in: ComfyUI/models/unet/\n\nt5xxl_fp16.safetensors and clip_l.safetensors go in: ComfyUI/models/clip/\n\nae.safetensors goes in: ComfyUI/models/vae/\n\n\nTip: You can set the weight_dtype above to one of the fp8 types if you have memory issues."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 16,
      "type": "KSamplerSelect",
      "pos": [
        480,
        912
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            161
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "KSamplerSelect",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "res_multistep"
      ]
    },
    {
      "id": 17,
      "type": "BasicScheduler",
      "pos": [
        480,
        1008
      ],
      "size": [
        315,
        106
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 55
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            20
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "BasicScheduler",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "sgm_uniform",
        20,
        1
      ]
    },
    {
      "id": 10,
      "type": "VAELoader",
      "pos": [
        13.98082447052002,
        456.1963806152344
      ],
      "size": [
        362.4312744140625,
        64.85874938964844
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            12,
            120
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "VAELoader",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "ae.safetensors"
      ]
    },
    {
      "id": 61,
      "type": "DetailDaemonSamplerNode",
      "pos": [
        868.6925048828125,
        649.384521484375
      ],
      "size": [
        270,
        274
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 161
        }
      ],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            162
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-detail-daemon",
        "ver": "1.1.2",
        "Node name for S&R": "DetailDaemonSamplerNode"
      },
      "widgets_values": [
        0.06000000000000001,
        0.30000000000000004,
        0.7000000000000002,
        0.5,
        1,
        0,
        0,
        0,
        true,
        0
      ]
    },
    {
      "id": 41,
      "type": "LoadImage",
      "pos": [
        -289.20892333984375,
        203.28469848632812
      ],
      "size": [
        274.080078125,
        314
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            158
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "LoadImage",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "Q0H2J2V9VQXAXQZH4JRE2DHMD0.jpeg",
        "image"
      ]
    },
    {
      "id": 26,
      "type": "FluxGuidance",
      "pos": [
        476.2947082519531,
        125.47370910644531
      ],
      "size": [
        317.4000244140625,
        58
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 41
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            123
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "FluxGuidance",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        2.5
      ],
      "color": "#233",
      "bgcolor": "#355"
    },
    {
      "id": 34,
      "type": "PrimitiveNode",
      "pos": [
        398.37469482421875,
        470.8294372558594
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "slot_index": 0,
          "links": [
            112,
            115
          ]
        }
      ],
      "title": "width",
      "properties": {
        "Run widget replace on values": false,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        1024,
        "fixed"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 35,
      "type": "PrimitiveNode",
      "pos": [
        633.27978515625,
        473.8863220214844
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "slot_index": 0,
          "links": [
            113,
            114
          ]
        }
      ],
      "title": "height",
      "properties": {
        "Run widget replace on values": false,
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        1024,
        "fixed"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        384,
        240
      ],
      "size": [
        422.84503173828125,
        164.31304931640625
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 10
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            41
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "CLIPTextEncode",
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        "The girl wearing blue cargo pants is sitting on a mossy rock in a sun-dappled forest, carefully sketching a detailed leaf in her notebook."
      ],
      "color": "#232",
      "bgcolor": "#353"
    }
  ],
  "links": [
    [
      9,
      8,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      10,
      11,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      12,
      10,
      0,
      8,
      1,
      "VAE"
    ],
    [
      20,
      17,
      0,
      13,
      3,
      "SIGMAS"
    ],
    [
      24,
      13,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      30,
      22,
      0,
      13,
      1,
      "GUIDER"
    ],
    [
      37,
      25,
      0,
      13,
      0,
      "NOISE"
    ],
    [
      41,
      6,
      0,
      26,
      0,
      "CONDITIONING"
    ],
    [
      54,
      30,
      0,
      22,
      0,
      "MODEL"
    ],
    [
      55,
      30,
      0,
      17,
      0,
      "MODEL"
    ],
    [
      112,
      34,
      0,
      27,
      0,
      "INT"
    ],
    [
      113,
      35,
      0,
      27,
      1,
      "INT"
    ],
    [
      114,
      35,
      0,
      30,
      2,
      "INT"
    ],
    [
      115,
      34,
      0,
      30,
      1,
      "INT"
    ],
    [
      116,
      27,
      0,
      13,
      4,
      "LATENT"
    ],
    [
      120,
      10,
      0,
      39,
      1,
      "VAE"
    ],
    [
      123,
      26,
      0,
      42,
      0,
      "CONDITIONING"
    ],
    [
      138,
      39,
      0,
      42,
      1,
      "LATENT"
    ],
    [
      142,
      40,
      0,
      53,
      0,
      "IMAGE"
    ],
    [
      143,
      53,
      0,
      39,
      0,
      "IMAGE"
    ],
    [
      157,
      42,
      0,
      22,
      1,
      "CONDITIONING"
    ],
    [
      158,
      41,
      0,
      40,
      0,
      "IMAGE"
    ],
    [
      160,
      60,
      0,
      30,
      0,
      "MODEL"
    ],
    [
      161,
      16,
      0,
      61,
      0,
      "SAMPLER"
    ],
    [
      162,
      61,
      0,
      13,
      2,
      "SAMPLER"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6588450000000073,
      "offset": [
        369.7649569580486,
        -68.23332231527534
      ]
    },
    "frontendVersion": "1.23.4",
    "groupNodes": {},
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true,
    "ue_links": [],
    "links_added_by_ue": []
  },
  "version": 0.4
}