Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,41 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
for running FLUX.2 Klein models for text-to-image and image editing.
|
| 5 |
|
| 6 |
-
|
| 7 |
-
FLUX.2 models
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
## Supported Models
|
| 11 |
-
|
| 12 |
-
- FLUX.2-klein-
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Requirements
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
## Run
|
|
|
|
| 18 |
```bash
|
| 19 |
-
python
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "image"
|
| 3 |
+
sdk: gradio
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
short_description: "image generation tool"
|
| 7 |
+
---
|
| 8 |
|
| 9 |
+
# FLUX.2 Klein – Image Generation & Editing (CPU / GPU)
|
|
|
|
| 10 |
|
| 11 |
+
This repository provides a minimal **Diffusers + Gradio** application for running
|
| 12 |
+
**FLUX.2 Klein** models for text-to-image generation and image-based editing.
|
| 13 |
+
|
| 14 |
+
The application uses **`main.py`** as the entry point.
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## ⚠️ Important Note
|
| 19 |
+
|
| 20 |
+
FLUX.2 models are **transformer-based rectified flow models** and are **not optimized
|
| 21 |
+
for fast CPU inference**. For practical performance, **GPU usage is strongly recommended**.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
|
| 25 |
## Supported Models
|
| 26 |
+
|
| 27 |
+
- **FLUX.2-klein-4B** – Distilled variant, optimized for faster inference
|
| 28 |
+
- **FLUX.2-klein-base-4B** – Base variant, higher quality but slower
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
|
| 32 |
## Requirements
|
| 33 |
+
|
| 34 |
+
All dependencies are listed in `requirements.txt`.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
|
| 38 |
## Run
|
| 39 |
+
|
| 40 |
```bash
|
| 41 |
+
python main.py
|