facebookresearch / facebookresearch/segment-anything

Need help adjusting SamAutomaticMaskGenerator.

Open
#305 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
54.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Description

I am trying to use SamAutomaticMaskGenerator to generate masks for some skin lesion images recently and it seems that the automatically generated masks do not work well on these types of images as the border is not very clear. There are plenty of parameters that could be adjusted in SamAutomaticMaskGenerator but I did not really get a better result from them. Are there some suggestions on how the arguments in SamAutomaticMaskGenerator should be set for this task?

An example of the image acquired from SamAutomaticMaskGenerator is shown below.

Input image:
ISIC_0024320_sam_mask_preprocessed
Output mask (grayscale):
ISIC_0024320_sam_mask_preprocessed

Any help is appreciated. Thank you!

Contributor guide

Open the contributing guide

Research direction

Start with the SamAutomaticMaskGenerator entry point and the supplied skin-lesion input and output examples. Review how its arguments affect mask generation, compare results on the example image, and establish what parameter changes would produce an acceptable border; the issue does not define a concrete completion test.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
computer-vision
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.