Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 1.52 KB

File metadata and controls

52 lines (45 loc) · 1.52 KB

Stable Diffusion Implementation - Text to Image

Text to Image app with Stable Diffusion Pipeline and CustomTkinter as its UI.

Source :

  1. Stable Diffusion App - Github, HuggingFace
  2. Custom Tkinter - Github

How to run:

  1. Clone this repository
git clone https://github.com/marwanmusa/Text-to-Image-with-StableDiffusion
  1. Make virtual environment on your local directory
python -m venv "your_env_name"
  1. Activate the environment
"your_env_name"/Scripts/Activate.ps1
  1. 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
  1. Run app.py
python app.py

Generated image samples:

  1. Duck Skiing

Duck Skiing


2. Rabbit Astronaut

Rabbit Astronaut


3. Erupting Volcano on Mars

Erupting Volcano on Mars

Note
You need to adjust your torch installation version to match with your cuda toolkit version installed.