The segment anything model (SAM) is another incredible contribution from the research team at Meta. Good news, this work is shared with an Apache-2.0 license making it useful for commercial use and more.
The best place to get started is the segment-anything Github repository here.If you like to learn by running code you are in luck. We have two notebook to run.
In this workflow we can select a point on the image and provide a few parameters to interactively extract masks.
In this workflow we can provide an image with a few parameters to get masks for the entire image.
To run the code on either notebook yourself do the following:
- Click the open in Colab button.
- Change the "using_colab" variable from False to True.
- Change the settings to use a GPU.
- Run all the the cells providing any needed input.
