Skip to main content

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:

# 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/

Release files for diffusionui 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diffusionui 0.4.1
File Size Uploaded
diffusionui-0.4.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diffusionui 0.4.1
File Interpreter ABI Platform
diffusionui-0.4.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 24.1 kB

Release files / diffusionui-0.4.1.tar.gz

Download URL diffusionui-0.4.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d6576ef99e13ff471b2c10f254048dd8b84022fa5f600078a415901bee2cbde6
BLAKE2b-256 checksum
How to use checksums
b9261ecd76f74510a4ee18b0ec4db40b2fcdf9bd29a91d6b0159dbef4c320b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.15

Release files / diffusionui-0.4.1-py2.py3-none-any.whl

Download URL diffusionui-0.4.1-py2.py3-none-any.whl
Size 8.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
08c11094d75d2c2fc919a08442c1f05eeadf0d000e295987bf86b9794220add9
BLAKE2b-256 checksum
How to use checksums
9bd12a4bd1adc41d5b177369b86e43ed6253d15cae8d2822821a63480c92efc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.15

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page