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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diffusionui-0.4.1.tar.gz.
File metadata
- Download URL: diffusionui-0.4.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6576ef99e13ff471b2c10f254048dd8b84022fa5f600078a415901bee2cbde6
|
|
| MD5 |
0ea37f3a1715b3141f49c8e15d5ad6c5
|
|
| BLAKE2b-256 |
b9261ecd76f74510a4ee18b0ec4db40b2fcdf9bd29a91d6b0159dbef4c320b20
|
File details
Details for the file diffusionui-0.4.1-py2.py3-none-any.whl.
File metadata
- Download URL: diffusionui-0.4.1-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.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08c11094d75d2c2fc919a08442c1f05eeadf0d000e295987bf86b9794220add9
|
|
| MD5 |
8df42129c2a0c23c8664b1f58c587a82
|
|
| BLAKE2b-256 |
9bd12a4bd1adc41d5b177369b86e43ed6253d15cae8d2822821a63480c92efc8
|