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

How to pass the mask for inpainting via diffusers library #52

Closed
darshats opened this issue May 5, 2023 · 1 comment
Closed

How to pass the mask for inpainting via diffusers library #52

darshats opened this issue May 5, 2023 · 1 comment

Comments

@darshats
Copy link

darshats commented May 5, 2023

Hi,
The gradio script for inpainting controlnet set -1 for the masked areas.

How can we do this via diffusers library that takes a PIL image? I tried creating the PIL image of float32 type, but it does not work for RGB or RGBA images.

@darshats darshats changed the title Inpaint option requires -1 to be set for mask. How to do via diffusers? . May 5, 2023
@darshats darshats closed this as completed May 5, 2023
@darshats darshats reopened this May 5, 2023
@darshats darshats changed the title . How to pass the mask for inpainting via diffusers library May 5, 2023
@lllyasviel
Copy link
Owner

perfect inpaint masking and processing is a1111-only. see also https://github.com/lllyasviel/ControlNet-v1-1-nightly

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