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

Add support for box prompts for SamGeo2 #340

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docs/examples/box_prompts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"[![image](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/opengeos/segment-geospatial/blob/main/docs/examples/box_prompts.ipynb)\n",
"[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opengeos/segment-geospatial/blob/main/docs/examples/box_prompts.ipynb)\n",
"\n",
"This notebook shows how to generate object masks from text prompts with the Segment Anything Model (SAM). \n",
"This notebook shows how to generate object masks from box prompts with the Segment Anything Model (SAM). \n",
"\n",
"Make sure you use GPU runtime for this notebook. For Google Colab, go to `Runtime` -> `Change runtime type` and select `GPU` as the hardware accelerator. "
]
Expand Down Expand Up @@ -131,10 +131,6 @@
"source": [
"## Initialize SAM class\n",
"\n",
"The initialization of the LangSAM class might take a few minutes. The initialization downloads the model weights and sets up the model for inference.\n",
"\n",
"Specify the file path to the model checkpoint. If it is not specified, the model will to downloaded to the working directory.\n",
"\n",
"Set `automatic=False` to disable the `SamAutomaticMaskGenerator` and enable the `SamPredictor`."
]
},
Expand Down
Loading
Loading