Image GenAI is a desktop application that generates images from text prompts using the Stable Diffusion model. It utilizes the Tkinter library for the GUI and the Hugging Face diffusers
library for generating images.
- Generate images from text prompts.
- Utilizes the Stable Diffusion 2.1 model for high-quality image generation.
- Easy-to-use graphical interface.
- Python 3.8 or higher
- Tkinter
- Pillow
- torch
- diffusers
- accelerate
-
Clone the repository:
git clone https://github.com/your-username/stable-bud.git cd stable-bud
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install tkinter pillow torch diffusers accelerate
-
Set up your Hugging Face authentication token:
Replace
"YOUR_HUGGING_FACE_TOKEN_HERE"
in theapp1.py
file with your actual Hugging Face authentication token.
-
Run the application:
python app1.py
-
Enter a text prompt:
Type a description of the image you want to generate in the text entry box.
-
Generate the image:
Click the "Generate" button to create an image based on your text prompt. The generated image will be displayed in the application window.
- Ensure you have the correct Hugging Face authentication token.
- Check that all required packages are installed.
- Ensure your system has a compatible GPU (CUDA or MPS) for faster image generation. The application will default to CPU if no compatible GPU is found.
This project is licensed under the MIT License. See the LICENSE file for details.
- Hugging Face for the
diffusers
library and the Stable Diffusion model. - Tkinter for the GUI framework.
- Pillow for image processing.