image / README.md
tester343's picture
Update README.md
9f28dd4 verified
---
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