FLUX.2 Klein Alpha

Extract foregrounds as transparent PNGs, including soft edges, shadows and partial transparency.

GitHub code and demo FLUX model weights Paper Paper PDF

Download Model
vae/ RGBA VAE for FLUX.2
loras/extract_4b.safetensors Foreground extractor for Klein Base 4B
loras/extract_9b.safetensors Foreground extractor for Klein Base 9B
loras/remove_9b.safetensors Object removal for Klein Base 9B

The demo includes a 4B / 9B extractor selector and an auto-background mode: mark an object, generate its background, then extract it as RGBA. You can also provide a composite and background directly.

Extract-4B examples

Extract-9B preserves a soft shadow

Download and run

hf download trmz/flux2-klein-alpha --local-dir weights

Follow the demo setup. Choose 4B or 9B under Extractor model. Start directly with 4B using EXTRACT_MODEL=4B.

Use prompt Foreground, guidance 4. Both extractors run at six steps.

Licences

By Xavier Jara. VAE method: AlphaVAE. Training/inference: ai-toolkit.

Citation

@misc{jara2026flux2kleinalpha,
  author = {Xavier Jara},
  title = {{FLUX.2 Klein Alpha}},
  year = {2026},
  url = {https://huggingface.co/trmz/flux2-klein-alpha}
}
Downloads last month
34
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for trmz/flux2-klein-alpha

Adapter
(104)
this model

Space using trmz/flux2-klein-alpha 1

Paper for trmz/flux2-klein-alpha