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

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

This will download all datasets in parallel. If some files are already downloaded, it will verify the md5 checksum. Feel free to restart the downloader if it is interrupted or if you get Error: TOO MANY REQUESTS. m-bigearthnet takes the longest time and Zenodo is a bit slow some days.

Test installation

Optionnaly run tests:

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

geo_benchmark-0.0.4.tar.gz (343.8 kB view details)

Uploaded Source

Built Distribution

geo_benchmark-0.0.4-py3-none-any.whl (345.0 kB view details)

Uploaded Python 3

File details

Details for the file geo_benchmark-0.0.4.tar.gz.

File metadata

  • Download URL: geo_benchmark-0.0.4.tar.gz
  • Upload date:
  • Size: 343.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-60-generic

File hashes

Hashes for geo_benchmark-0.0.4.tar.gz
Algorithm Hash digest
SHA256 655c6422fabb9e3503212ddb242dcbf22934b7a179a8ac5ebba8d181962bdae8
MD5 0937fc9fdcca27274056eaa73b409943
BLAKE2b-256 14e285b1affb81e2475b0e89cc5946aaaab5f669f41581b9bf5d1d4de44c7950

See more details on using hashes here.

File details

Details for the file geo_benchmark-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: geo_benchmark-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 345.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-60-generic

File hashes

Hashes for geo_benchmark-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 091e477b6326f6d19b3dc95ff8a7b257e3912c90b7877eb922e6f06daf83ea8f
MD5 6f2e6b65e80baf1126587a957f634d9e
BLAKE2b-256 0e03e044f9b4fc8ac104dbff67cfbf70d863027a716b5a6502493e3731d36f00

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