facebookresearch / facebookresearch/segment-anything

How to use masks prompt

Open
#792 0 comments 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

Hello, I hope to use a binary image (with a shape of 320, 480) as masks prompt input into the prompt_encoder. I have transformed it into (1, 1, 320, 480), but the dense_embedding output by the prompt_encoder cannot be input into the mask_decoder. I would like to know what processing I need to do to this binary image so that it can become a masks prompt.

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.