Metadata-Version: 2.1
Name: diffusionui
Version: 0.0.4
Summary: Unified Stable Diffusion pipeline for diffusers
Home-page: https://github.com/leszekhanusz/diffusion-ui-backend
Author: Leszek Hanusz
Author-email: leszek.hanusz@gmail.com
License: Apache
Keywords: diffusers stable-diffusion
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Requires-Dist: diffusers (==0.2.4)
Requires-Dist: gradio (>=3.1.6)
Provides-Extra: dev
Requires-Dist: black (==22.3.0) ; extra == 'dev'
Requires-Dist: check-manifest (<1,>=0.42) ; extra == 'dev'
Requires-Dist: flake8 (==3.8.1) ; extra == 'dev'
Requires-Dist: isort (==5.10.1) ; extra == 'dev'

# diffusion-ui-backend

[Gradio](https://gradio.app) backend for the [diffusion-ui](https://github.com/leszekhanusz/diffusion-ui) web frontend
using an [unified Stable Diffusion diffusers pipeline](src/diffusionui/pipelines/README.md)

The gradio interface provides an API to generate images with [Stable Diffusion](https://github.com/CompVis/stable-diffusion) for:

- text-to-image
- image-to-image
- inpainting

## Installation

```bash
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](https://huggingface.co/docs/hub/security-tokens)
- login on your console with `huggingface-cli login`
- then download the model with:

```bash
diffusionui --download-model
```

## Usage

Once the model has been downloaded, you can start the backend by running:

```bash
diffusionui --low-mem
```

It should produce an local URL for the gradio interface:

```
Running on local URL:  http://127.0.0.1:7860/
```


