Skip to main content

A benchmark designed to advance foundation models for Earth monitoring, tailored for remote sensing. It encompasses six classification and six segmentation tasks, curated for precision and model evaluation. The package also features a comprehensive evaluation methodology and showcases results from 20 established baseline models.

Project description

GEO-Bench: Toward Foundation Models for Earth Monitoring

GeoBench is a ServiceNow Research project.

License Language: Python

GEO-Bench is a General Earth Observation benchmark for evaluating the performances of large pre-trained models on geospatial data. Read the full paper for usage details and evaluation of existing pre-trained vision models.

Installation

You can install GEO-Bench with pip:

pip install geo-benchmark

Note: Python 3.9+ is required.

Downloading the data

Set $GEO_BENCH_DIR to your preferred location. If not set, it will be stored in $HOME/dataset/geobench.

Next, use the download script. This will automatically download from Zenodo

Run the command:

geobench-download

The current version of the benchmark is 0.9.1. It will soon be updated to incorporate minor changes.

You need ~65 GB of free disk space for download and unzip (once all .zip are deleted it takes 57GB). If some files are already downloaded, it will verify the md5 checksum. Feel free to restart the downloader if it is interrupted.

Test installation

You can run tests. Note: Make sure the benchmark is downloaded before launching tests.

pip install pytest
geobench-test

Loading Datasets

See example_load_dataset.py for how to iterate over datasets.

import geobench

for task in geobench.task_iterator(benchmark_name="classification_v0.9.1"):
    dataset = task.get_dataset(split="train")
    sample = dataset[0]
    for band in sample.bands:
        print(f"{band.band_info.name}: {band.data.shape}")

Visualizing Results

See the notebook baseline_results.ipynb for an example of how to visualize the results.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geobench-0.0.1.tar.gz (345.0 kB view details)

Uploaded Source

Built Distribution

geobench-0.0.1-py3-none-any.whl (346.1 kB view details)

Uploaded Python 3

File details

Details for the file geobench-0.0.1.tar.gz.

File metadata

  • Download URL: geobench-0.0.1.tar.gz
  • Upload date:
  • Size: 345.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/6.2.0-32-generic

File hashes

Hashes for geobench-0.0.1.tar.gz
Algorithm Hash digest
SHA256 461b5d43b299a93c075de3aa8e970b3100d40b79cd4baabad301b0e1db503c3d
MD5 c7fbd1735bb2ca219f8e05cb92b9e415
BLAKE2b-256 680813f68b632d0115fe041672490128cf2974919eabeb3b00957c8d418815dc

See more details on using hashes here.

File details

Details for the file geobench-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: geobench-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 346.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/6.2.0-32-generic

File hashes

Hashes for geobench-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8265fd7e9b3066f1d166cf248b5c42721d55af5b9073d56630c4b01dac76d2c
MD5 a4cbf97598ebb17503119b076defc895
BLAKE2b-256 b71847b46d0194e2c846132b9ccb7487543df03212075026de6f7f0c6aeea582

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page