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.
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 Hugging Face
Run the command:
geobench-download
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_v1.0"):
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geobench-0.0.2.tar.gz
.
File metadata
- Download URL: geobench-0.0.2.tar.gz
- Upload date:
- Size: 342.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b1e573dd3682a74042eddb7dd961fd49e62b56743e293bd3b1e921d43183fd |
|
MD5 | cb4f6731c92ac94b890956a11a0086a6 |
|
BLAKE2b-256 | d47f5259227a703f53cfbee3c7aade18e06d2ea7a246465d025cd3aae4e30b87 |
File details
Details for the file geobench-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: geobench-0.0.2-py3-none-any.whl
- Upload date:
- Size: 343.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862aaed889893474f47f3f9863da739fae56965925907f1b432c14b9e4cec44b |
|
MD5 | 40065bac3e4f9684db8623d36c703aa3 |
|
BLAKE2b-256 | f63684dfd13aecfc3d588adc8437ad43aaa4253c0091f46508cbf09f42bc38dd |