https://github.com/zanvari/stable-diffusion-lab
Hands-on tutorials for generating and editing images using Stable Diffusion with Hugging Face Diffusers โ includes text-to-image, inpainting, and image-to-image pipelines.
https://github.com/zanvari/stable-diffusion-lab
diffusers generative-ai gradio huggingface image-generation notebooks stable-diffusion streamlit text-to-image tutorial
Last synced: about 1 month ago
JSON representation
Hands-on tutorials for generating and editing images using Stable Diffusion with Hugging Face Diffusers โ includes text-to-image, inpainting, and image-to-image pipelines.
- Host: GitHub
- URL: https://github.com/zanvari/stable-diffusion-lab
- Owner: zanvari
- License: mit
- Created: 2025-06-18T03:34:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-18T04:08:27.000Z (about 1 year ago)
- Last Synced: 2025-06-18T04:31:39.815Z (about 1 year ago)
- Topics: diffusers, generative-ai, gradio, huggingface, image-generation, notebooks, stable-diffusion, streamlit, text-to-image, tutorial
- Language: Jupyter Notebook
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐งช Stable Diffusion Lab
A hands-on, tutorial-driven project for experimenting with various Stable Diffusion pipelines using Hugging Face's `diffusers` library.
## ๐ Tutorials Included
| Notebook | Description |
|----------|-------------|
| [`01_txt2img_tutorial.ipynb`](./notebooks/txt2img_tutorial.ipynb) | Generate images from text prompts |
| [`02_inpainting_tutorial.ipynb`](./notebooks/inpainting_tutorial.ipynb) | Modify masked image areas using prompts |
| [`03_img2img_tutorial.ipynb`](./notebooks/img2img_tutorial.ipynb) | Transform images using guiding prompts |
---
## โจ Prompt Ideas
### Text-to-Image Prompts
- `"A futuristic cityscape at sunset, highly detailed"`
- `"A magical forest with glowing plants and floating lanterns"`
- `"An astronaut playing guitar on the moon, digital art"`
- `"A cat wearing a spacesuit in a spaceship cockpit"`
### Inpainting Use Cases
- Remove objects from background and regenerate surroundings
- Replace sky with dramatic sunset
- Change outfits or accessories in portraits
- Fill missing or damaged parts of an image creatively
### Image-to-Image Prompts
- `"Turn this pencil sketch into a realistic portrait"`
- `"Make this daytime photo look like night with neon lights"`
- `"Convert this rough landscape into a digital oil painting"`
---
## ๐ฅ๏ธ App Interfaces
| App | File | Description |
|-----|------|-------------|
| Gradio | [`app/gradio_app.py`](./app/gradio_app.py) | Launches a Gradio web UI for text-to-image generation |
| Streamlit | [`app/streamlit_app.py`](./app/streamlit_app.py) | Launches a Streamlit app with prompt input and image output |
To run locally:
```bash
# Gradio
python app/gradio_app.py
# Streamlit
streamlit run app/streamlit_app.py
```
---
## ๐งฐ Requirements
```bash
pip install -r requirements.txt
```
---
## ๐ง Author
By **Zahra Anvari**
---
## ๐ License
This project is licensed under the MIT License. You are free to use, modify, and distribute it with attribution.