A simple web application that generates images from text prompts using Stable Diffusion v1.5, built with Gradio.
- Generate high-quality images from text descriptions
- User-friendly web interface
- Powered by Stable Diffusion v1.5 model
- GPU acceleration support
- Python 3.8+
- CUDA-compatible GPU (recommended for faster generation)
- At least 8GB VRAM for GPU acceleration
- Clone this repository:
git clone <your-repo-url>
cd stable-diffusion-generator- Install the required dependencies:
pip install -r requirements.txt- Run the application:
python app.py-
Open your web browser and navigate to the URL shown in the terminal (usually
http://127.0.0.1:7860) -
Enter your text prompt in the input box and click "Submit" to generate an image
- "A beautiful sunset over mountains"
- "A futuristic city at night"
- "A cat wearing sunglasses"
diffusers==0.27.2- Hugging Face Diffusers librarytransformers==4.33.3- Transformers libraryaccelerate==0.21.0- Acceleration library for faster inferencetorch==1.13.1- PyTorchgradio==3.39.0- Web UI frameworkPillow==9.5.0- Image processing library
This application uses the Stable Diffusion v1.5 model from Hugging Face (sd-legacy/stable-diffusion-v1-5).
[Add your license here]
[Add contribution guidelines here]