Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.7 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.7 KB

Diffusers Inpainting

License

This is a repository for image inpainting with a Stable Diffusion finetunes which weren't trained on inpainting task. Code is based on pipeline from huggingface 🤗 Diffusers library.

It is a simple learning project, it is better to use StableDiffusionInpaintPipeline or StableDiffusionInpaintPipelineLegacy from 🤗 Diffusers library.

inpainting

Installation

  1. Create a virtual environment:
virtualenv -p python3.9 .venv && source .venv/bin/activate
  1. Install all requirements:
pip install -r requirements.txt
  1. Use the project 🎉

Usage

To run use command below:

python run_simple_inpainting.py --device cuda:1 --prompt "Face of a yellow cat, high resolution, sitting on a park bench" --strength 0.95 --seed 0

Diffusion inpainting process

inpainting

This gif was created by decoding latent features at each step of the diffusion process.

Built With

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors