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
Installation
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
- 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
diffusionui-0.0.6.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file diffusionui-0.0.6.tar.gz
.
File metadata
- Download URL: diffusionui-0.0.6.tar.gz
- Upload date:
- Size: 7.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 | 30a391666b8171375408008e5d9b90b0c8962a4dbd4545d22dba1312ce446241 |
|
MD5 | 8153aed467332fbd0f291303ac7bdf5c |
|
BLAKE2b-256 | 3d84ed946ac33a05387fea817f72ffdb30eec3b3ffa1617aa156330eab87409e |
File details
Details for the file diffusionui-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: diffusionui-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 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 | e292f6e19470b1863cc232b45f7b55e2939d3bef5aaf49ec2dc960c91b6af06d |
|
MD5 | 7c9fea76e55b474277dbc7534add0885 |
|
BLAKE2b-256 | a8ab09d288118f2f2d50e373f7ce2b0df60d45773159d50d26bd530760e63d61 |