Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Segmenting remote sensing imagery with text prompts using the Segment Anything Model (SAM)

image

This notebook is used to generate object masks of specific classes from text prompts with the Segment Anything Model (SAM).

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.

Table of Contents

samgeo

  • A Python package for segmenting geospatial data with the Segment Anything Model (SAM)
  • The segment-geospatial package draws its inspiration from segment-anything-eo repository authored by Aliaksandr Hancharenka. To facilitate the use of the Segment Anything Model (SAM) for geospatial data, I have developed the segment-anything-py and segment-geospatial Python packages, which are now available on PyPI and conda-forge. My primary objective is to simplify the process of leveraging SAM for geospatial data analysis by enabling users to achieve this with minimal coding effort. I have adapted the source code of segment-geospatial from the segment-anything-eo repository, and credit for its original version goes to Aliaksandr Hancharenka.

Interactive Segmentation using Text Prompts interactive samgeo

🆓 Free software: MIT license

📖 Documentation: https://samgeo.gishub.org

Output:

Original Input Image Road Segmentation
input image road segmentation on input image
Original Input Image Road Segmentation Mask
input image road segmentation mask

References