geekyutao / Inpaint-Anything

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

How to make sure the segmented results by SAM #111

Open KeranLi opened 11 months ago

KeranLi commented 11 months ago

This is a great work! But I am so confused about the segmented area. I'm not sure which area the SAM segmented. Is there any idea to visualize it?

hllj commented 11 months ago

You can use Mask Generator from SAM to visualize it. https://github.com/facebookresearch/segment-anything/blob/main/segment_anything/automatic_mask_generator.py