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.2.0.tar.gz
.
File metadata
- Download URL: diffusionui-0.2.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a79c2dce4ae2fd2fe93b1384829b42aab3a3086298d4155bea349ff08b066b |
|
MD5 | a7ce23bee0b440bd2f47bacf71fbdfbc |
|
BLAKE2b-256 | 142d492f891cd04db6569f452f449c2a7e1fc23af51406a3e8d2879513329cc9 |
File details
Details for the file diffusionui-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: diffusionui-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.6 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 | 02e420651c0bb24a0ff029bad98bcccd9c85b19b52ef274afcb18eeab4a3c782 |
|
MD5 | e1de4991d426da6d21e05d2e6ccb452b |
|
BLAKE2b-256 | bb856661878685830c86a23a7716a94da67cc2fa173fe88e9afc211fd3015159 |