FLUX.2 [klein] で画像編集をする

ロッゾ=コルン
質問: FLUX.2-kleinでの画像編集
FLUX.2 [klein]で、FLUX Kontextのように画像編集できると聞きました。どのような設定にすればよいのだろうか?

FLUX.2 [klein] で画像編集する手順を紹介します。

事前準備: ComfyUIのインストール、FLUX.2-kleinのインストール

ComfyUIと、FLUX.2 [klein]をインストールします。手順はこちらの記事を参照してください。

ワークフロー

下図のワークフローを作成します。
FLUX.2 [klein] で画像編集をする:画像1

モデルの読み込み部分は先にダウンロードして配置したFLUX.2 [klein]のモデルを指定します。

  • [拡散モデルを読み込む]ノード → "flux-2-klein-9b.safetensors"
  • [CLIPを読み込む]ノード → "qwen_3_8b.safetensors"
  • [VAEを読み込む]ノード → "flux2-vae.safetensors"

FLUX.2 [klein] で画像編集をする:画像2

画像生成

[CLIP Text Encode (Positive Prompt)]のノードにプロンプトを入力して[実行する]ボタンを クリックして、画像生成を実行します。
画像生成結果はワークフローの右側の[画像を保存]ノードに表示されます。

FLUX.2 [klein] で画像編集をする:画像3

画像編集例

例1: 線画化

以下の入力画像とプロンプトで実行します。
FLUX.2 [klein] で画像編集をする:画像4

Prompt
change to manga lineart, monochrome image


画像生成結果は下図です。線画化された画像が生成できました。

FLUX.2 [klein] で画像編集をする:画像5
FLUX.2 [klein] で画像編集をする:画像6
FLUX.2 [klein] で画像編集をする:画像7
FLUX.2 [klein] で画像編集をする:画像8

例2: 向きの変更

以下の入力画像で実行します。
FLUX.2 [klein] で画像編集をする:画像9

ワークフローを変更してネガティブプロンプトのノードを追加しています。
FLUX.2 [klein] で画像編集をする:画像10


プロンプトは以下です。後ろから見た画像を作成します。

Prompt
Prompt: change from back view
Negative prompt: hoodie


画像生成結果は下図です。後ろから見たイメージが生成できています。入力画像に対して若干色がくすむ印象があります。

FLUX.2 [klein] で画像編集をする:画像11
FLUX.2 [klein] で画像編集をする:画像12
FLUX.2 [klein] で画像編集をする:画像13
FLUX.2 [klein] で画像編集をする:画像14

参考:ワークフローJSON

基本

{
  "id": "92112d97-bb64-4b44-86f2-ea5691ef8f6e",
  "revision": 0,
  "last_node_id": 117,
  "last_link_id": 208,
  "nodes": [
    {
      "id": 76,
      "type": "LoadImage",
      "pos": [
        -784.9578415027212,
        1449.9851098464399
      ],
      "size": [
        388.390625,
        421.78125
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            196
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "LoadImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        2065.238907730393,
        760.3006520184239
      ],
      "size": [
        450,
        701.3125
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 186
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "SaveImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "Flux2-Klein"
      ]
    },
    {
      "id": 99,
      "type": "KSamplerSelect",
      "pos": [
        934.9341200582967,
        1083.5038677450486
      ],
      "size": [
        324,
        82.65625
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            180
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "KSamplerSelect",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "euler"
      ]
    },
    {
      "id": 100,
      "type": "SamplerCustomAdvanced",
      "pos": [
        1365.2108859108266,
        762.4038761430332
      ],
      "size": [
        254.828125,
        144
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "noise",
          "type": "NOISE",
          "link": 178
        },
        {
          "name": "guider",
          "type": "GUIDER",
          "link": 179
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 180
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 181
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 182
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            183
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "SamplerCustomAdvanced",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 101,
      "type": "VAEDecode",
      "pos": [
        1738.5608902375675,
        760.8724378360653
      ],
      "size": [
        264,
        72
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 183
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 184
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            186
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAEDecode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 102,
      "type": "RandomNoise",
      "pos": [
        926.1492330428719,
        761.2551752885404
      ],
      "size": [
        324,
        80
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "NOISE",
          "type": "NOISE",
          "links": [
            178
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "RandomNoise",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        853308779399178,
        "randomize"
      ]
    },
    {
      "id": 103,
      "type": "UNETLoader",
      "pos": [
        -576.8617198208512,
        750.4794795361908
      ],
      "size": [
        437.3125,
        117.3125
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            177
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "UNETLoader",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2-klein\\flux-2-klein-base-9b.safetensors",
        "default"
      ]
    },
    {
      "id": 104,
      "type": "CLIPLoader",
      "pos": [
        -576.8617198208512,
        930.4792913948916
      ],
      "size": [
        437.3125,
        151.96875
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            185
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CLIPLoader",
        "models": [
          {
            "name": "qwen_3_8b_fp8mixed.safetensors",
            "url": "https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors",
            "directory": "text_encoders"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2-klein\\qwen_3_8b.safetensors",
        "flux2",
        "default"
      ]
    },
    {
      "id": 105,
      "type": "VAELoader",
      "pos": [
        -576.8617198208512,
        1134.4795137446379
      ],
      "size": [
        437.3125,
        82.65625
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            184,
            206
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "flux2-vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors",
            "directory": "vae"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2\\flux2-vae.safetensors"
      ]
    },
    {
      "id": 106,
      "type": "EmptyFlux2LatentImage",
      "pos": [
        718.597087452375,
        1405.2382949136268
      ],
      "size": [
        324,
        144
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 193
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 195
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            182
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "EmptyFlux2LatentImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        1024,
        1024,
        1
      ]
    },
    {
      "id": 107,
      "type": "ImageScaleToTotalPixels",
      "pos": [
        -345.27661762217963,
        1450.0147910009355
      ],
      "size": [
        324,
        146.65625
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 196
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            191,
            205
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "ImageScaleToTotalPixels",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "nearest-exact",
        0.99,
        1
      ]
    },
    {
      "id": 108,
      "type": "CFGGuider",
      "pos": [
        930.5415544263174,
        906.7192214611119
      ],
      "size": [
        324,
        128
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 177
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 207
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 208
        }
      ],
      "outputs": [
        {
          "name": "GUIDER",
          "type": "GUIDER",
          "links": [
            179
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CFGGuider",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        1
      ]
    },
    {
      "id": 109,
      "type": "Flux2Scheduler",
      "pos": [
        933.4698500981253,
        1209.3603743692213
      ],
      "size": [
        324,
        144
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 192
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 194
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            181
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "Flux2Scheduler",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        20,
        1024,
        1024
      ]
    },
    {
      "id": 110,
      "type": "CLIPTextEncode",
      "pos": [
        9.388740241151027,
        743.5770770329475
      ],
      "size": [
        507.765625,
        125
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 185
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            198,
            203
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CLIPTextEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "change to manga lineart, monochrome image"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 111,
      "type": "ConditioningZeroOut",
      "pos": [
        289.16151355027523,
        1240.8000456408172
      ],
      "size": [
        244.953125,
        48
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 198
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            204
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.1",
        "Node name for S&R": "ConditioningZeroOut",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 112,
      "type": "GetImageSize",
      "pos": [
        145.63346271858734,
        1450.2487367763172
      ],
      "size": [
        225,
        160
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 191
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            192,
            193
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            194,
            195
          ]
        },
        {
          "name": "batch_size",
          "type": "INT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "GetImageSize",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "width: 1176, height: 882\n batch size: 1"
      ]
    },
    {
      "id": 114,
      "type": "ReferenceLatent",
      "pos": [
        612.0976435051825,
        1237.9563820859728
      ],
      "size": [
        225,
        72
      ],
      "flags": {
        "collapsed": false
      },
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 204
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 201
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            208
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "ReferenceLatent",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 115,
      "type": "VAEEncode",
      "pos": [
        143.211046422628,
        1686.9438068707636
      ],
      "size": [
        225,
        72
      ],
      "flags": {
        "collapsed": false
      },
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 205
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 206
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            201,
            202
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAEEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 116,
      "type": "ReferenceLatent",
      "pos": [
        611.3700271229723,
        743.2452653997711
      ],
      "size": [
        225,
        72
      ],
      "flags": {
        "collapsed": false
      },
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 203
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 202
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            207
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "ReferenceLatent",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    }
  ],
  "links": [
    [
      177,
      103,
      0,
      108,
      0,
      "MODEL"
    ],
    [
      178,
      102,
      0,
      100,
      0,
      "NOISE"
    ],
    [
      179,
      108,
      0,
      100,
      1,
      "GUIDER"
    ],
    [
      180,
      99,
      0,
      100,
      2,
      "SAMPLER"
    ],
    [
      181,
      109,
      0,
      100,
      3,
      "SIGMAS"
    ],
    [
      182,
      106,
      0,
      100,
      4,
      "LATENT"
    ],
    [
      183,
      100,
      0,
      101,
      0,
      "LATENT"
    ],
    [
      184,
      105,
      0,
      101,
      1,
      "VAE"
    ],
    [
      185,
      104,
      0,
      110,
      0,
      "CLIP"
    ],
    [
      186,
      101,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      191,
      107,
      0,
      112,
      0,
      "IMAGE"
    ],
    [
      192,
      112,
      0,
      109,
      0,
      "INT"
    ],
    [
      193,
      112,
      0,
      106,
      0,
      "INT"
    ],
    [
      194,
      112,
      1,
      109,
      1,
      "INT"
    ],
    [
      195,
      112,
      1,
      106,
      1,
      "INT"
    ],
    [
      196,
      76,
      0,
      107,
      0,
      "IMAGE"
    ],
    [
      198,
      110,
      0,
      111,
      0,
      "CONDITIONING"
    ],
    [
      201,
      115,
      0,
      114,
      1,
      "LATENT"
    ],
    [
      202,
      115,
      0,
      116,
      1,
      "LATENT"
    ],
    [
      203,
      110,
      0,
      116,
      0,
      "CONDITIONING"
    ],
    [
      204,
      111,
      0,
      114,
      0,
      "CONDITIONING"
    ],
    [
      205,
      107,
      0,
      115,
      0,
      "IMAGE"
    ],
    [
      206,
      105,
      0,
      115,
      1,
      "VAE"
    ],
    [
      207,
      116,
      0,
      108,
      1,
      "CONDITIONING"
    ],
    [
      208,
      114,
      0,
      108,
      2,
      "CONDITIONING"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Models",
      "bounding": [
        -581.2616400741754,
        649.8461264928695,
        456,
        660
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Prompt",
      "bounding": [
        -16.851409974175635,
        649.8461264928696,
        564,
        660
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Sampler",
      "bounding": [
        906.0521583467066,
        684.4218828758295,
        742.7877406249997,
        696.6024999999995
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6047327114843901,
      "offset": [
        946.4800529485286,
        -530.2600673865328
      ]
    },
    "frontendVersion": "1.37.11",
    "workflowRendererVersion": "Vue",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}

ネガティブプロンプトあり版

{
  "id": "1bb0073a-db49-4b50-8314-d9b5c2285207",
  "revision": 0,
  "last_node_id": 117,
  "last_link_id": 217,
  "nodes": [
    {
      "id": 76,
      "type": "LoadImage",
      "pos": [
        -769.1906355058379,
        1484.5304120609667
      ],
      "size": [
        389.3125,
        388.59375
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            205,
            214
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "LoadImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "input (2).png",
        "image"
      ]
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        2030,
        750
      ],
      "size": [
        450,
        306
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 186
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "SaveImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "Flux2-Klein"
      ]
    },
    {
      "id": 99,
      "type": "KSamplerSelect",
      "pos": [
        959.2098747902028,
        1070.3641251886688
      ],
      "size": [
        324,
        82.65625
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            180
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "KSamplerSelect",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "euler"
      ]
    },
    {
      "id": 100,
      "type": "SamplerCustomAdvanced",
      "pos": [
        1389.4867567372273,
        749.264024796517
      ],
      "size": [
        254.828125,
        144
      ],
      "flags": {
        "collapsed": false
      },
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "noise",
          "type": "NOISE",
          "link": 178
        },
        {
          "name": "guider",
          "type": "GUIDER",
          "link": 179
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 180
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 181
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 182
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            183
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "SamplerCustomAdvanced",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 101,
      "type": "VAEDecode",
      "pos": [
        1715.1762935833194,
        749.6256385518641
      ],
      "size": [
        264,
        72
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 183
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 184
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            186
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAEDecode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 102,
      "type": "RandomNoise",
      "pos": [
        950.425203300945,
        748.1154158274007
      ],
      "size": [
        324,
        80
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "NOISE",
          "type": "NOISE",
          "links": [
            178
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "RandomNoise",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        367603851448738,
        "randomize"
      ]
    },
    {
      "id": 103,
      "type": "UNETLoader",
      "pos": [
        -576.8615233769585,
        750.4795214386438
      ],
      "size": [
        437.3125,
        117.3125
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            177
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "UNETLoader",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2-klein\\flux-2-klein-9b.safetensors",
        "default"
      ]
    },
    {
      "id": 104,
      "type": "CLIPLoader",
      "pos": [
        -576.8615233769585,
        930.4793747528529
      ],
      "size": [
        437.3125,
        151.96875
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            185,
            201
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CLIPLoader",
        "models": [
          {
            "name": "qwen_3_8b_fp8mixed.safetensors",
            "url": "https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors",
            "directory": "text_encoders"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2-klein\\qwen_3_8b.safetensors",
        "flux2",
        "default"
      ]
    },
    {
      "id": 105,
      "type": "VAELoader",
      "pos": [
        -576.8615233769585,
        1134.4795034021447
      ],
      "size": [
        437.3125,
        82.65625
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            184,
            215
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "flux2-vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors",
            "directory": "vae"
          }
        ],
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "FLUX.2\\flux2-vae.safetensors"
      ]
    },
    {
      "id": 106,
      "type": "EmptyFlux2LatentImage",
      "pos": [
        582.1872740572455,
        1434.4689966428673
      ],
      "size": [
        324,
        144
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 208
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 209
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            182
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "EmptyFlux2LatentImage",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        1600,
        2400,
        1
      ]
    },
    {
      "id": 108,
      "type": "CFGGuider",
      "pos": [
        954.817539045574,
        893.5793940106894
      ],
      "size": [
        324,
        128
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 177
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 216
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 217
        }
      ],
      "outputs": [
        {
          "name": "GUIDER",
          "type": "GUIDER",
          "links": [
            179
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CFGGuider",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        1
      ]
    },
    {
      "id": 109,
      "type": "Flux2Scheduler",
      "pos": [
        957.7456318116872,
        1196.220606121286
      ],
      "size": [
        324,
        144
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 206
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 207
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            181
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "Flux2Scheduler",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        4,
        1600,
        2400
      ]
    },
    {
      "id": 110,
      "type": "CLIPTextEncode",
      "pos": [
        9.388887650873471,
        743.577153171432
      ],
      "size": [
        507.765625,
        125
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 185
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            212
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "CLIPTextEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        ""
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 111,
      "type": "ConditioningZeroOut",
      "pos": [
        127.05844558727472,
        1237.6462143292688
      ],
      "size": [
        244.953125,
        48
      ],
      "flags": {
        "collapsed": false
      },
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.1",
        "Node name for S&R": "ConditioningZeroOut",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 112,
      "type": "GetImageSize",
      "pos": [
        147.58209143849558,
        1481.4283423750694
      ],
      "size": [
        225,
        100
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 205
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            206,
            208
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            207,
            209
          ]
        },
        {
          "name": "batch_size",
          "type": "INT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "GetImageSize",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 114,
      "type": "CLIPTextEncode",
      "pos": [
        13.71723157360293,
        991.7670261139367
      ],
      "size": [
        502.46875,
        125
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 201
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            213
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.9.2",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 115,
      "type": "ReferenceLatent",
      "pos": [
        640.9002378035835,
        983.4073783226281
      ],
      "size": [
        244.96171875,
        85.19999999999999
      ],
      "flags": {
        "collapsed": false
      },
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 213
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 210
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            217
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "ReferenceLatent",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 116,
      "type": "VAEEncode",
      "pos": [
        146.19173820358344,
        1636.659218322628
      ],
      "size": [
        228,
        85.19999999999999
      ],
      "flags": {
        "collapsed": false
      },
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 214
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 215
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            210,
            211
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "VAEEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    },
    {
      "id": 117,
      "type": "ReferenceLatent",
      "pos": [
        631.1566523035834,
        734.4843523226282
      ],
      "size": [
        252,
        85.19999999999999
      ],
      "flags": {
        "collapsed": false
      },
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 212
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 211
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            216
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "ReferenceLatent",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": []
    }
  ],
  "links": [
    [
      177,
      103,
      0,
      108,
      0,
      "MODEL"
    ],
    [
      178,
      102,
      0,
      100,
      0,
      "NOISE"
    ],
    [
      179,
      108,
      0,
      100,
      1,
      "GUIDER"
    ],
    [
      180,
      99,
      0,
      100,
      2,
      "SAMPLER"
    ],
    [
      181,
      109,
      0,
      100,
      3,
      "SIGMAS"
    ],
    [
      182,
      106,
      0,
      100,
      4,
      "LATENT"
    ],
    [
      183,
      100,
      0,
      101,
      0,
      "LATENT"
    ],
    [
      184,
      105,
      0,
      101,
      1,
      "VAE"
    ],
    [
      185,
      104,
      0,
      110,
      0,
      "CLIP"
    ],
    [
      186,
      101,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      201,
      104,
      0,
      114,
      0,
      "CLIP"
    ],
    [
      205,
      76,
      0,
      112,
      0,
      "IMAGE"
    ],
    [
      206,
      112,
      0,
      109,
      0,
      "INT"
    ],
    [
      207,
      112,
      1,
      109,
      1,
      "INT"
    ],
    [
      208,
      112,
      0,
      106,
      0,
      "INT"
    ],
    [
      209,
      112,
      1,
      106,
      1,
      "INT"
    ],
    [
      210,
      116,
      0,
      115,
      1,
      "LATENT"
    ],
    [
      211,
      116,
      0,
      117,
      1,
      "LATENT"
    ],
    [
      212,
      110,
      0,
      117,
      0,
      "CONDITIONING"
    ],
    [
      213,
      114,
      0,
      115,
      0,
      "CONDITIONING"
    ],
    [
      214,
      76,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      215,
      105,
      0,
      116,
      1,
      "VAE"
    ],
    [
      216,
      117,
      0,
      108,
      1,
      "CONDITIONING"
    ],
    [
      217,
      115,
      0,
      108,
      2,
      "CONDITIONING"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Models",
      "bounding": [
        -581.2616400741754,
        649.8461264928695,
        456,
        660
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Prompt",
      "bounding": [
        -16.851409974175635,
        649.8461264928696,
        564,
        660
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Sampler",
      "bounding": [
        930.3279312258228,
        671.282014592869,
        742.7877406249997,
        696.6024999999995
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6209213230591555,
      "offset": [
        901.4064487288598,
        -556.0431316756525
      ]
    },
    "frontendVersion": "1.37.11",
    "workflowRendererVersion": "Vue",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}
AuthorPortraitAlt
著者
iPentecのメインデザイナー
Webページ、Webクリエイティブのデザインを担当。PhotoshopやIllustratorの作業もする。 最近は生成AIの画像生成の沼に沈んでいる。
作成日: 2026-01-17