File size: 883 Bytes
9f28dd4
 
 
 
 
 
 
1f1a9b6
9f28dd4
1f1a9b6
9f28dd4
 
 
 
 
 
 
 
 
 
 
 
 
1f1a9b6
 
9f28dd4
 
 
 
 
1f1a9b6
 
9f28dd4
 
 
 
1f1a9b6
 
9f28dd4
1f1a9b6
9f28dd4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: "image"
sdk: gradio
colorFrom: blue
colorTo: indigo
short_description: "image generation tool"
---

# FLUX.2 Klein – Image Generation & Editing (CPU / GPU)

This repository provides a minimal **Diffusers + Gradio** application for running
**FLUX.2 Klein** models for text-to-image generation and image-based editing.

The application uses **`main.py`** as the entry point.

---

## ⚠️ Important Note

FLUX.2 models are **transformer-based rectified flow models** and are **not optimized
for fast CPU inference**. For practical performance, **GPU usage is strongly recommended**.

---

## Supported Models

- **FLUX.2-klein-4B** – Distilled variant, optimized for faster inference  
- **FLUX.2-klein-base-4B** – Base variant, higher quality but slower

---

## Requirements

All dependencies are listed in `requirements.txt`.

---

## Run

```bash
python main.py