geekyutao / Inpaint-Anything

Inpaint anything using Segment Anything and inpainting models.
Apache License 2.0
6.41k stars 525 forks source link

Remove-Anything via Text Prompt #93

Open matbee-eth opened 1 year ago

matbee-eth commented 1 year ago

How feasible is it to remove an object via Text Prompt? Is there a multi-step method to achieve it with the current state of tools in this project?

geekyutao commented 1 year ago

Hi, I think it's feasible. You can use a grounding model to locate the object and get the bounding box or the center point of the object as the prompt to SAM, then you can use remove anything to remove the object.