Skip to content

A new pipeline for inpainting(object removal) is needed!! #4836

Open

Description

@lawsonxwl

Is your feature request related to a problem? Please describe.
Thanks for your great work!!
Right now I'm using StableDiffusionInpaintPipeline with fixed prompt(such as "the empty background") to do object removal task, but one thing i've found is that when the inpaint mask doesn't cover the shadow or hairline, the model will randomly generate objects else in the mask rather than generating pure background, which is frustrating. I wonder if the inpaint pipeline is trained for removing object ? If not, when will the inpaint model trained for object removal be released(works like LDM inpainting or LaMa)? As this feature can be really useful in practice!

Describe the solution you'd like
Plz release the inpaint pipeline specialized for object removal!

Describe alternatives you've considered
Give some advice about getting rid of unwanted object generation

unwanted object generation:
A57CD3D6-DA0C-4FA3-9A88-373C7E21AC9A
F84FF064-F0D9-43DA-83A4-BF4FACB5E910
7CB3DC41-76FF-40CF-B32A-1D3D4A309D50

Activity

  1. GitHub1712 commented on Sep 11, 2023

    @GitHub1712

    Would be cool if we could train tasks like that ourself. I am missing inpaint training code example still very much.

  2. lawsonxwl commented on Sep 12, 2023

    @lawsonxwl
    Author

    Would be cool if we could train tasks like that ourself. I am missing inpaint training code example still very much.

    By modifying txt2img training code, inpainting training code can be easy to get.. But controlling the object generated by the model can be really hard!

  3. GitHub1712 commented on Sep 14, 2023

    @GitHub1712

    How could we do that? How did the inpaint models learned their abilty to continue structures against txt2img models?

  4. lawsonxwl commented on Sep 18, 2023

    @lawsonxwl
    Author

    How could we do that? How did the inpaint models learned their abilty to continue structures against txt2img models?

    By finetuning on txt2img models and using random masking strategy, Stability AI trained and released the stable-diffusion inpainting model.. You can check it out on diffusers

  5. GitHub1712 commented on Oct 11, 2023

    @GitHub1712

    Thank you, I want to train own if possible based on inpainting sdxl, is there any documentation how this was exactly trained and created, training example code?
    I am missing that for all inpaint models...

  6. donggoing commented on Dec 16, 2023

    @donggoing

    longing for the example code for finetuning, too.

  7. sayakpaul commented on Nov 30, 2024

    @sayakpaul
    Member

    @asomoza do we have any examples/resources for this now?

  8. asomoza commented on Nov 30, 2024

    @asomoza
    Member

    we have now object removal training-free guides and models but the discussion was also about training code examples for inpainting which we don't have yet.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions