-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patchmatch for outpainting #4
Comments
@msuess, my apologies, looked at this too quickly, and obviously makes sense to keep inside the same container. I need to spend a bit more time with the new pipeline, but I think it only works with the specific SD inpainting model anyway, and I'd like to leave inpainting available for any model, and patchmatch seems the best way to do this. I might be a bit focused on getting all the new SD stuff working at the start of the week, but I hope to have this properly merged by end of the week, and thank you for your patience! (and again for the contribution!). |
@msuess, thanks for your patience. When you have a chance, please take look at the My changes (following on from your awesome work):
Think that's it! It works for me locally, and here's an example input and output: girl_with_pearl_earing_outpainting_in.png {
"modelInputs": {
"prompt": "girl with a pearl earing standing in a big room",
"init_image": b64encode_file(
"girl_with_pearl_earing_outpainting_in.png"
),
},
"callInputs": {
"MODEL_ID": "CompVis/stable-diffusion-v1-4",
"PIPELINE": "StableDiffusionInpaintPipelineLegacy",
"SCHEDULER": "DDIM", # Note, as of diffusers 0.3.0, no LMS yet
"FILL_MODE": "patchmatch",
},
}, |
Follow on from #1 (merged to
patchmatch
branch).Hey @msuess, thanks again for your awesome work here.
I've finally had a chance to look at this a bit more, sorry it took me a while.
I'm less familiar with PatchMatch, but from my understanding - and please correct me if I'm wrong - there's nothing
diffusers
or even GPU specific to the code here, which makes me think it would be better to put in it's own container, and even host somewhere with CPU serverless for faster times and cheaper bills. Thoughts?Also, 2 days ago, a Stable Diffusion model finetuned for inpainting was released, and apparently works really well for outpainting too. Would love your feedback if you have a chance, to let us know how it compares to patchmatch, and we should proceed with both models (See https://github.com/kiri-art/docker-diffusers-api/blob/main/CHANGELOG.md for more info).
The text was updated successfully, but these errors were encountered: