-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Integrate with Segment Anything Model (SAM) #1262
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
@Johnny-liqiang Yes, I'm using ONNX exported model of Segment-Anything: https://github.com/facebookresearch/segment-anything#onnx-export This is the forked repo for download and export scripts: https://github.com/wkentaro/segment-anything/tree/labelme |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I use this formal command for test, labelme examples/instance_segmentation/data_annotated, but it can't work!!!
|
This comment was marked as resolved.
This comment was marked as resolved.
You need to switch to the "sam" branch and then proceed to install it.
|
@not-a-swiss-conductor @healthonrails |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
a7adb23
to
aaf8862
Compare
@f-macfarlane95 The SAM model can definitely handle splitted objects, but we need to support it with group_id correctly in Labelme. Let's add the feature of supporting splitted object annotation later. |
This comment was marked as resolved.
This comment was marked as resolved.
hello, |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
The first time I clicked 'Create AI-Polygon', I got this error message.
AI did not work. The program crashed with an error message when I tried to select an area on the image after clicking "Create AI-Polygon" for the second time.
|
Where can I get the SAM integrated Labelme? |
Hi, thank you very much for making this software available, it's really useful. I have been using the 'standard' labelme until now and I would like to try the 'sam version', but when I try to install it there appears an error.
Linux/Mac: command to install anaconda3 and labelmecurl -L https://github.com/wkentaro/dotfiles/raw/main/local/bin/install_anaconda3.sh | bash -s .
|
@VicencPB Actually, The author already merge sam to master, and delete sam branch. |
@Rusab JUST Try the latest version! |
@OceanWong1991 Thanks for answering the questions! Yes, the latest version should include everything you need to use SAM. @VicencPB @Rusab Please follow the installation guide. To get the latest version, you need either of them:
|
Thank you! Now it works! |
TODO
Installation
sam
branch.Usage
click
for the region you want to includeshift+click
for the region you want to excludectrl/cmd+click
orctrl/cmd+shift+click
or double-click to finishesc
to go back and continue clickingUntitled.mp4
NOTE: The response for the first annotation is SLOW (~20s) because the AI model needs to extract image embedding from the entire image, but it is cached in the second you annotate.