Skip to content

Instantly share code, notes, and snippets.

View giftedunicorn's full-sized avatar
🧘
Zen

giftedunicorn367 giftedunicorn

🧘
Zen
View GitHub Profile
@giftedunicorn
giftedunicorn / inpaint-person.py
Created August 7, 2023 10:10 — forked from Mason-McGough/inpaint-person.py
A simple script that removes people from photos using the stable-diffusion-webui API
"""
Remove a person from an image using a stable diffusion server
This short demo accompanies the Medium article "Stable Diffusion as an API: Make a Person-Removing Microservice".
The full article can be found here: https://towardsdatascience.com/stable-diffusion-as-an-api-5e381aec1f6
Example usage:
python inpaint-person.py my-image.jpg -W 768 -H 768 -o my-output.png
"""