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

[User Question - Advice Needed] Inpainting seems not to work properly. How to use correctly. #31

Open
ratunku opened this issue Sep 20, 2023 · 4 comments

Comments

@ratunku
Copy link

ratunku commented Sep 20, 2023

Hello good people!

I was looking up in the wiki and was searchig the web, but could figure out a solution on my own. I hope you can help me Could somebody advice please, how to inpaint with XUI correctly. I tried with positive and negative masks but the changes are made to the whole image and never to the masked or unmasked parts of the image. I created the mask in paint.net: a png image with transparency/erased pixels with the eraser tool for the masked region. Then I uploaded the source image and dragged and dropped the mask, described the desired changes ("blue dress" - original is green) and clicked on "Make!". However, the changes seem to be always applied to the whole picture and never to the masked area. I have the feeling that I might be creating masks wrongly or there is something wrong with the models I am using, but this is only a guess and might be misleading. Any Ideas? As a model I used analogMadness_v50.

Thanks a lot in advance for your help and support!

@ForserX
Copy link
Owner

ForserX commented Sep 20, 2023

Use black color for mask

@ForserX
Copy link
Owner

ForserX commented Sep 20, 2023

image

@ratunku
Copy link
Author

ratunku commented Sep 20, 2023

wow, thanks a lot for the quick response.

Black was the first color I tried for this but it didn't work for me either. Just reproduced it with a fresh image and a new mask. Same PNG file, with black mask inpainted. However, still the whole image is being rendered from instead of just the masked area. Both PNG files have the same dimensions.

Are there any settings that may contribute to inpainting and masking? Is a specific inpainting model needed maybe? I tried multiple inpainting models, but they didn't convert from savetensor.

I also unzipped and started a fresh instance, but with no effect.

I am sorry for bugging you with this. Thanks a lot for your help and support!

@ForserX
Copy link
Owner

ForserX commented Sep 20, 2023

I check it later

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

No branches or pull requests

2 participants