-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[Model request] Meta's SegmentAnything Model (SAM) #22592
Comments
Hi @xenova @alaradirik I would like to work on adding this model. |
@xenova I just checked the model website and I don't have the hardware resources to perform the model inference. |
Have you tried running it locally w/ python? |
I think I can run it locally, I can work on it |
no, but i dont have gpu also I recently worked on adding seaformer model having 14M params, running it locally on cpu took a few seconds so this one with 632M params will take time and RAM. |
Great! How is it going? Let me know if you need any help. |
@xenova I think this week I will finish it |
Hey @Xrenya, I'm pretty across these models and would love to get them into |
Hi folks, please ignore this if you're already familiar with transformers but otherwise, you can refer to the guidelines to get started with adding a model. I'd recommend first checking you can run the original repo without any issues though. Here are some summarized points that might help with model addition:
Once you are done, you would need to run the following commands to check the PR passes all CI tests:
We can do an in-depth review once the PR passes most tests or the configuration, preprocessing and modeling is mostly complete. Hope this helps! |
PR for this model is available here, sorry for not catching this issue : #22654 |
@ArthurZucker I see, okay, next time I should push [WIP] |
Model description
Meta Research recently open-sourced their "SegmentAnything Model" (SAM) for image segmentation. It would be great to have it working with this library's
ImageSegmentationPipeline
.Open source status
Provide useful links for the implementation
GitHub repo: https://github.com/facebookresearch/segment-anything
Paper: https://ai.facebook.com/research/publications/segment-anything/
Website: https://segment-anything.com/
Demo: https://segment-anything.com/demo
Weights:
default
orvit_h
: ViT-H SAM model.vit_l
: ViT-L SAM model.vit_b
: ViT-B SAM model.The text was updated successfully, but these errors were encountered: