A hands-on, tutorial-driven project for experimenting with various Stable Diffusion pipelines using Hugging Face's diffusers library.
| Notebook | Description |
|---|---|
01_txt2img_tutorial.ipynb |
Generate images from text prompts |
02_inpainting_tutorial.ipynb |
Modify masked image areas using prompts |
03_img2img_tutorial.ipynb |
Transform images using guiding 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"
- 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
"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 | File | Description |
|---|---|---|
| Gradio | app/gradio_app.py |
Launches a Gradio web UI for text-to-image generation |
| Streamlit | app/streamlit_app.py |
Launches a Streamlit app with prompt input and image output |
To run locally:
# Gradio
python app/gradio_app.py
# Streamlit
streamlit run app/streamlit_app.pypip install -r requirements.txtBy Zahra Anvari
This project is licensed under the MIT License. You are free to use, modify, and distribute it with attribution.