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

How to produce mask for new image, in few-shot inference? #59

Open
nguyenthekhoig7 opened this issue Sep 8, 2024 · 1 comment
Open

Comments

@nguyenthekhoig7
Copy link

nguyenthekhoig7 commented Sep 8, 2024

Hi everyone, after running demo/demo.py to infer in zero-shot successfully, I want to try infer in few-shot mode:

  • I downloaded the correct models
  • But I stuck at producing the class prototypes(demo/build_protytypes.ipynb), which require images, AND THEIR MASKS.

In the provided demo, images and mask are provided, but I can not find how those masks were made, so that I can make segmentation mask of my new images. I have searched in issues and could not find a similar question.

So my question is:
How do I make segmentation mask for new images? i.e. see my attached image, from left image, how can I make the segmentation on the right?

I appreciate every suggestion, even how small it is, thank you all!

image

@retazo0018
Copy link

Hi @nguyenthekhoig7,

I generated my masks using Segment Anything Model.

Best,

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

2 participants