FLUX.2 [klein]とは?

FLUX.2 [klein] は、画像生成指示ベース画像編集 を1つのモデルで扱える、小型・高速のFlux.2系モデルです。

ラインナップ

  • 9B / 9B Base(FLUX Non-Commercial License。非商用)
  • 4B / 4B Base(Apache 2.0)

分かりにくいですが、無印のほうが 蒸留(Distilled)モデルです。 Base(20 steps)に対し、Distilled は 4 steps で生成出来ます。

大きな性能差は無いので、生成には基本的にDistilledモデルを使っていきます。


推奨設定値

  • 解像度
    • 最小 64×64
    • 最大 4MP (2048×2048)
    • 縦横ともに 16 の倍数
  • 参照画像枚数
    • 最大 4

Flux.2 [klein] 9B

モデルのダウンロード(9B)

📂ComfyUI/
└── 📂models/
    ├── 📂diffusion_models/
    │   ├── flux-2-klein-9b-fp8.safetensors
    │   └── flux-2-klein-base-9b-fp8.safetensors
    ├── 📂text_encoders/
    │   └── qwen_3_8b.safetensors
    └── 📂vae/
        └── flux2-vae.safetensors

text2image Base

Flux.2-klein-base-9b_text2image.json

公式workflowでは、Flux2Scheduler というものを使いますが、大きな違いは無いので、workflowを簡略化するためSimpleを使っています。

text2image Distilled

Flux.2-klein-9b_text2image.json

以下のパラメータだけ変更します。

  • CFG : 1.0
  • steps : 4

画像編集 Base

Flux.2-klein-base-9b_image-edit.json

「入力画像 + 指示プロンプト」 が基本です。

  • 入力画像を VAE Encode して ReferenceLatent に渡します。

画像編集 Distilled

Flux.2-klein-9b_image-edit.json

画像編集(マルチリファレンス)Base

複数枚の画像を入力して参照させることもできます。

Flux.2-klein-base-9b_image-edit-multi.json
  • 参照画像 → VAE Encode → ReferenceLatent この塊を直列に繋いでいくだけです。
  • 2枚でも3枚でもOKです。(ただし上限は4)

画像編集(マルチリファレンス)Distilled

Flux.2-klein-9b_image-edit-multi.json

Flux.2 [klein] 4B

モデルのダウンロード(4B)

📂ComfyUI/
└── 📂models/
    ├── 📂diffusion_models/
    │   ├── flux-2-klein-4b.safetensors
    │   └── flux-2-klein-base-4b.safetensors
    ├── 📂text_encoders/
    │   └── qwen_3_4b.safetensors
    └── 📂vae/
        └── flux2-vae.safetensors

workflow

基本は9Bと全く同じです。
モデルとテキストエンコーダを4Bのものに置き換えるだけです。

text2image

  • Flux.2-klein-base-4b_text2image.json
  • Flux.2-klein-4b_text2image.json

画像編集

  • Flux.2-klein-base-4b_image-edit.json
  • Flux.2-klein-4b_image-edit.json

画像編集(マルチリファレンス)

  • Flux.2-klein-base-4b_image-edit-multi.json
  • Flux.2-klein-4b_image-edit-multi.json

できること

ここにあるのはあくまで一例です。

絵柄を変えたり、オブジェクトを消すのは画像編集のほんの一部に過ぎません。何を「画像編集」とみなすか?で出来ることは無限に広がっています。色々な使い方を開発してみてください。

単一画像

スタイル変換

Reskin this into a watercolor illustration on textured paper.

環境・状態変更

Change the time to bright midday.

オブジェクト入れ替え / 追加

Replace the ice bear with an ice duck. Add a hat on the duck with light blue, red, and white colors. Add sneakers on the duck.

テキスト編集

Edit the text "WELCOME" to "Flux.2".

画像修復

Restore and colorize this black-and-white photo.

ControlNetライク(Pose)

ControlNetの仕組みで動いているわけではありません。
棒人間や深度マップを与え、これを元にリアルな画像を生成してもらうことで、画像編集として ControlNet的 なタスクを行うことが出来ます。

A office lady sitting on outdoor stairs at dusk, matching the pose from the reference image. Evening ambient light, calm urban atmosphere. She wears a long skirt and a black camisole with frills. Natural, realistic photo

inpainting / outpainting

マスクを与えてそこを埋めているわけではなく、「灰色のエリアを自然に埋めてください」と指示をするだけです。

Outpaint the gray areas to extend the scene naturally

雑コラのリファイン

Turn this into a single realistic underwater ruins scene with two robots: a sleek white mecha and a large rusty moss-covered robot.

マルチリファレンス画像編集

スタイル転送

Change image 1 to match the style of image 2.

オブジェクト・人物入れ替え

Replace the person in image 1 with the person from image 2.

オブジェクト追加

Place the airship from image 2 in the sky of image 1,Make the airship prominent (closer to camera)

参考