{
  "id": "e47d064a-cb92-4da7-b92b-be9f1ddd26f5",
  "revision": 0,
  "last_node_id": 70,
  "last_link_id": 103,
  "nodes": [
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1615.039087801503,
        160.40068341159756
      ],
      "size": [
        161.111083984375,
        46
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 52
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 62
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            65
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 43,
      "type": "VAELoader",
      "pos": [
        517.231573621917,
        656.7863480776692
      ],
      "size": [
        269.8313103058076,
        58
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            62,
            76
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "flux2-vae.safetensors"
      ]
    },
    {
      "id": 54,
      "type": "ResizeImageMaskNode",
      "pos": [
        514.4495897676222,
        484.74016932307575
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 82
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            80
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale to multiple",
        16,
        "nearest-exact"
      ]
    },
    {
      "id": 52,
      "type": "VAEEncode",
      "pos": [
        821.9650317382822,
        484.74016932307575
      ],
      "size": [
        162,
        46
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 80
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 76
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            74,
            75
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 33,
      "type": "CLIPTextEncode",
      "pos": [
        558.700000000001,
        387.24938745307793
      ],
      "size": [
        425.2650317382812,
        122.99611236572264
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 64
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            86
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 57,
      "type": "CLIPLoader",
      "pos": [
        -1046.5432691773194,
        203.48293731896845
      ],
      "size": [
        280.8288815898386,
        106
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            87
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "qwen3.5_4b_bf16.safetensors",
        "stable_diffusion",
        "default"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 58,
      "type": "ComfyNumberConvert",
      "pos": [
        -295.0236493442684,
        203.48293731896845
      ],
      "size": [
        178.0101231973421,
        46
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "label": "value",
          "name": "value",
          "type": "INT,FLOAT,STRING,BOOLEAN",
          "link": 89
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": null
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            90
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "ComfyNumberConvert"
      },
      "widgets_values": [],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        558.700000000001,
        160.40068341159756
      ],
      "size": [
        425.2650317382812,
        167.9430462646484
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 63
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 96
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            70
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 44,
      "type": "CLIPLoader",
      "pos": [
        224.49879211425772,
        292.66704483032197
      ],
      "size": [
        283.80000000000007,
        106
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            63,
            64
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.73",
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "qwen_3_8b.safetensors",
        "flux2",
        "default"
      ]
    },
    {
      "id": 48,
      "type": "UNETLoader",
      "pos": [
        917.2536154382312,
        19.495025634765582
      ],
      "size": [
        308.1592787377913,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            69
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "UNETLoader"
      },
      "widgets_values": [
        "Flux.2/flux-2-klein-9b-fp8.safetensors",
        "default"
      ]
    },
    {
      "id": 56,
      "type": "TextGenerate",
      "pos": [
        -722.3755914744937,
        203.48293731896845
      ],
      "size": [
        400,
        412
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 87
        },
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 102
        },
        {
          "name": "video",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "generated_text",
          "type": "STRING",
          "links": [
            89
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "TextGenerate"
      },
      "widgets_values": [
        "この画像に女性が映っていれば 1 を、そうでなければ 0 を出力してください。",
        256,
        "on",
        0.7,
        64,
        0.95,
        0.05,
        1.05,
        0,
        0,
        false,
        true
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 49,
      "type": "ReferenceLatent",
      "pos": [
        1021.2781285510225,
        160.40068341159756
      ],
      "size": [
        204.134765625,
        46
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 70
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 75
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            71
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "ReferenceLatent"
      },
      "widgets_values": []
    },
    {
      "id": 59,
      "type": "ComfyMathExpression",
      "pos": [
        -89.66158401670012,
        203.48293731896845
      ],
      "size": [
        235.5094643140137,
        143.8565237478972
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 90
        },
        {
          "label": "b",
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": null
        },
        {
          "name": "INT",
          "type": "INT",
          "links": null
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": [
            93
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 64,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -252.1066255598296,
        -220.87349522456816
      ],
      "size": [
        397.5504229008086,
        144.88451526818943
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            95
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Remove all people from the image."
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 65,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -248.07279349515574,
        -20.209864694091635
      ],
      "size": [
        397.5504229008086,
        144.88451526818943
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            94
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Replace every woman in the image with a man, while keeping the same clothing, pose, position, hairstyle silhouette, lighting, camera angle, and scene composition."
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 63,
      "type": "ComfySwitchNode",
      "pos": [
        220.08766704132302,
        36.23429650683176
      ],
      "size": [
        270,
        78
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "on_false",
          "type": "STRING",
          "link": 95
        },
        {
          "name": "on_true",
          "type": "STRING",
          "link": 94
        },
        {
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          },
          "link": 93
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "STRING",
          "links": [
            96,
            98
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "ComfySwitchNode"
      },
      "widgets_values": [
        false
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 67,
      "type": "PreviewAny",
      "pos": [
        561.1172245661597,
        -48.8577314253514
      ],
      "size": [
        320.47592717353996,
        140.40191931344805
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 98
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [
        null,
        null,
        false
      ]
    },
    {
      "id": 70,
      "type": "CreateList",
      "pos": [
        -905.7143875874808,
        484.74016932307575
      ],
      "size": [
        140,
        66
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "label": "input0",
          "name": "inputs.input0",
          "type": "IMAGE",
          "link": 100
        },
        {
          "label": "input1",
          "name": "inputs.input1",
          "shape": 7,
          "type": "IMAGE",
          "link": 101
        },
        {
          "label": "input2",
          "name": "inputs.input2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "list",
          "shape": 6,
          "type": "IMAGE",
          "links": [
            102,
            103
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "CreateList"
      }
    },
    {
      "id": 51,
      "type": "ResizeImageMaskNode",
      "pos": [
        209.97616959564456,
        484.74016932307575
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 103
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            82
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale total pixels",
        1,
        "nearest-exact"
      ]
    },
    {
      "id": 68,
      "type": "LoadImage",
      "pos": [
        -1616.6685525637188,
        486.1192079256388
      ],
      "size": [
        304.14064949086014,
        536.4849883179598
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            100
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "000160_00004_.png",
        "image"
      ]
    },
    {
      "id": 62,
      "type": "LoadImage",
      "pos": [
        -1266.6309825671176,
        565.9597542315803
      ],
      "size": [
        304.14064949086014,
        536.4849883179598
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            101
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "000114_00005_.png",
        "image"
      ]
    },
    {
      "id": 31,
      "type": "KSampler",
      "pos": [
        1262.7259909887628,
        160.40068341159756
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 69
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 71
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 86
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 74
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            52
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.39",
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        12345,
        "fixed",
        4,
        1,
        "euler",
        "simple",
        1
      ]
    },
    {
      "id": 45,
      "type": "SaveImage",
      "pos": [
        1813.4632685986182,
        160.40068341159756
      ],
      "size": [
        684.1076792845461,
        555.3306746679631
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 65
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.73"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    }
  ],
  "links": [
    [
      52,
      31,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      62,
      43,
      0,
      8,
      1,
      "VAE"
    ],
    [
      63,
      44,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      64,
      44,
      0,
      33,
      0,
      "CLIP"
    ],
    [
      65,
      8,
      0,
      45,
      0,
      "IMAGE"
    ],
    [
      69,
      48,
      0,
      31,
      0,
      "MODEL"
    ],
    [
      70,
      6,
      0,
      49,
      0,
      "CONDITIONING"
    ],
    [
      71,
      49,
      0,
      31,
      1,
      "CONDITIONING"
    ],
    [
      74,
      52,
      0,
      31,
      3,
      "LATENT"
    ],
    [
      75,
      52,
      0,
      49,
      1,
      "LATENT"
    ],
    [
      76,
      43,
      0,
      52,
      1,
      "VAE"
    ],
    [
      80,
      54,
      0,
      52,
      0,
      "IMAGE"
    ],
    [
      82,
      51,
      0,
      54,
      0,
      "IMAGE"
    ],
    [
      86,
      33,
      0,
      31,
      2,
      "CONDITIONING"
    ],
    [
      87,
      57,
      0,
      56,
      0,
      "CLIP"
    ],
    [
      89,
      56,
      0,
      58,
      0,
      "STRING"
    ],
    [
      90,
      58,
      1,
      59,
      0,
      "INT"
    ],
    [
      93,
      59,
      2,
      63,
      2,
      "BOOLEAN"
    ],
    [
      94,
      65,
      0,
      63,
      1,
      "STRING"
    ],
    [
      95,
      64,
      0,
      63,
      0,
      "STRING"
    ],
    [
      96,
      63,
      0,
      6,
      1,
      "STRING"
    ],
    [
      98,
      63,
      0,
      67,
      0,
      "STRING"
    ],
    [
      100,
      68,
      0,
      70,
      0,
      "IMAGE"
    ],
    [
      101,
      62,
      0,
      70,
      1,
      "IMAGE"
    ],
    [
      102,
      70,
      0,
      56,
      1,
      "IMAGE"
    ],
    [
      103,
      70,
      0,
      51,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.4189769069935071,
      "offset": [
        1847.0845643468651,
        533.2709120844096
      ]
    },
    "frontendVersion": "1.44.19",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}