Skip to content

Latest commit

 

History

History
83 lines (53 loc) · 2.21 KB

README.md

File metadata and controls

83 lines (53 loc) · 2.21 KB

Hugging Face diffusers demo

text-to-image image-to-image inpainting

🤗 Hugging Face diffusers demo based on the tutorial. Read the blog post or Medium story.

Prerequisites

Python 3:

brew install python

Install

Clone the repository:

git clone https://github.com/ai-action/hugging-face-diffusers-demo.git
cd hugging-face-diffusers-demo

Create the virtualenv:

python3 -m venv .venv
source .venv/bin/activate

Install the dependencies:

pip install -r requirements.txt

Run

Text-to-Image

Text-to-image:

python text_to_image.py

Image-to-Image

Image-to-image:

python image_to_image.py

Inpainting

Inpainting:

python inpainting.py

Disable Telemetry

Disable telemetry:

DO_NOT_TRACK=1 python text_to_image.py

Clear Cache

Clear cache:

rm -rf ~/.cache/huggingface/

License

MIT