IDEA-Research / Grounded-Segment-Anything

Grounded SAM: Marrying Grounding DINO with Segment Anything & Stable Diffusion & Recognize Anything - Automatically Detect , Segment and Generate Anything
https://arxiv.org/abs/2401.14159
Apache License 2.0
15.16k stars 1.4k forks source link

How to remove object in a picture with Grounded-SAM with Inpainting? #455

Open linuaries opened 9 months ago

linuaries commented 9 months ago

I tried by leave prompt as empty string, but Stable Diffusion put random object instead.

rentainhe commented 8 months ago

I tried by leave prompt as empty string, but Stable Diffusion put random object instead.

You can try to use LAMA algorithms to remove the object:

And inpaint-anything may also be helpful to you: https://github.com/geekyutao/Inpaint-Anything