replicate / inpainter

A web GUI built with Next.js for inpainting with Stable Diffusion using the Replicate API.
https://inpainter.vercel.app
MIT License
376 stars 87 forks source link

Quick question about model used #34

Open surya-narayanan opened 5 months ago

surya-narayanan commented 5 months ago

Hi,

I was just trying to see what model you use - it looks like you have a link that points to stable diffusion, but I was a bit confused since stable diffusion generally does text-to-image without a mask. Is it a specific variant of sd/sdxl that does inpainting like this one?

Regards, Surya

zeke commented 5 months ago

It's using an older version of Stable Diffusion that had init_image and mask as inputs.

Code: https://github.com/replicate/inpainter/blob/92274fe8c460d93873f12e454975ac985b3c84f3/pages/api/predictions/index.js#L16-L18

Model version: https://replicate.com/stability-ai/stable-diffusion/versions/be04660a5b93ef2aff61e3668dedb4cbeb14941e62a3fd5998364a32d613e35e

We should probably update it to use SDXL which is faster, higher quality, and has support for init images and masks. See https://replicate.com/stability-ai/sdxl

If you wanna take a shot at updating that in a pull request, I'd be happy to review it and ship it. :)