Skip to content

Support Inpainting #105

Description

@10undertiber

It would be great to add input parameters to the current SD cli to specify an input and mask file to run the inpainting. For example:

./bin/sd -m ../models/sd-v1-4.ckpt -p "a lovely dog" --image ../input/alovelybench.png --mask ../input/alovelybench.mask.png

The input image:
alovelybench

The input mask:
alovelybench mask

The output:
alovelybench output

Here some references:

  1. https://stable-diffusion-art.com/inpainting_basics
  2. https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions