This is an interface using Gradio to iteract with Stable Diffusion XL. I wrote this to learn Gradio and wanted to share for 💪 others. I have about four hours of dev time building this and learning Gradio, Pytorch and Python. I believe the next version of this could be built much ⚡ faster.

This project is underpinned by Huggingface. I learned a lot doing this, feel free to copy and improve!

License


Table of Contents


Installation

This application is simple to install. You need python installed, pytorch, and an Nvidia GPU to use this interface. Anaconda is a great distribution.

# Example:
git clone https://github.com/ramborogers/stablediffusionxl.git
cd stablediffusionxl
pip install -r requirements.txt

Usage

Just launch the application using python. You may want to activate conda.

# Example:
python app.py

Open up your browser to http://127.0.0.1:7860/ and start creating! The gallery will update after the first render.

usage

Acknowledgements

Gradio is amazing, and so is Stable Diffusion XL!

matthewrogers.org