Local SAM2 instance segmentation for QGIS. Draw points and rectangles on a vector layer, run Segment Anything Model 2 inference on a raster layer, and get polygon results — all offline with ONNX Runtime. Supports multiple SAM2.1 model variants (Tiny to Large, fp32 and uint8). More features coming soon (live canvas preview, multi-band support, and more).
SamGIS brings Meta's Segment Anything Model 2 (SAM2) to QGIS as a local inference plugin. No cloud API needed — models run on-device via ONNX Runtime. Use foreground/background point prompts and bounding-box prompts drawn on vector layers to segment objects from any georeferenced raster. Results are added as polygon vector layers in EPSG:4326. Model weights are downloaded on first use from Hugging Face (aletrn/sam2-onnx-weights).
In case of problems before all please try using the last version and eventually open an issue on the repository tracked attaching the plugin logs.
Plugin Tags