facebookresearch / facebookresearch/sam2

The segmentation results are discontinuous and have gaps.

Open
#648 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/5f76cae8-8988-4a5f-8c37-b8c972a43cd8)

![Image](https://github.com/user-attachments/assets/e279b681-3b7b-4fe1-9e4a-70f9e9cbba1f)

As you can see, when I use groundingdino + sam2 to get the annotation and mask of the portrait image. I use the prompt of "person. headphones". The box result of Dino is correct, but in the segmentation result of Sam2, there is a gap between the headphones and the human body, and there is an headphone line in the human body that is not segmented. Such a mask cannot be used for portrait segmentation tasks. How can I deal with it? Can it be solved by post-processing or do I need to finetune Sam2?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.