OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Geo Sam

Geo-SAM is an open-source QGIS plugin that uses the Segment Anything Model to segment, delineate and label landforms in geospatial raster imagery.

Independent OpenViST project profile, based on linked sources.

Geo Sam — Interactive landform segmentation in QGIS using Live Encoding
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Geo-SAM when a QGIS workflow needs SAM-assisted segmentation of raster imagery, especially for interactive landform delineation or repeated queries on the same image.

Who it is for

  • QGIS users analyzing remote-sensing or other geospatial raster imagery.
  • Researchers and practitioners who need interactive landform delineation or geospatial segmentation labels.

Documented uses

  • Segment and delineate landforms in large geospatial raster images.
  • Label raster imagery for geospatial analysis or segmentation dataset preparation.
  • Reuse encoded image features when repeatedly segmenting the same image.
Before you choose

Requirements & limits

The repository specifies an MIT license. The plugin can be installed through QGIS Plugin Manager, and its settings include plugin-managed installation of missing dependencies.

  • Live Encoding avoids a separate pre-encoding stage; Pre-encoded mode is intended for repeated segmentation of the same image.
  • The documented model families include SAM, SAM 2, SAM 2.1 and SAM 3.
  • Output options include pixel-level or simplified polygons and an option to keep only the largest polygon from each mask.
  • The workflow requires QGIS, installed plugin dependencies, an image layer and a downloaded model.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install and prepare Geo-SAM in QGIS

Install the Geo-SAM plugin, its dependencies, and a SAM model in QGIS.

Before you start

  • QGIS 3.x or 4.x.

Steps

  1. In QGIS, open Plugins > Manage and Install Plugins, search for Geo SAM, select it, and click Install; then activate the plugin using its checkbox.

  2. Open Geo-SAM Settings, go to Dependencies, click Install Missing, and wait for installation to finish.

  3. Restart QGIS when prompted.

  4. In Geo-SAM Settings, open Model Management, select a model such as SAM2.1 Base, and click Download; wait for the download to complete.

Expected outcome

The plugin is installed and activated, its dependencies are installed, and a SAM model checkpoint is downloaded, preparing Geo-SAM for use.

Guide limitations

  • A SAM model checkpoint is required for image encoding and segmentation.
  • This recipe prepares the plugin but does not detail the segmentation workflow; see the Quick Start guide for using Geo-SAM.
Source-based practical guide

Start a Live Encoding segmentation workflow

Select a raster and model in Geo-SAM and begin interactive segmentation without pre-encoding.

Before you start

  • Geo-SAM is installed and set up in QGIS.
  • A SAM model checkpoint is available.
  • A raster layer is available in QGIS.

Steps

  1. Open the Geo-SAM Segmentation tool.

  2. Select a raster layer and a SAM model.

  3. Begin segmentation by providing a prompt; the first prompt triggers background feature encoding.

  4. Continue prompting; subsequent prompts use the cached features.

Expected outcome

Interactive segmentation proceeds in Live Encoding mode, with features encoded on demand and cached for subsequent queries.

Guide limitations

  • The first prompt triggers background encoding, unlike pre-encoded mode, where features are already available.
  • Live Encoding supports online tile layers; pre-encoded mode does not.
  • The documentation describes the first prompt and cached subsequent prompts, but does not specify individual interface actions for creating or editing labels.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 November 2026
Original website title
coolzhao/Geo-SAM · Official homepage title · retained in its source language