Sign In

SDXL Inpainting Gradio GUI

70

843

14

Updated: Oct 6, 2024

tool

Type

Other

Stats

630

0

Reviews

Published

Oct 5, 2023

Base Model

SDXL 1.0

Hash

AutoV2
6C1073BCB8

Using the model from: diffusers/stable-diffusion-xl-1.0-inpainting-0.1 · Hugging Face

PRE-INSTALLED PYTHON REQUIRED

I recommend you install 3.10 or higher, I have 3.10.6 just FYI. Older versions may work, but I can't confirm that.

This is a small Gradio GUI that allows you to use the diffusers SDXL Inpainting Model locally. It comes with some optimizations that bring the VRAM usage down to 7-9GB, depending on how large of an image you are working with. I recommend using the "EulerDiscreteScheduler". This GUI is similar to the Huggingface demo, but you won't have to wait for your turn and there are also additional features. Use the browser zoom (CTRL + Mouse Wheel) to inpaint with better accuracy.

v2: Now with integrated outpainting, mask inversion, noise mask, and mask blur

Installation:

Just run "sdxl_inpainting_installer.bat", the cmd window should close automatically once it is finished, after which you can run "sdxl_inpainting_launch.bat" (the first time will take quite a while because it is downloading the inpainting model from Huggingface) or the "no_ops" version if you have the VRAM but it will use ~10GB for just a regular 1024x1024 image (pretty pointless if you ask me because I did not observe a significant slow-down with VRAM optimizations). The GUI does not automatically open, you have to copy-paste the local IP into your browser.