معرفی شرکت ها


diffuzers-0.3.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

diffuzers
ویژگی مقدار
سیستم عامل -
نام فایل diffuzers-0.3.5
نام diffuzers
نسخه کتابخانه 0.3.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Abhishek Thakur
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/abhishekkrthakur/diffuzers
آدرس اینترنتی https://pypi.org/project/diffuzers/
مجوز -
# diffuzers A web ui and deployable API for [🤗 diffusers](https://github.com/huggingface/diffusers). < under development, request features using issues, prs not accepted atm > <a target="_blank" href="https://colab.research.google.com/github/abhishekkrthakur/diffuzers/blob/main/diffuzers.ipynb"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a> <a href='https://diffuzers.readthedocs.io/en/latest/?badge=latest'> <img src='https://readthedocs.org/projects/diffuzers/badge/?version=latest' alt='Documentation Status' /> </a> ![image](https://github.com/abhishekkrthakur/diffuzers/raw/main/static/screenshot.jpeg) If something doesnt work as expected, or if you need some features which are not available, then create request using [github issues](https://github.com/abhishekkrthakur/diffuzers/issues) ## Features available in the app: - text to image - image to image - instruct pix2pix - textual inversion - inpainting - outpainting (coming soon) - image info - stable diffusion upscaler - gfpgan - clip interrogator - more coming soon! ## Features available in the api: - text to image - image to image - instruct pix2pix - textual inversion - inpainting - outpainting (via inpainting) - more coming soon! ## Installation To install bleeding edge version of diffuzers, clone the repo and install it using pip. ```bash git clone https://github.com/abhishekkrthakur/diffuzers cd diffuzers pip install -e . ``` Installation using pip: ```bash pip install diffuzers ``` ## Usage ### Web App To run the web app, run the following command: ```bash diffuzers app ``` ### API To run the api, run the following command: ```bash diffuzers api ``` Starting the API requires the following environment variables: ``` export X2IMG_MODEL=stabilityai/stable-diffusion-2-1 export DEVICE=cuda ``` If you want to use inpainting: ``` export INPAINTING_MODEL=stabilityai/stable-diffusion-2-inpainting ``` To use long prompt weighting, use: ``` export PIPELINE=lpw_stable_diffusion ``` If you have `OUTPUT_PATH` in environment variables, all generations will be saved in `OUTPUT_PATH`. You can also use other (or private) huggingface models. To use private models, you must login using `huggingface-cli login`. API docs are available at `host:port/docs`. For example, with default settings, you can access docs at: `127.0.0.1:10000/docs`. ## All CLI Options for running the app: ```bash ❯ diffuzers app --help usage: diffuzers <command> [<args>] app [-h] [--output OUTPUT] [--share] [--port PORT] [--host HOST] [--device DEVICE] [--ngrok_key NGROK_KEY] ✨ Run diffuzers app optional arguments: -h, --help show this help message and exit --output OUTPUT Output path is optional, but if provided, all generations will automatically be saved to this path. --share Share the app --port PORT Port to run the app on --host HOST Host to run the app on --device DEVICE Device to use, e.g. cpu, cuda, cuda:0, mps (for m1 mac) etc. --ngrok_key NGROK_KEY Ngrok key to use for sharing the app. Only required if you want to share the app ``` ## All CLI Options for running the api: ```bash ❯ diffuzers api --help usage: diffuzers <command> [<args>] api [-h] [--output OUTPUT] [--port PORT] [--host HOST] [--device DEVICE] [--workers WORKERS] ✨ Run diffuzers api optional arguments: -h, --help show this help message and exit --output OUTPUT Output path is optional, but if provided, all generations will automatically be saved to this path. --port PORT Port to run the app on --host HOST Host to run the app on --device DEVICE Device to use, e.g. cpu, cuda, cuda:0, mps (for m1 mac) etc. --workers WORKERS Number of workers to use ``` ## Using private models from huggingface hub If you want to use private models from huggingface hub, then you need to login using `huggingface-cli login` command. Note: You can also save your generations directly to huggingface hub if your output path points to a huggingface hub dataset repo and you have access to push to that repository. Thus, you will end up saving a lot of disk space.


نیازمندی

مقدار نام
==0.15.0 accelerate
>=1.4.2 basicsr
>=0.12.1 diffusers
>=0.2.5 facexlib
==0.4.4 fairscale
==0.88.0 fastapi
>=1.3.7 gfpgan
>=0.11.1 huggingface-hub
==0.6.0 loguru
==2.9.1 open-clip-torch
- opencv-python
==3.20 protobuf
==5.2.1 pyngrok
==0.0.5 python-multipart
>=0.2.5 realesrgan
==1.16.0 streamlit
==0.9.0 streamlit-drawable-canvas
==0.0.3 st-clickable-images
==0.4.12 timm
>=1.12.0 torch
>=0.13.0 torchvision
==4.25.1 transformers
==0.15.0 uvicorn
~=22.0 black
==5.8.0 isort
==3.9.2 flake8
==0.901 mypy
- recommonmark
==3.1.2 sphinx
- sphinx-markdown-tables
==0.4.3 sphinx-rtd-theme
- sphinx-copybutton
~=22.0 black
==5.8.0 isort
==3.9.2 flake8
==0.901 mypy
- pytest
- pytest-cov


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl diffuzers-0.3.5:

    pip install diffuzers-0.3.5.whl


نصب پکیج tar.gz diffuzers-0.3.5:

    pip install diffuzers-0.3.5.tar.gz