Text to Image app with Stable Diffusion Pipeline and CustomTkinter as its UI.
Source :
- Stable Diffusion App - Github, HuggingFace
- Custom Tkinter - Github
How to run:
- Clone this repository
git clone https://github.com/marwanmusa/Text-to-Image-with-StableDiffusion
- Make virtual environment on your local directory
python -m venv "your_env_name"
- Activate the environment
"your_env_name"/Scripts/Activate.ps1
- Install dependencies in requirements.txt
pip install -r path/to/requirements.txt
or if you are using pipenv, then
pipenv install
if pipenv
not installed yet, just
pip install pipenv
- Run
app.py
python app.py
Generated image samples:
- Duck Skiing
2. Rabbit Astronaut
3. Erupting Volcano on Mars
Note
You need to adjust your torch installation version to match with your cuda toolkit version installed.