/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
kao-terramind · dense
Базовая модель
TerraMind-1.0-base
Библиотека
terratorch
Опубликована
7 окт 2026

KAO-TerraMind-B

Сегментация изображенийИзображение → mask3 профессии
93скачиваний за 30 дней2лайкавеса обновлены8 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

KAO-TerraMind-B сегментирует спутниковые снимки Sentinel-2 по классам земного покрова и культур на данных Таиланда.

KAO-TerraMind-B — модель семантической сегментации спутниковых снимков, разработанная как адаптация TerraMind-1.0-base к данным GISTDA по Таиланду. Она использует backbone TerraMind-1.0-base и декодер UperNet и предназначена для разметки снимков Sentinel-2 L2A по 10 классам земного покрова и сельскохозяйственных культур.

Вариант B усиливает вес Dice loss, чтобы лучше учитывать малые и редкие классы. На тестовой выборке GISTDA он достиг mIoU 40,97; оценка получена на данных с пространственным разделением обучающих и тестовых регионов. Модель принимает 12-канальные снимки, нарезанные на фрагменты 224 × 224 пикселя, и выдаёт карту классов. Это исследовательский чекпойнт для изучения адаптации геопространственных моделей, а не готовый универсальный продукт.

Качество проверено только на данных и таксономии GISTDA Thailand; перенос на другие регионы, сенсоры, разрешения и схемы разметки не оценивался. Результаты основаны на одном запуске, а редкие классы имеют низкие показатели F1. Весовые файлы распространяются по лицензии Apache-2.0; данные GISTDA не включены и регулируются отдельными условиями.

Сценарии применения

  • сегментация культур на снимках Sentinel-2 в Таиланде
  • картирование риса, кукурузы, сахарного тростника и маниока
  • выделение воды, затопленной растительности и застроенных территорий
  • сравнение методов адаптации геопространственных моделей для сегментации

Ограничения

Модель обучена и оценена только на данных GISTDA Thailand с фиксированной таксономией из 10 классов; перенос на другие регионы, сенсоры, разрешения и схемы разметки не проверялся. Результаты получены в одном запуске, а качество для редких классов низкое.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

🛰️ KAO-TerraMind-B · GISTDA Thailand

Targeted Adaptation of Geospatial Foundation Models for Dense Prediction

CVPR Dataset Variant Base License

🌍 General-purpose geospatial foundation model → 🎯 one controlled change → 🇹🇭 Thailand-specific GeoAI


⚡ TL;DR

🧪
What is this?KAO-TerraMind-B is TerraMind-1.0-base fine-tuned on GISTDA Thailand with variant B: loss - stronger overlap (Dice) term for small / rare classes.
Task10-class semantic segmentation · Sentinel-2 L2A, 12 bands
Test mIoU40.97 (+0.14 pp vs. the identically trained TerraMind-1.0-base, rank 2 / 7)
Overall accuracy78.31 %
Cost99.37 M parameters · 19.65 ms / 224 x 224 tile (T4, fp16, batch 1)
Purpose🔬 Public, fully-specified checkpoint for reproducing the CVPR 2027 submission

🧾 Training code is intentionally not included while the paper is under review. This repository ships the inference-only helper, the exact architecture / recipe config, and the full benchmark results.


🛰️ Model Card

PropertyValue
🏷️ ModelKAO-TerraMind-B
🧠 BackboneTerraMind-1.0-base (terramind_v1_base), initialised from ibm-esa-geospatial/TerraMind-1.0-base
🧩 DecoderUperNet (TerraTorch EncoderDecoderFactory)
🎞️ Input modalityS2L2A patch embedding · 12 x 224 x 224 · Sentinel-2 L2A surface reflectance (x10000), 12 bands (B1, B2, B3, B4, B5, B6, B7, B8, B8A, B9, B11, B12)
🎯 Outputper-pixel logits over 10 classes
📐 Parameters99.37 M
🧪 VariantB - Loss: stronger overlap (Dice) term for small / rare classes
🗂️ DatasetGISTDA Thailand - GISTDA Earth Observation data over Thailand (~40,000 km²), Sentinel-2 L2A, pre-cut 224 x 224 chips
📦 Checkpoint fileterramind_v1_kaoB_best.pt
🔧 LibraryTerraTorch >=1.2.4

🧪 The KAO-B Recipe

KAO-TerraMind is a family of three controlled, single-factor adaptations of TerraMind-1.0-base. Everything else (data, seed, epochs, batch size, sampler, schedule, metrics) is identical to the baselines, so every difference can be attributed to one change.

                  TerraMind-1.0-base  (identical training recipe)
                           │
        ┌──────────────────┼──────────────────┐
        ▼                  ▼                  ▼
  🔥 KAO-A            🎯 KAO-B           🧩 KAO-C
  Optimisation          Loss              Decoder
  backbone LR ↑      Dice weight ↑      wider UperNet
  weight decay ↑                        deeper taps

This repository = 🎯 KAO-B (Loss) - doubles the Dice term next to the class-weighted cross-entropy to push harder on small and rare classes.

SettingTerraMind-1.0-base (reference)KAO-B
Dice loss weight0.51.0
Hyper-parameterValue
OptimiserAdamW (backbone LR = base LR x multiplier, decoder LR = 1e-4)
Base learning rate / backbone multiplier1e-4 / 0.1 (variant A: 0.3)
Weight decay0.01 (variant A: 0.05)
Lossclass-weighted cross-entropy (sqrt-inverse-frequency weights) + Dice (weight 0.5; variant B: 1.0)
Epochs / early-stopping patience30 / 8 (checkpoint chosen on validation mIoU)
Batch size16 (same for every model)
Samplerclass-balanced, 6,000 windows per epoch
Window size / train stride224 x 224 pre-cut chips (no sliding window in training)
Augmentationrandom horizontal + vertical flips and 90° rotations
Precision / grad-clipfp16 autocast / 1.0
NormalisationTerraMind S2L2A pre-training statistics (raw reflectance scale, per band)
Seed42
Hardware1 x NVIDIA Tesla T4

🗂️ Dataset & Evaluation Protocol

GISTDA Thailand - GISTDA Earth Observation data over Thailand (~40,000 km²), Sentinel-2 L2A, pre-cut 224 x 224 chips.

🎨 Classes

IDClassMap colour
0🌽Maize#d81bf0
1🌾Sugarcane#9b1c2c
2🌱Cassava#5bb5ee
3🍚Rice#e07bc0
4🌿Other Crops#e8a000
5💧Water#2a74d0
6🌳Trees#0a8a0a
7🌊Flooded Veg.#20a880
8🏙️Built Area#e04848
9🗺️Other#4a3aa8

🧭 Protocol

  • Spatial split (not a random pixel-level split) of the chipped Sentinel-2 scenes into train / validation / test regions, which reduces the risk of spatial leakage between training and evaluation areas.
  • 224 x 224 chips (12 bands) are pre-cut on disk; the validation split is used only for checkpoint selection and early stopping, and the test split is never used for any decision.
  • Class imbalance is severe: Other Crops and Trees cover about 76 % of test pixels, while Maize, Cassava and Flooded Veg. each cover well under 1 %.

All metrics are macro-averaged over the 10 classes present in the test set; OA uses all labelled pixels.

Split224 x 224 chips
Train30,638
Validation5,462 (used for model selection only)
Test13,974
  • ⚠️ The GISTDA dataset is not public, so the training run cannot be re-created externally. The released checkpoint, config.json and the test metrics in this card are the reproducibility artefacts.
  • ⚠️ Rare crop classes (Maize, Cassava, Sugarcane, Flooded Veg.) have low F1 for every model, including the baselines; treat their per-class numbers with caution.

📜 The GISTDA data is not redistributed here and remains subject to GISTDA's own terms. Please check the dataset terms before using these weights beyond research.


📊 Benchmark on GISTDA Thailand (test split)

All seven models are fine-tuned with the same recipe, seed and data, and evaluated on the same test windows. Best value per column in bold.

ModelOAmIoUF1Prec.Rec.mAPParams (M)Latency (ms)
KAO-TerraMind-A78.6140.8152.4850.5955.7852.6999.3715.16
KAO-TerraMind-B ⬅ this repo78.3140.9752.7450.6156.2752.7699.3719.65
KAO-TerraMind-C78.9041.1352.8050.6056.4453.03121.7419.39
TerraMind-1.0-tiny75.0037.1848.6146.5654.0349.3113.3115.09
TerraMind-1.0-small77.7539.0550.5848.1254.6250.8531.0814.13
TerraMind-1.0-base78.4440.8252.5749.8456.7552.6399.3715.15
TerraMind-1.0-large76.3440.1352.0449.0558.5852.70320.2224.95

Latency: mean over 100 runs, batch 1, 224 x 224, fp16 autocast, NVIDIA Tesla T4. All metrics are macro-averaged over the 10 classes present in the test set; OA uses all labelled pixels.

🔬 Key observations

  • 🎯 KAO-B reaches 40.97 mIoU, i.e. +0.14 pp relative to the identically trained TerraMind-1.0-base (40.82).
  • 📊 On GISTDA Thailand the strongest KAO variant is KAO-TerraMind-C (41.13 mIoU); KAO-B is reported for completeness.
  • 🏆 KAO-B surpasses TerraMind-1.0-large (40.13 mIoU) by 0.84 pp with 3.2x fewer parameters.
  • 🔬 Per-class F1 vs. TerraMind-1.0-base: largest gain Rice (+0.53); largest drop Other Crops (-0.36).

🧪 Single-factor ablation (all KAO variants)

ModelChanged factorOverridesmIoUΔ mIoU vs. base (pp)
TerraMind-1.0-base- (reference)-40.82+0.00
KAO-TerraMind-Aoptimisation: stronger backbone adaptationbackbone_lr_mult=0.3, weight_decay=0.0540.81-0.02
KAO-TerraMind-B ⬅loss: stronger overlap (Dice) term for rare crop classesdice_weight=1.040.97+0.14
KAO-TerraMind-Cdecoder: wider UperNet, deeper-biased feature taps, more dropoutdecoder_channels=512, head_dropout=0.2, indices=[3, 6, 9, 11]41.13+0.30
ClassKAO-AKAO-BKAO-CTM-TinyTM-SmallTM-BaseTM-Large
🌽 Maize12.7513.3612.068.6412.4112.9813.61
🌾 Sugarcane36.9037.0936.8332.8435.2737.3937.28
🌱 Cassava21.1921.6121.3916.6717.9421.2921.45
🍚 Rice41.7741.8441.6039.4138.8341.3142.04
🌿 Other Crops78.5978.1679.0774.7678.6578.5274.71
💧 Water82.1182.4182.5478.4180.0881.9981.21
🌳 Trees91.8691.8291.9490.4390.9391.7391.76
🌊 Flooded Veg.26.8327.5528.4621.4423.7727.1326.21
🏙️ Built Area85.3085.2285.4181.2983.3485.0184.88
🗺️ Other47.5548.2848.6842.2444.5848.3647.22
ClassKAO-AKAO-BKAO-CTM-TinyTM-SmallTM-BaseTM-Large
🌽 Maize6.817.166.424.526.626.947.30
🌾 Sugarcane22.6222.7722.5719.6521.4122.9922.91
🌱 Cassava11.8512.1111.989.099.8511.9112.01
🍚 Rice26.3926.4626.2624.5424.1026.0326.61
🌿 Other Crops64.7364.1565.3959.6964.8164.6459.63
💧 Water69.6570.0970.2764.4966.7869.4868.36
🌳 Trees84.9484.8885.0882.5383.3684.7384.77
🌊 Flooded Veg.15.4915.9816.5912.0113.4915.6915.08
🏙️ Built Area74.3674.2574.5468.4871.4473.9373.74
🗺️ Other31.1931.8232.1726.7728.6831.8930.91

🚀 Quick Start

1️⃣ Install

pip install "terratorch>=1.2.4" "diffusers==0.30.0" huggingface_hub rasterio tifffile numpy torch

2️⃣ Run from the command line

# downloads kao_terramind_inference.py + terramind_v1_kaoB_best.pt from this repo
hf download kaopanboonyuen/KAO-TerraMind-B --local-dir KAO-TerraMind-B   # older huggingface_hub: huggingface-cli download
cd KAO-TerraMind-B

python kao_terramind_inference.py \
    --input my_tile.tif \
    --output prediction.png \
    --device cuda

Use --ckpt path/to/terramind_v1_kaoB_best.pt for a local checkpoint, --overlap 56 for smoother large-scene mosaics, and --save-index to also write the raw class-index map.

3️⃣ Use it from Python

from kao_terramind_inference import load_model, predict_image, colorize, read_image

net, ck = load_model("terramind_v1_kaoB_best.pt", device="cuda")

img = read_image("my_tile.tif")                  # (H, W, 12) float32 reflectance
pred = predict_image(net, img, ck, device="cuda")  # (H, W) class ids, any image size
rgb = colorize(pred)                              # (H, W, 3) uint8 map in the dataset palette

📌 Input contract: a 12-band Sentinel-2 L2A GeoTIFF with surface reflectance scaled x10000, bands in this order: B1, B2, B3, B4, B5, B6, B7, B8, B8A, B9, B11, B12. Any size is accepted (processed in 224 x 224 windows with zero-padded borders). Normalisation statistics are read from the checkpoint.


📁 Repository Contents

FileDescription
📖 README.mdThis model card
⚙️ config.jsonArchitecture arguments, class map, normalisation, recipe and test metrics
🐍 kao_terramind_inference.pyInference-only helper (checkpoint loading, tiled prediction, colour maps, CLI)
🧠 terramind_v1_kaoB_best.ptFine-tuned weights (backbone + decoder + architecture arguments)

⚠️ Limitations & Responsible Use

  • 🔬 This is a research checkpoint for reproducing a specific experiment, not a general-purpose land-cover product.
  • 🌍 It is trained and evaluated only on GISTDA Thailand with its 10-class taxonomy; transfer to other sensors, resolutions, regions or label definitions is untested.
  • 📉 Differences between KAO variants and the baseline are small (about 1 pp mIoU or less) and come from a single training run with seed 42; no confidence intervals are reported, so small gaps should not be over-interpreted.
  • 🏋️ Larger TerraMind backbones can outperform KAO variants on some datasets (see the table above). KAO-TerraMind studies targeted adaptation of the base-size model.
  • 🚫 Not validated for safety-critical, legal or enforcement decisions.

📚 Citation

If you use this model, please cite:

@article{panboonyuen2027kaoterramind,
  title  = {KAO-TerraMind: Targeted Adaptation of Geospatial Foundation Models for Dense Prediction},
  author = {Panboonyuen, Teerapong},
  note   = {Manuscript in preparation for submission to the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2027)},
  year   = {2027}
}

KAO-TerraMind builds on TerraMind; please also cite:

@inproceedings{jakubik2025terramind,
  title        = {Terramind: Large-scale generative multimodality for earth observation},
  author       = {Jakubik, Johannes and Yang, Felix and Blumenstiel, Benedikt and Scheurer, Erik and Sedona, Rocco and Maurogiovanni, Stefano and Bosmans, Jente and Dionelis, Nikolaos and Marsocci, Valerio and Kopp, Niklas and others},
  booktitle    = {2025 IEEE/CVF International Conference on Computer Vision (ICCV)},
  pages        = {7383--7394},
  year         = {2025},
  organization = {IEEE}
}

🙏 Acknowledgements

🌍 TerraMind (IBM · ESA) · 🔥 TerraTorch · 🤗 Hugging Face · 🇹🇭 GISTDA Earth Observation data · 🇹🇭 Chulalongkorn University


👨‍🔬 Author

Teerapong Panboonyuen, Ph.D. (Kao) Vice President of AI, Government Savings Bank C2F Postdoctoral Fellow, Chulalongkorn University Adjunct Professor, Khon Kaen University 🇹🇭 Thailand

Research interests: Geospatial AI · Earth Observation · Foundation Models · Remote Sensing · Dense Prediction


🌍 Foundation Models × 🛰️ Earth Observation × 🧠 GeoAI × 🔬 Reproducibility

From pixels to representations. From representations to intelligence.

KAO-TerraMind-B · CVPR 2027 reproducibility release

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · terratorch · image-segmentation

Можно запустить

Подбираем GPU…

Ревизия весов
8c0b51a

0 моделей