diffusionui-0.4.1
توضیحات
Unified Stable Diffusion pipeline for diffusers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | diffusionui-0.4.1 |
| نام | diffusionui |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Leszek Hanusz |
| ایمیل نویسنده | leszek.hanusz@gmail.com |
| آدرس صفحه اصلی | https://github.com/leszekhanusz/diffusion-ui-backend |
| آدرس اینترنتی | https://pypi.org/project/diffusionui/ |
| مجوز | Apache |
# 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
## Documentation
The documentation is available [here](https://diffusionui.readthedocs.io)
## Installation
Detailled installation instructions are available [in the documentation](https://diffusionui.readthedocs.io/en/latest/backends/stable-diffusion.html).
First install [pytorch](https://pytorch.org) 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:
```bash
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](https://huggingface.co/CompVis/stable-diffusion-v1-4)
- [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
# 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:
```bash
# 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/
```
نیازمندی
| مقدار | نام |
|---|---|
| ==0.4.2 | diffusers |
| >=3.1.6 | gradio |
| >=4.21.3 | transformers |
| ==22.3.0 | black |
| <1,>=0.42 | check-manifest |
| <6,>=5.1.1 | sphinx |
| ==1.0.0 | sphinx-rtd-theme |
| ==3.4.0 | sphinx-tabs |
| ==3.8.1 | flake8 |
| ==5.10.1 | isort |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl diffusionui-0.4.1:
pip install diffusionui-0.4.1.whl
نصب پکیج tar.gz diffusionui-0.4.1:
pip install diffusionui-0.4.1.tar.gz