Skip to content
Projekte

Über uns

Towards Robust Evaluation for Geospatial Foundation Models

Wissenschaft und Technik

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+3
in 7 days
+3
in 15 days
+4
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Tests

PANGAEA

PANGAEA Paper (IEEE GRSM) PANGAEA Paper (arXiv) PANGAEA Datasets PANGAEA Models PANGAEA Leaderboard

PANGAEA: A Global and Inclusive Benchmark for Geospatial Foundation Models

📢 News

  • [12/2026] PANGAEA 2.0:
    • Models: TerraMind (all sizes), THOR, Prithvi-EO-2.0, SkySense, Clay, Galileo, AnySat, MMEarth, DINOv3, RAMEN and generic timm backbones.
    • Datasets: FLAIR-2, SpaceNet 2/3, PureForest, HOT Buildings, EverWatch, NZ-Cattle, AGBD-Lite, CHC and regional Sen1Floods11 splits.
    • Tasks and features: object detection, cross-testing, per-pixel loss weights and ignore_index masking for regression.
    • Setup: automatic downloads for almost all datasets and a uv-based setup with CI tests.
    • Evaluation fixes: precision/recall were swapped, the regression MSE depended on batch size and number of GPUs, and Prithvi's patch embedding was re-initialised with Siamese decoders. Some numbers differ from the paper.
  • [02/2026] PANGAEA is published in IEEE Geoscience and Remote Sensing Magazine.
  • [04/06/2025] We integrate Geo-Bench Datasets, including six segmentation and six classification tasks.
  • [22/04/2025] on EarthDay, PANGAEA was officially adopted to benchmark TerraMind. Read the news and the pre-print. The TerraMind benchmarking code is now included in PANGAEA.
  • [05/12/2024] the pre-print is out!

📚 Introduction

While geospatial foundation models (GFMs) have proliferated rapidly, their evaluations remain inconsistent and narrow. Existing works often utilize suboptimal downstream datasets (e.g., EuroSAT) and tasks (e.g., land cover classification), which constrain comparability and real-world usability. Additionally, a lack of diversity in evaluation protocols, including image resolution and sensor types, further complicates the extensive assessments of GFM performance.

To bridge this gap, we propose a standardized evaluation protocol that incorporates a wide-ranging selection of datasets, tasks, resolutions, and sensor types, establishing a robust and widely applicable benchmark for GFMs.

PANGAEA: a global and inclusive benchmark for geospatial foundation models

This repository contains the code to benchmark GFMs. The lists below separate what was evaluated in the paper (PANGAEA 1.0) from what has been added since, mostly in PANGAEA 2.0. Contributions of new models and datasets are welcome (see Contributing).

🤖 Models

Use the config name (file in configs/encoder/, without .yaml), e.g. encoder=remoteclip.

PANGAEA 1.0 (paper)

Added since the paper

  • TerraMind: terramind_tiny, terramind_base, terramind_large, terramind_optical_tiny, terramind_base_optical
  • THOR: thor
  • Prithvi-EO-2.0: prithvi2_100m, prithvi2_300m, prithvi2_600m
  • SkySense: skysense_s1, skysense_s2, skysense_s2s1, skysense_vhr
  • Clay v1.5: clay_v1_5
  • Galileo: galileo
  • AnySat: anysat
  • MMEarth: mmearth, mmearth_optical
  • DINOv3, including satellite weights: dinov3_vits16, dinov3_vitb16, dinov3_vitl16, dinov3_vitl16_sat, dinov3_convnext_small, dinov3_convnext_base, dinov3_convnext_large
  • RAMEN: ramen
  • timm ImageNet backbones: convnext_xlarge_in22k_ft_in1k, resnet50_a1_in1k

🗺️ Datasets

Use the config name (file in configs/dataset/), e.g. dataset=mados. Download links, sensors and per-dataset instructions are in the Dataset Guide.

PANGAEA 1.0 (paper)

Added since the paper (mostly community contributions; we are grateful for them)

  • Potsdam (potsdam) and Open-Canopy (opencanopy). Contributed by @pierreadorni.
  • Geo-Bench: six classification and six segmentation datasets (m* configs, e.g. meurosat, mbigearthnet). Contributed by @yurujaja.
  • AGBD-Lite (agbdlite, agbdlite-seg): biomass. Contributed by @ghjuliasialelli.
  • GEO-Bench-2 VHR and related very-high-resolution datasets. Contributed by @kshitijrajsharma.
    • Segmentation: FLAIR-2 (flair2), SpaceNet 2 (spacenet2), SpaceNet 3 roads (spacenet3), HOT Buildings (hot_buildings).
    • Classification: PureForest (pureforest).
    • Object detection: EverWatch (everwatch), NZ-Cattle (nzcattle_det).
  • Sen1Floods11 regional splits (sen1floods11_euramerica, sen1floods11_africa, sen1floods11_asia) for cross-region testing. Contributed by @pierreadorni.
  • CHC (chc): canopy height change regression from PlanetScope time series. Contributed by @mxgbr.

🎯 Tasks

It is also possible to train fully supervised baselines.

🚀 Quick start

git clone https://github.com/VMarsocci/pangaea-bench.git
cd pangaea-bench
uv sync --all-groups      # needs uv: https://docs.astral.sh/uv/
uv run torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train dataset=mados encoder=remoteclip decoder=seg_upernet \
   preprocessing=seg_default criterion=cross_entropy task=segmentation

The dataset is downloaded on first use. See SETUP.md for details on the environment, data access (including the free EOTDL account needed for DynamicEarthNet and Five Billion Pixels) and offline wandb logging.

For fast prototyping, we suggest starting with smaller datasets: MADOS, HLSBurnScars, SpaceNet7, Sen1Floods11 and AI4SmallFarms. They offer good diversity in satellites and domains. You can also train on a stratified fraction of any dataset with limited_label_train=0.1 limited_label_strategy=stratified.

🏋️ Training

To run experiments, please refer to configs/train.yaml. In it, in addition to some basic info about training (e.g. finetune for fine-tuning also the encoder, limited_label_train to train the model on a stratified subset of labels, num_workers, batch_size and so on), there are 5 different basic configs:

  • dataset: Information of downstream datasets such as image size, band_statistics, classes etc.
  • decoder: Downstream task decoder fine-tuning related parameters, like the type of architecture (e.g. UPerNet), which multi-temporal strategy to use, and other related hparams (e.g. nr of channels)
  • encoder: GFM encoder related parameters. output_layers is used for which layers are used for Upernet decoder.
  • preprocessing: Both preprocessing and augmentations steps required for the dataset, such as bands adaptation, normalization, resize/crop.
  • task: Information about the trainer and evaluator. Most of the parameters are overwritten in run. Trainer and evaluator can be used for segmentation (SegTrainer) or regression (RegTrainer). Different parameter like precision training (precision) can be set in it.

Other 3 configs are used to set other training parameters:

  • criterion: in which you can choose the loss for the training. Consider that if you want to add a custom loss, you should add to pangaea/utils/losses.py. Currently, we support cross_entropy, weighted_cross_entropy, dice, binary_cross_entropy (multi-label classification), mse, weighted_mse (regression with per-pixel weights) and none (k-NN probe and object detection).
  • lr_scheduler: in which you can choose the scheduler. Consider that if you want to add a custom one, you should add to pangaea/utils/schedulers.py.
  • optimizer: in which you can choose the optimizer. Consider that if you want to add a custom one, you should add to pangaea/utils/optimizers.py.

We provide several examples of command lines to initialize different training tasks on single GPU.

Please note:

  • The repo adopts hydra, so you can easily log your experiments and overwrite parameters from the command line. More examples are provided later.
  • To use more gpus or nodes, set --nnodes and --nproc_per_node correspondingly. Please refer to the torchrun doc.

💻 Decoder Finetuning

Single Temporal Semantic Segmentation

Take HLSBurnScars dataset, RemoteCLIP Encoder and Upernet Segmentation Decoder as example:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=hlsburnscars \
   encoder=remoteclip \
   decoder=seg_upernet \
   preprocessing=seg_default \
   criterion=cross_entropy \
   task=segmentation

If you want to overwrite some parameters (e.g. turn off wandb, change batch size and the path to the dataset, and use 50% stratified sampled subset for training):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=hlsburnscars \
   encoder=remoteclip \
   decoder=seg_upernet \
   preprocessing=seg_default \
   criterion=cross_entropy \
   task=segmentation \
   dataset.root_path=/path/to/the/dataset/hlsburnscars \
   batch_size=16 \
   use_wandb=False \
   limited_label_train=0.5 \
   limited_label_strategy=stratified

Multi-Temporal Semantic Segmentation

  • Multi-temporal decoder config (e.g. configs/decoder/seg_upernet_mt_ltae.yaml if you want to use ltae as a strategy to combine multi-temporal info) should be used.
  • In addition, in the dataset config, indicate the number of time frames, e.g., multi_temporal: 6

An example of using SSL4EO-DINO on CropTypeMapping is as below

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=croptypemapping \
   encoder=ssl4eo_dino \
   decoder=seg_upernet_mt_ltae \
   preprocessing=seg_resize \
   criterion=cross_entropy \
   task=segmentation

To use SatlasNet encoder, the configs/encoder/satlasnet_mi.yaml is required

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=croptypemapping \
   encoder=satlasnet_mi \
   decoder=seg_upernet_mt_ltae \
   preprocessing=seg_resize \
   criterion=cross_entropy \
   task=segmentation

To overwrite parameters, please check the Single Temporal Semantic Segmentation example.

Change Detection

One of the change detection decoder should be used: configs/decoder/seg_siamupernet_conc.yaml employs feature concatenation strategy while configs/decoder/seg_siamupernet_diff.yaml uses feature differencing strategy. For example, Prithvi encoder on xView2:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=xview2 \
   encoder=prithvi \
   decoder=seg_siamupernet_conc \
   preprocessing=seg_default \
   criterion=cross_entropy \
   task=change_detection

To overwrite parameters, please check the Single Temporal Semantic Segmentation example.

Single Temporal Regression

The regression decoder (e.g. configs/decoder/reg_upernet.yaml) and the regression task (e.g. configs/task/regression.yaml) configs should be used. E.g. Prithvi encoder on BioMassters

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=biomassters \
   encoder=prithvi \
   decoder=reg_upernet \
   preprocessing=reg_default \
   criterion=mse \
   task=regression \
   dataset.multi_temporal=1

To use SatlasNet encoder, the configs/encoder/satlasnet_si.yaml is required. To overwrite parameters, please check the Single Temporal Semantic Segmentation example.

For regression, target pixels equal to the dataset's ignore_index are excluded from the loss and from the metrics. Datasets can also return per-pixel weights (e.g. CHC), which are used by criterion=weighted_mse.

Multi-Temporal Regression

The multi-temporal regression decoder (e.g. configs/decoder/reg_upernet_mt_ltae.yaml or configs/decoder/reg_upernet_mt_linear.yaml) and the regression task (e.g. configs/task/regression.yaml) configs should be used.

Take Prithvi encoder on BioMassters as example:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=biomassters \
   encoder=prithvi \
   decoder=reg_upernet_mt_ltae \
   preprocessing=reg_default \
   criterion=mse \
   task=regression

To use SatlasNet encoder, please refer to the multi-temporal semantic segmentation example. To overwrite parameters, please check the Single Temporal Semantic Segmentation example.

Linear Classification

For linear classification, you can use either single-label or multi-label classification depending on your dataset. The main difference is in the task config and criterion used.

For single-label classification (e.g. m-Brick-Kiln dataset):

export GEO_BENCH_DIR=YOUR/PATH/DIR   # Note that `export GEO_BENCH_DIR=YOUR/PATH/DIR` is required for Geo-Bench datasets.
torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=mbrickkiln \
   encoder=remoteclip \
   decoder=cls_linear \
   preprocessing=cls_resize \
   criterion=cross_entropy \
   task=linear_classification \
   task.trainer.n_epochs=50 \
   batch_size=16 \
   finetune=false

For multi-label classification (e.g. MBigEarthNet dataset):

export GEO_BENCH_DIR=YOUR/PATH/DIR   # Note that `export GEO_BENCH_DIR=YOUR/PATH/DIR` is required for Geo-Bench datasets.
torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=mbigearthnet \
   encoder=remoteclip \
   decoder=cls_linear \
   preprocessing=cls_resize \
   criterion=binary_cross_entropy \
   task=linear_classification_multi_label \
   task.trainer.n_epochs=50 \
   batch_size=16 \
   finetune=false

KNN Probe Classification

For KNN probe classification, you'll use a different decoder and task config. This is useful for evaluating the quality of learned representations without any fine-tuning. Here's an example using the m-EuroSat dataset:

export GEO_BENCH_DIR=YOUR/PATH/DIR   # Note that `export GEO_BENCH_DIR=YOUR/PATH/DIR` is required for Geo-Bench datasets.
torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=meurosat \
   encoder=remoteclip \
   decoder=cls_knn \
   preprocessing=cls_resize \
   criterion=none \
   task=knn_probe \
   batch_size=32 \
   finetune=false

Note that for KNN probe:

  • The criterion is set to none since no training is performed
  • The batch size can be larger since we're only doing inference
  • finetune is set to false as we're only using the pre-trained encoder

Object Detection

Object detection uses a Faster R-CNN head on top of the encoder (decoder=det_faster_rcnn), with dedicated preprocessing and task configs. The loss is computed inside the detection head, so criterion=none. Evaluation reports mAP. Example on EverWatch (bird detection):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=everwatch \
   encoder=resnet50_pretrained \
   decoder=det_faster_rcnn \
   preprocessing=det_default \
   criterion=none \
   task=object_detection

Supported detection datasets: everwatch, nzcattle_det.

💻 End-to-end Finetuning

It is enough to add finetune=True to the command line.

For example, for single-temporal semantic segmentation:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=hlsburnscars \
   encoder=remoteclip \
   decoder=seg_upernet \
   preprocessing=seg_default \
   criterion=cross_entropy \
   task=segmentation \
   finetune=True

💻 Fully Supervised Baseline

The repo supports also training fully supervised baselines (i.e. UNet and ViT). To run these, follow the same command line rules as for other models. Keep in mind that setting finetune=True is necessary since this fully supervised approach trains the model from scratch. An example for single temporal semantic segmentation with UNet is provided (Sen1Floods11 dataset):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=sen1floods11 \
   encoder=unet_encoder \
   decoder=seg_unet \
   preprocessing=seg_default \
   criterion=cross_entropy \
   task=segmentation \
   finetune=True

There is no multi-temporal UNet supported.

An example for multi-temporal semantic segmentation with ViT is provided (CropTypeMapping-SS dataset):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=croptypemapping \
   encoder=vit_scratch \
   decoder=seg_upernet_mt_ltae \
   preprocessing=seg_resize \
   criterion=cross_entropy \
   task=segmentation \
   task.evaluator.inference_mode=whole \
   finetune=true

🔧 Customization

Using Your Own Dataset

Refer to: Adding a new downstream dataset

Using Your Own Model

Refer to: Adding a new geospatial foundation model

🏃 Evaluation

An evaluation step is always run after the training.

To benchmark your model fairly against the others, do not change the hyperparameters in the configs.

If you want to just run an evaluation, indicate the ckpt_dir where the checkpoints and configurations are stored.

torchrun pangaea/run.py --config-name=test ckpt_dir=path_to_ckpt_dir

🖼️ Prediction visualization outputs

You can save raw predictions and/or PNG comparison panels during evaluation.

Available Hydra overrides:

  • save_predictions (bool): save raw output maps as .tif
  • save_visualizations (bool): save comparison panels as .png
  • save_output_dir (str or null): output root (defaults to experiment dir)
  • max_samples_to_visualize (int): max number of samples to save (-1 = all)
  • overwrite (bool): when false, outputs are written in a step-tagged subfolder (e.g. final_model, test_model)
  • task.evaluator.rgb_bands (list): channel indices used for RGB quicklook (default [2, 1, 0])

Output structure:

  • <save_output_dir>/predictions/*.tif
  • <save_output_dir>/visualizations/*.png

Test-only example:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=test \
   ckpt_dir=/path/to/experiment_dir \
   save_predictions=true \
   save_visualizations=true \
   save_output_dir=/path/to/output_dir \
   max_samples_to_visualize=100 \
   overwrite=true

Train+eval example (validation visualizations during training):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=train \
   dataset=hlsburnscars encoder=remoteclip decoder=seg_upernet \
   preprocessing=seg_default criterion=cross_entropy task=segmentation \
   task.evaluator.save_predictions=true \
   task.evaluator.save_visualizations=true \
   task.evaluator.max_samples_to_visualize=50

🔁 Cross-testing on a different dataset

You can evaluate a trained checkpoint directory on another dataset config without changing the original training config, by simply overriding the dataset config from the command line.

Simple command to cross-evaluate a model on sen1floods11:

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=test \
   ckpt_dir=/path/to/experiment_dir \
   dataset=sen1floods11

Example with more options (overriding dataset, preprocessing and root_path):

torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py \
   --config-name=test \
   ckpt_dir=/path/to/experiment_dir \
   dataset=sen1floods11 \
   preprocessing=seg_resize \
   root_path=alternative/path/to/dataset \
   save_predictions=true \
   test_log_name=test_sen1.log \
   save_visualizations=true

Concrete example: training on Sen1Floods11 only on Europe and America tiles, testing on Asia and Africa.

# training on euramerica
torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py --config-name=train \
    dataset=sen1floods11_euramerica \
    encoder=terramind_tiny \
    decoder=seg_upernet \
    preprocessing=seg_default \
    criterion=dice \
    task=segmentation \
    finetune=False

# testing on africa
torchrun --nnodes=1 --nproc_per_node=1 pangaea/run.py --config-name=test \
    ckpt_dir=work-dir/20260324_142305_0589a0_terramind_tiny_seg_upernet_sen1floods11_euramerica \
    dataset=sen1floods11_africa \
    save_visualizations=true

Notes:

  • Any extra Hydra overrides can be appended at the end of the command.

✏️ Contributing

We appreciate all contributions. Please refer to Contributing Guidelines.

📄 Papers using PANGAEA

These are just some of the papers that have used PANGAEA:

Using PANGAEA in your work? Open a pull request to add it here.

📝 Citation

If you find this work useful, please cite:

@article{marsocci2026pangaea,
      title={PANGAEA: Assessing Geospatial Foundation Models Capabilities through a Global and Inclusive Benchmark},
      author={Marsocci, Valerio and Jia, Yuru and Le Bellier, Georges and Kerekes, David and Zeng, Liang and Hafner, Sebastian and Gerard, Sebastian and Brune, Eric and Yadav, Ritu and Shibli, Ali and Fang, Heng and Ban, Yifang and Vergauwen, Maarten and Audebert, Nicolas and Nascetti, Andrea},
      journal={IEEE Geoscience and Remote Sensing Magazine},
      volume={14},
      number={1},
      pages={245--285},
      year={2026},
      doi={10.1109/MGRS.2025.3628194}
}

🙏 Acknowledgements

Part of the computations/data handling for the paper experiments were enabled by resources provided by the National Academic Infrastructure for Supercomputing in Sweden (NAISS), partially funded by the Swedish Research Council through grant agreement no. 2022-06725.

Ähnliche Projekte entdecken

Wird geladen…