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

Replace the content of the mask with an image? #125

Open
lunatico67 opened this issue Jan 2, 2024 · 4 comments
Open

Replace the content of the mask with an image? #125

lunatico67 opened this issue Jan 2, 2024 · 4 comments

Comments

@lunatico67
Copy link

The normal way is to create a mask and write a prompt to modify its content.
What I want is to modify the content of that mask with the content of an image, not with a prompt, for example, I create a mask of a woman's shirt and I want to change it for a texture of an image.
I guess it is possible with ControlNet inpaint but I don't know how to do it.

@Uminosachi
Copy link
Owner

Please download the IP adapter model for ControlNet from the links below and save it in the 'extensions/sd-webui-controlnet/models/' folder. Then, restart the webUI. Doing so will enable the use of the IP adapter in the 'ControlNet options' found under the 'ControlNet Inpaint' tab. The IP adapter becomes active when you drag and drop a reference image into the 'Reference Image' area.

Before you begin, make sure to set 'Multi-ControlNet' to 2 or higher in the 'ControlNet' section of the webUI settings. Additionally, when using the 'Reference-Only' mode in the 'ControlNet options', you can use this feature without the need to download any models.

@lunatico67
Copy link
Author

Thanks for the help.
inpaint

I must have misconfigured something because nothing comes out in the resulting image.

@Uminosachi
Copy link
Owner

Please select the SD 1.5 model from the 'Stable Diffusion checkpoint' list in the top left of the webUI. It does not support other models such as SDXL.

@lunatico67
Copy link
Author

Thanks!
Works with Reference only, with IPAdapter the resulting shirt has nothing to do with the reference picture
inpaint2

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