Skip to main content

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:

# 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


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.3.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

diffusionui-0.3.0-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file diffusionui-0.3.0.tar.gz.

File metadata

  • Download URL: diffusionui-0.3.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.14

File hashes

Hashes for diffusionui-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8c62f510e05bebd4b7d729983a8851d594f582c85bb12a72435ec9ff78fb10b8
MD5 b6a9e3e10e713971f784c53670834ffc
BLAKE2b-256 491b96d1b82a208afb7b51e185968ee9c0a4d93a929f8d519ffa66167108ee0a

See more details on using hashes here.

File details

Details for the file diffusionui-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for diffusionui-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 45dd81099943c9891b62148a268de130a6485d04aaa8394a738d8223f47688e3
MD5 84314b2d6fde9d09a69de2857e2abe44
BLAKE2b-256 4fa644cb27cce8c0b9c00b43e2da77cc1340c5edce99e5d6d7c0604dcf0b3426

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page