Skip to content
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

Request #2

Open
lhucklen opened this issue Oct 5, 2022 · 1 comment
Open

Request #2

lhucklen opened this issue Oct 5, 2022 · 1 comment

Comments

@lhucklen
Copy link

lhucklen commented Oct 5, 2022

Is there anyway to preserve faces when inpainting?

will clip guided diffusion ever support inpainting as well or is that a dumb question?

@Skquark
Copy link
Owner

Skquark commented Oct 22, 2022

I guess the simple answer is to just not include the face in the mask_image white painted area. That's too obvious of an answer so I'm almost thinking you were only using an init_image and didn't use the mask_image to make it actual inpainting.
You can use the built in Dream Mask Maker WebUI to open your init image, paint a rough blob over the face, then choose Mask mode Everything Else and you'll have the parameters and the images ready to run that Dream prompt. Hope that's a full answer to your request.
I don't think the clip guided will go the direction of image2image or inpainting support, don't think that's in their planned feature list, but would be cool.
Also want to mention that as of a few days ago, they updated the Inpainting model and code and made some major improvements on the results. However they added a new HuggingFace Inpainting model card that you have to click on and accept to use the feature. Another minor inconvenience, but things out of my control.
Thanks, enjoy using my notebook, a rewritten version of it coming very soon with a pretty WebUI. Stay tuned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants