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

Automatic Color Inpaint #3756

Closed
wants to merge 13 commits into from

Conversation

Artheriax
Copy link
Contributor

Description

Automatic Color Inpaint Script for SD.NEXT - SD & SDXL Support

A new script to automatically inpaint colors in images using Stable Diffusion or Stable Diffusion XL.

Notes

Through usage of the color picker and the color tolerance slider you will have semi-full control to inpaint the color you want.

Environment and Testing

Tested on SD and SDXL

p.image_mask = mask_image

# override inpaint parameters
p.task_args['inpaint_full_res'] = True
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, this is not it.
to override sdnext params, simply use p.inpaint_full_res
intention of p.task_args is if you want to send something directly to the model without sdnext messing with it.
for example, something from this list: https://huggingface.co/docs/diffusers/v0.32.2/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline.__call__

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, i'll change it.

@Artheriax
Copy link
Contributor Author

Made some nice changes to the script. More control over the settings, better default values and etc.

@vladmandic vladmandic marked this pull request as draft February 14, 2025 14:00
@vladmandic
Copy link
Owner

lets keep it in draft until its ready

@Artheriax Artheriax closed this Feb 14, 2025
@Artheriax Artheriax deleted the automatic-color-inpaint branch February 14, 2025 18:52
@Artheriax Artheriax restored the automatic-color-inpaint branch February 14, 2025 18:52
@Artheriax Artheriax deleted the automatic-color-inpaint branch February 14, 2025 18:53
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