SyedMustafaAhmad / sdf-tkinter

stable-diffusion v2.1 written in a very simple python tkinter application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdf-tkinter

stable-diffusion v2.1 tkinter application written in python. Meant to be easy to setup, run and use.

Setup

1. Install Python

On Linux, it usually comes pre-installed.

2. Create a Python Virtual Environment (venv)

On Linux,

python3 -m venv venv-name

On Windows,

python -m venv venv-name

3. Activate the Virtual Environment

On Linux,

source venv-name/bin/activate

On Windows (one of these),

venv-name\Scripts\activate
venv-name\Scripts\activate.bat
venv-name\Scripts\Activate.ps1

4. Install all Packages

In the requirements.txt use the command, On Linux,

pip3 install -r requirements.txt

On Windows,

pip install -r requirements.txt

How to use?

Simple run the src/main.py file using python, On Linux,

python3 main.py

On Windows,

python main.py

Some Extra Information

  • I made this application on a 12th Gen Intel CPU with Xe graphics so I've added the Pipe to CPU checkbox. By default, it should use CUDA but it is untested.
  • The image generation takes time. On a good GPU it will be faster. You can see progress of the image generation in the console/terminal in which you ran the final command.

About

stable-diffusion v2.1 written in a very simple python tkinter application

License:GNU General Public License v3.0


Languages

Language:Python 100.0%