{
  "id": "02ce2553-4540-4fdf-ba24-ff74d71bc3ed",
  "revision": 0,
  "last_node_id": 123,
  "last_link_id": 240,
  "nodes": [
    {
      "id": 62,
      "type": "UnetLoaderGGUF",
      "pos": [
        14.226422605250985,
        65.18529815399123
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            220
          ]
        }
      ],
      "properties": {
        "aux_id": "molbal/ComfyUI-GGUF",
        "ver": "d3e14efda6bb891de0406d2debffcb07e88d4231",
        "Node name for S&R": "UnetLoaderGGUF",
        "cnr_id": "ComfyUI-GGUF"
      },
      "widgets_values": [
        "z_image_turbo-Q8_0.gguf"
      ]
    },
    {
      "id": 102,
      "type": "NoiseInjectionDetailerHookProvider",
      "pos": [
        2719.4737802709788,
        252.6685544061159
      ],
      "size": [
        320.8921813964844,
        178
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "DETAILER_HOOK",
          "type": "DETAILER_HOOK",
          "links": [
            213
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "27c5368bcc83941ce3290ff1aeb126b15a6d8922",
        "Node name for S&R": "NoiseInjectionDetailerHookProvider"
      },
      "widgets_values": [
        "skip_start",
        "CPU",
        1,
        "fixed",
        1.5000000000000002,
        1
      ]
    },
    {
      "id": 103,
      "type": "GrowMask",
      "pos": [
        2683.5742888523555,
        813.1604134121234
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 204
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            205
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.43",
        "Node name for S&R": "GrowMask"
      },
      "widgets_values": [
        30,
        true
      ]
    },
    {
      "id": 104,
      "type": "MaskToSEGS",
      "pos": [
        2683.5742888523555,
        938.1603523769671
      ],
      "size": [
        270,
        154
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 205
        }
      ],
      "outputs": [
        {
          "name": "SEGS",
          "type": "SEGS",
          "links": [
            211
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "27c5368bcc83941ce3290ff1aeb126b15a6d8922",
        "Node name for S&R": "MaskToSEGS"
      },
      "widgets_values": [
        false,
        2,
        false,
        100,
        false
      ]
    },
    {
      "id": 105,
      "type": "GroundingDinoModelLoader (segment anything2)",
      "pos": [
        2190.522347634672,
        597.7857790987651
      ],
      "size": [
        368.3717102050781,
        75
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "GROUNDING_DINO_MODEL",
          "type": "GROUNDING_DINO_MODEL",
          "links": [
            207
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-sam2",
        "ver": "c8cc8fb9a919dbaa5546c6866c59f60d299cc562",
        "Node name for S&R": "GroundingDinoModelLoader (segment anything2)"
      },
      "widgets_values": [
        "GroundingDINO_SwinT_OGC (694MB)"
      ]
    },
    {
      "id": 106,
      "type": "GroundingDinoSAM2Segment (segment anything2)",
      "pos": [
        2668.188947978053,
        510.40650925865475
      ],
      "size": [
        359.7466735839844,
        150
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "sam_model",
          "type": "SAM2_MODEL",
          "link": 206
        },
        {
          "name": "grounding_dino_model",
          "type": "GROUNDING_DINO_MODEL",
          "link": 207
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 226
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            204
          ]
        }
      ],
      "title": "Segment Anything 2",
      "properties": {
        "cnr_id": "comfyui-sam2",
        "ver": "c8cc8fb9a919dbaa5546c6866c59f60d299cc562",
        "Node name for S&R": "GroundingDinoSAM2Segment (segment anything2)"
      },
      "widgets_values": [
        "face",
        0.4000000000000001,
        false
      ]
    },
    {
      "id": 109,
      "type": "SAM2ModelLoader (segment anything2)",
      "pos": [
        2194.0446151624974,
        469.1388462212411
      ],
      "size": [
        325,
        75
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAM2_MODEL",
          "type": "SAM2_MODEL",
          "links": [
            206
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-sam2",
        "ver": "c8cc8fb9a919dbaa5546c6866c59f60d299cc562",
        "Node name for S&R": "SAM2ModelLoader (segment anything2)"
      },
      "widgets_values": [
        "sam2_1_hiera_large.pt"
      ]
    },
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        555.9847810322743,
        596.0425921087311
      ],
      "size": [
        425.27801513671875,
        180.6060791015625
      ],
      "flags": {
        "collapsed": true
      },
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 88
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            124,
            217
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "blurry ugly bad"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 93,
      "type": "EmptySD3LatentImage",
      "pos": [
        515.8522870056167,
        403.6490581970377
      ],
      "size": [
        315,
        106
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            192
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "EmptySD3LatentImage"
      },
      "widgets_values": [
        832,
        1216,
        1
      ]
    },
    {
      "id": 17,
      "type": "VAELoader",
      "pos": [
        10.60120803783359,
        356.83498761079346
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            127,
            222
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "zimage_vae.safetensors"
      ]
    },
    {
      "id": 29,
      "type": "CLIPLoaderGGUF",
      "pos": [
        6.386156770967979,
        171.92704313232392
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            88,
            203,
            223,
            234
          ]
        }
      ],
      "properties": {
        "aux_id": "molbal/ComfyUI-GGUF",
        "ver": "d3e14efda6bb891de0406d2debffcb07e88d4231",
        "Node name for S&R": "CLIPLoaderGGUF",
        "cnr_id": "ComfyUI-GGUF"
      },
      "widgets_values": [
        "Qwen3-4B.Q8_0.gguf",
        "lumina2"
      ]
    },
    {
      "id": 80,
      "type": "SaveImage",
      "pos": [
        1545.3104992727717,
        52.12173470044796
      ],
      "size": [
        529.4348011464119,
        501.1680915967561
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 183
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "z-image/random txt2img workflow/1. before adetailer"
      ]
    },
    {
      "id": 111,
      "type": "DetailerForEachDebugPipe",
      "pos": [
        3126.1201872898555,
        44.97077718165518
      ],
      "size": [
        325,
        900
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 227
        },
        {
          "name": "segs",
          "type": "SEGS",
          "link": 211
        },
        {
          "name": "basic_pipe",
          "type": "BASIC_PIPE",
          "link": 212
        },
        {
          "name": "detailer_hook",
          "shape": 7,
          "type": "DETAILER_HOOK",
          "link": 213
        },
        {
          "name": "refiner_basic_pipe_opt",
          "shape": 7,
          "type": "BASIC_PIPE",
          "link": null
        },
        {
          "name": "scheduler_func_opt",
          "shape": 7,
          "type": "SCHEDULER_FUNC",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            218
          ]
        },
        {
          "name": "segs",
          "type": "SEGS",
          "links": null
        },
        {
          "name": "basic_pipe",
          "type": "BASIC_PIPE",
          "links": null
        },
        {
          "name": "cropped",
          "shape": 6,
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "cropped_refined",
          "shape": 6,
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "cropped_refined_alpha",
          "shape": 6,
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "cnet_images",
          "shape": 6,
          "type": "IMAGE",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.8.1",
        "Node name for S&R": "DetailerForEachDebugPipe"
      },
      "widgets_values": [
        1024,
        true,
        1024,
        539,
        "fixed",
        9,
        1,
        "dpmpp_2m_sde",
        "beta",
        0.5,
        20,
        true,
        true,
        "",
        0,
        2,
        false,
        20,
        false,
        false
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159",
      "shape": 1
    },
    {
      "id": 108,
      "type": "ToBasicPipe",
      "pos": [
        2720.9963342681376,
        85.092158723005
      ],
      "size": [
        241.79998779296875,
        106
      ],
      "flags": {
        "collapsed": false
      },
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 231
        },
        {
          "name": "clip",
          "type": "CLIP",
          "link": 223
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 222
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 236
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 217
        }
      ],
      "outputs": [
        {
          "name": "basic_pipe",
          "type": "BASIC_PIPE",
          "links": [
            212
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.8.1",
        "Node name for S&R": "ToBasicPipe"
      },
      "widgets_values": [],
      "color": "#2a363b",
      "bgcolor": "#3f5159",
      "shape": 1
    },
    {
      "id": 11,
      "type": "ModelSamplingAuraFlow",
      "pos": [
        327.40942048582406,
        63.93239065000034
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 220
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            228,
            230
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "ModelSamplingAuraFlow"
      },
      "widgets_values": [
        7
      ]
    },
    {
      "id": 56,
      "type": "VAEDecode",
      "pos": [
        1317.1899072860624,
        81.31738287945295
      ],
      "size": [
        210,
        46
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 128
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 127
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            183,
            226,
            227
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 54,
      "type": "KSampler",
      "pos": [
        1019.0385899782099,
        78.1469959641963
      ],
      "size": [
        270,
        474.0000000000001
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 229
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 136
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 124
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 192
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            128
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        1,
        "fixed",
        8,
        1,
        "dpmpp_2m_sde",
        "beta57",
        1
      ]
    },
    {
      "id": 57,
      "type": "CLIPTextEncode",
      "pos": [
        554.0232998445149,
        550.118686752831
      ],
      "size": [
        431.5787818490304,
        184.49751989676224
      ],
      "flags": {
        "collapsed": true
      },
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 203
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 232
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            136
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 120,
      "type": "PrimitiveStringMultiline",
      "pos": [
        518.1748083126017,
        162.75380544484594
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            232
          ]
        }
      ],
      "title": "POSITIVE PROMPT",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 116,
      "type": "SaveImage",
      "pos": [
        3541.5145624039073,
        44.67218146647987
      ],
      "size": [
        529.4348011464119,
        501.1680915967561
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 218
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "z-image/random txt2img workflow/2. after adetailer"
      ]
    },
    {
      "id": 117,
      "type": "LoraLoaderModelOnly",
      "pos": [
        685.2147874318291,
        -126.3682771234325
      ],
      "size": [
        358.4441070825194,
        87.7524477075246
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 228
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            229
          ]
        }
      ],
      "title": "NSFW LORA HERE",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly"
      },
      "widgets_values": [
        "0000.safetensors",
        1
      ]
    },
    {
      "id": 123,
      "type": "PrimitiveStringMultiline",
      "pos": [
        2187.264995883391,
        -45.10564428687643
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            240
          ]
        }
      ],
      "title": "CHARACTER TRIGGER WORD / DESCRIPTION",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Add description of character's face and expression here. Minimal is fine, just don't use entire image"
      ]
    },
    {
      "id": 122,
      "type": "CLIPTextEncode",
      "pos": [
        2223.659469316215,
        231.73768713575365
      ],
      "size": [
        431.5787818490304,
        184.49751989676224
      ],
      "flags": {
        "collapsed": true
      },
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 234
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 240
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            236
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 118,
      "type": "LoraLoaderModelOnly",
      "pos": [
        2195.470207463157,
        -180.12683464794762
      ],
      "size": [
        358.4441070825194,
        87.7524477075246
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 230
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            231
          ]
        }
      ],
      "title": "CHARACTER LORA HERE",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly"
      },
      "widgets_values": [
        "0000.safetensors",
        1
      ]
    }
  ],
  "links": [
    [
      88,
      29,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      124,
      7,
      0,
      54,
      2,
      "CONDITIONING"
    ],
    [
      127,
      17,
      0,
      56,
      1,
      "VAE"
    ],
    [
      128,
      54,
      0,
      56,
      0,
      "LATENT"
    ],
    [
      136,
      57,
      0,
      54,
      1,
      "CONDITIONING"
    ],
    [
      183,
      56,
      0,
      80,
      0,
      "IMAGE"
    ],
    [
      192,
      93,
      0,
      54,
      3,
      "LATENT"
    ],
    [
      203,
      29,
      0,
      57,
      0,
      "CLIP"
    ],
    [
      204,
      106,
      1,
      103,
      0,
      "MASK"
    ],
    [
      205,
      103,
      0,
      104,
      0,
      "MASK"
    ],
    [
      206,
      109,
      0,
      106,
      0,
      "SAM2_MODEL"
    ],
    [
      207,
      105,
      0,
      106,
      1,
      "GROUNDING_DINO_MODEL"
    ],
    [
      211,
      104,
      0,
      111,
      1,
      "SEGS"
    ],
    [
      212,
      108,
      0,
      111,
      2,
      "BASIC_PIPE"
    ],
    [
      213,
      102,
      0,
      111,
      3,
      "DETAILER_HOOK"
    ],
    [
      217,
      7,
      0,
      108,
      4,
      "CONDITIONING"
    ],
    [
      218,
      111,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      220,
      62,
      0,
      11,
      0,
      "MODEL"
    ],
    [
      222,
      17,
      0,
      108,
      2,
      "VAE"
    ],
    [
      223,
      29,
      0,
      108,
      1,
      "CLIP"
    ],
    [
      226,
      56,
      0,
      106,
      2,
      "IMAGE"
    ],
    [
      227,
      56,
      0,
      111,
      0,
      "IMAGE"
    ],
    [
      228,
      11,
      0,
      117,
      0,
      "MODEL"
    ],
    [
      229,
      117,
      0,
      54,
      0,
      "MODEL"
    ],
    [
      230,
      11,
      0,
      118,
      0,
      "MODEL"
    ],
    [
      231,
      118,
      0,
      108,
      0,
      "MODEL"
    ],
    [
      232,
      120,
      0,
      57,
      1,
      "STRING"
    ],
    [
      234,
      29,
      0,
      122,
      0,
      "CLIP"
    ],
    [
      236,
      122,
      0,
      108,
      3,
      "CONDITIONING"
    ],
    [
      240,
      123,
      0,
      122,
      1,
      "STRING"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7627768444385488,
      "offset": [
        591.8328362102927,
        412.6218966112276
      ]
    },
    "frontendVersion": "1.45.15",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true,
    "workflowRendererVersion": "LG"
  },
  "version": 0.4
}