Inference results of SegEarth-OV3 on a remote sensing image exceeding 10k×10k resolution. The image originates from OpenMapCD.
The overall inference pipeline of SegEarth-OV3. Given an input image and a list of text prompts, we leverage SAM 3's decoupled outputs. The pipeline involves: (1) instance aggregation to consolidate sparse object predictions; (2) dual-head mask fusion to combine the fine-grained instance details with the global coverage of the semantic head; and (3) presence-guided filtering (using the presence score) to suppress false positives from absent categories. "MAX" denotes the element-wise maximum operation, and "×" denotes multiplication.
Most existing methods for training-free Open-Vocabulary Semantic Segmentation (OVSS) are based on CLIP. While these approaches have made progress, they often face challenges in precise localization or require complex pipelines to combine separate modules, especially in remote sensing scenarios where numerous dense and small targets are present. Recently, Segment Anything Model 3 (SAM 3) was proposed, unifying segmentation and recognition in a promptable framework. In this paper, we present a preliminary exploration of applying SAM 3 to the remote sensing OVSS task without any training. First, we implement a mask fusion strategy that combines the outputs from SAM 3's semantic segmentation head and the Transformer decoder (instance head). This allows us to leverage the strengths of both heads for better land coverage. Second, we utilize the presence score from the presence head to filter out categories that do not exist in the scene, reducing false positives caused by the vast vocabulary sizes and patch-level processing in geospatial scenes. We evaluate our method on extensive remote sensing datasets. Experiments show that this simple adaptation achieves promising performance, demonstrating the potential of SAM 3 for remote sensing OVSS.
You only need to focus on installing mmcv and mmsegmentation correctly; other dependencies are not strict.
We include the following dataset configurations in this repo:
Semantic Segmentation: OpenEarthMap, LoveDA, iSAID, Potsdam, Vaihingen, UAVidimg, UDD5, VDDBuilding Extraction: WHUAerial, WHUSat.Ⅱ, Inria, xBDpreRoad Extraction: CHN6-CUG, DeepGlobe, Massachusetts, SpaceNetWater Extraction: WBS-SI
Please refer to dataset_prepare.md for dataset preparation.
Download checkpoints from HF or ModelScope.
python demo.py
python eval.py ./configs/cfg_DATASET.py
@article{li2025segearthov3,
title={SegEarth-OV3: Exploring SAM 3 for Open-Vocabulary Semantic Segmentation in Remote Sensing Images},
author={Li, Kaiyu and Zhang, Shengqi and Deng, Yupeng and Wang, Zhi and Meng, Deyu and Cao, Xiangyong},
journal={arXiv preprint arXiv:2512.08730},
year={2025}
}
This implementation is based on SAM 3 and SCLIP. Thanks for the awesome work.


