Unified Stable Diffusion pipeline for diffusers
Project description
diffusion-ui-backend
Gradio backend for the diffusion-ui web frontend using an unified Stable Diffusion diffusers pipeline
The gradio interface provides an API to generate images with Stable Diffusion for:
- text-to-image
- image-to-image
- inpainting
Documentation
The documentation is available here
Installation
Detailled installation instructions are available in the documentation.
First install pytorch with cuda support (if you have a NVIDIA GPU):
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
Then install diffusionui and its dependencies:
pip install diffusionui
First Usage
The first time, you have to download the model:
- create an account on https://huggingface.co
- Click on this page to accept the LICENSE
- generate a token in your settings
- login on your console with
huggingface-cli login
- then download the model with:
# using the low-memory model (for GPUs with low VRAM)
diffusionui --low-mem --download-model
# or using the full model
diffusionui --download-model
Usage
Once the model has been downloaded, you can start the backend by running:
# For the low-memory model
diffusionui --low-mem
# For the full model
diffusionui
It should produce an local URL for the gradio interface:
Running on local URL: http://127.0.0.1:7860/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file diffusionui-0.4.0.tar.gz
.
File metadata
- Download URL: diffusionui-0.4.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a53bfbd95fb3d2c1f0ce0f1dfde183988c2f91a95fd70044a0e03e0c4b3d85 |
|
MD5 | 19bebbf8ead30d69d4b874af723d9f21 |
|
BLAKE2b-256 | cc47fc588d8d0a5ec5fe602e5d4b42f8ba89d150816cc1a72017a4cc3cbe5c4f |
File details
Details for the file diffusionui-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: diffusionui-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888d98a77a6f8fa7904ebf15aaf5108ddf319a1dd9d84d3e9cd58c0a2085b8cf |
|
MD5 | d151f8c1dd18d0c950a20515045be30b |
|
BLAKE2b-256 | 1f8a41caee1ba7dc75f761201e88994290f4338dc28501c8215fb965fd5da748 |