什么是 FLUX.2 [klein]?

FLUX.2 [klein] 是 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

官方工作流用的是 Flux2Scheduler,不过效果差别不大,为了简化工作流,这里用的是 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 张都可以。(但上限是 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

工作流

基本和 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

可以做什么

这里列出的只是一些例子。

改变画风、去除物体,只是图像编辑的一小部分。把什么看作“图像编辑”,决定了它能做的事情可以无限扩展。欢迎去发掘各种各样的用法。

单张图像

Workflows单张图像
flux_2_klein_9b_style_transfer.json

风格转换

Reskin this into a watercolor illustration on textured paper.
flux_2_klein_9b_environmental_change.json

改变环境与状态

Change the time to bright midday.
flux_2_klein_9b_object_swap.json

替换 / 添加物体

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.
flux_2_klein_9b_text_edit.json

文本编辑

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

图像修复

Restore and colorize this black-and-white photo.
flux_2_klein_9b_pose.json

类 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
flux_2_klein_9b_outpainting.json

inpainting / outpainting

这里并不是给出蒙版让它填充,而只是下了一句“把灰色区域自然地补全”的指令。

Outpaint the gray areas to extend the scene naturally
flux_2_klein_9b_collage_refinement.json

粗糙拼贴的精修

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

多参考图像编辑

Workflows多参考图像编辑
flux_2_klein_9b_style_transfer_multi.json

风格迁移

Change image 1 to match the style of image 2.
flux_2_klein_9b_object_swap_multi.json

替换物体或人物

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

添加物体

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

参考资料