An open API service indexing awesome lists of open source software.

https://github.com/edcalderin/textual-diffuser

TextualDiffuser is a text-to-image generation tool powered by Stable Diffusion. It transforms natural language prompts into high-quality visuals, making AI-powered creativity accessible for developers, designers, and artists.
https://github.com/edcalderin/textual-diffuser

diffusers image-generation ruff stable-diffusion streamlit text-prompt text2image transformers

Last synced: 2 months ago
JSON representation

TextualDiffuser is a text-to-image generation tool powered by Stable Diffusion. It transforms natural language prompts into high-quality visuals, making AI-powered creativity accessible for developers, designers, and artists.

Awesome Lists containing this project

README

          

# TextualDiffuser
TextualDiffuser is a text-to-image generation tool powered by Stable Diffusion. It transforms natural language prompts into high-quality visuals, making AI-powered creativity accessible for developers, designers, and artists. It allows users to:

- ✍️ Write a **text prompt**
- 🔧 Choose a **diffusion model**
- 🖼️ **Generate** an image
- 💾 **Download** the result

![alt](images/app.png)

---

## 🚀 Features

- Interactive text-to-image generation
- Model selection from sidebar
- Live image preview with download option
- Easy-to-use web interface with Streamlit

---

## 🛠️ Installation

### 1. Clone the Repository

```bash
git clone https://github.com/edcalderin/textual-diffuser.git
cd textual-diffuser
```

### 2. (Optional) Create and Activate Virtual Environment

```bash
conda create -n textual_diffuser python=3.12
conda activate textual_diffuser
```
```bash
source activate textual_diffuser # On Windows
```

### 3. Install Requirements
```bash
pip install -r requirements.txt
```

## ▶️ Run the App
```bash
python -m streamlit run src/streamlit.py
```

## ✨ Usage

1. Enter a text prompt (e.g., "a fantasy landscape with dragons").
2. Select a diffusion model from the sidebar.
3. Click Generate Image.
4. Preview the result and click Download if you want to save it.

## Lint
```bash
ruff format .
ruff check . --fix
```

## Removing the environment
```bash
conda env remove -n textual_diffuser
```

## ✉️ Contact
LinkedIn: https://www.linkedin.com/in/erick-calderin-5bb6963b/
e-mail: edcm.erick@gmail.com

## Enjoyed this content?
Explore more of my work on [Medium](https://medium.com/@erickcalderin)

I regularly share insights, tutorials, and reflections on tech, AI, and more. Your feedback and thoughts are always welcome!