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

Also use alpha channel from img2img input image as mask #124

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

fuzzytent
Copy link
Contributor

If you add an image with an alpha channel to img2img, it is also used for masking. This lets you do the masking with a proper image editor instead of the terrible Gradio one.

Any pixel with any transparency is treated as part of the mask, so partial transparency doesn't create a partial mask. But it is useful for editors that do not save color information in completely transparent areas.

If you use both an alpha channel and the Gradio mask they are combined.

@AUTOMATIC1111
Copy link
Owner

that's a great idea

@AUTOMATIC1111 AUTOMATIC1111 merged commit 0959fa2 into AUTOMATIC1111:master Sep 8, 2022
Sashimimochi pushed a commit to Sashimimochi/stable-diffusion-webui that referenced this pull request Apr 7, 2023
Fixes  AUTOMATIC1111#124

Creates empty dir for saving, should be done by the UI...
nne998 pushed a commit to fjteam/stable-diffusion-webui that referenced this pull request Sep 26, 2023
…olution

Increase Annotator resolution to 2048
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

Successfully merging this pull request may close these issues.

2 participants