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
14.88k stars 1.38k forks source link

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

Open linuaries opened 7 months ago

linuaries commented 7 months ago

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

rentainhe commented 7 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