π€ Hugging Face diffusers demo based on the tutorial. Read the blog post or Medium story.
brew install pythonClone the repository:
git clone https://github.com/ai-action/hugging-face-diffusers-demo.git
cd hugging-face-diffusers-demoCreate the virtualenv:
python3 -m venv .venv
source .venv/bin/activateInstall the dependencies:
pip install -r requirements.txtpython text_to_image.pypython image_to_image.pypython inpainting.pyDO_NOT_TRACK=1 python text_to_image.pyClear cache:
rm -rf ~/.cache/huggingface/