Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting multiple points prompts results in an error #18

Open
jcorsetti opened this issue Sep 30, 2024 · 0 comments
Open

Setting multiple points prompts results in an error #18

jcorsetti opened this issue Sep 30, 2024 · 0 comments

Comments

@jcorsetti
Copy link

Hello, thanks for open-sourcing the code and for the great work. I am trying to use RobustSam to produce N segmentation masks given N point prompts, in a single image with a single forward pass. From what I understood this is possible from the comments to the forward function here:

https://github.com/robustsam/RobustSAM/blob/6f0e2637e58f812985cdf9f403a5d7515a66fe38/robust_segment_anything/modeling/sam.py#L74C1-L74C71

However, when I try to do so an error occurs in the mask decoder. I tried a couple of different options, and it seems to work only with a single point prompt. In my case (5 points), it throws the following error. Is this the intended behaviour or am I missing something? In the following screenshot you can see the shapes of my input tensors and the error trace.

Screenshot from 2024-09-30 17-46-50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant