--- license: cdla-permissive-1.0 task_categories: - image-text-to-text - visual-question-answering - multiple-choice task_ids: - image-captioning - multiple-choice-qa language: - en pretty_name: BigEarthNet.txt size_categories: - 1M

Paper Website Badge Paper arXiv Badge Community Data License Agreement - Permissive - Version 1.0 License Badge

# BigEarthNet.txt: A Large-Scale Multi-Sensor Image-Text Dataset and Benchmark for Earth Observation `BigEarthNet.txt` is a large-scale multi-sensor image–text dataset for Earth observation, designed to advance vision–language learning on remote sensing data. It comprises 464,044 co-registered Sentinel-1 (SAR) and Sentinel-2 (multispectral) image pairs collected over Europe, paired with approximately 9.6 million textual annotations. The textual annotations include geographically anchored captions describing land-use/land-cover (LULC) classes and their spatial relationships, diverse visual question answering (VQA) pairs (binary and multiple-choice), and referring expression instructions for LULC localization. In addition, the dataset provides a manually verified benchmark split consisting of 1,082 image pairs with 15,029 textual annotations, specifically designed for reliable evaluation of vision–language models on complex multi-sensor remote sensing tasks. For more details on the dataset, please see our [paper website](https://txt.bigearth.net).
The dataset supports 15 tasks (Presence, Area, Counting, Adjacency, Relative Position Country, Season, and Climate Zone, denoted as Pr, A, Cnt, Adj, RP, Loc, S, and Clt, respectively) across 4 broad categories.

## Parquet File Structure The `BigEarthNet.txt.parquet` file contains multiple attributes: - `ID`: A unique identifier for each sample in the dataset. - `s1_name`: The name of the Sentinel-1 patch from `BigEarthNet v2.0`. - `patch_id`: The name of the Sentinel-2 patch from `BigEarthNet v2.0`. - `input`: The instruction or question for the VLM. - `output`: The reference answer. - `type`: The broader task-type of the sample, i.e., `binary`, `mcq`, `captioning`, or `bounding box`. - `category`: The more fine-grained task-type. See [here](https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt/sql-console/8okbuKf) for all type-category combinations. - `split`: The associated split of the sample, i.e., `train`, `validation`, `test`, or `bench`. - `latitude`: The latitude coordinates of the center of the image patch. - `longitude`: The longitude coordinates of the center of the image patch. - `country`: The acquisition country of the image patch. See [here](https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt/sql-console/2VjTg9F) for all available values. - `season`: The acquisition season of the image patch. See [here](https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt/sql-console/HBlGRnW) for all available values. - `climate_zone`: The associated [Köppen-Geiger](https://www.nature.com/articles/s41597-023-02549-6) climate zone. See [here](https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt/sql-console/3xLT8_u) for all available values.
## How to use We show the recommended way to prepare the image and text data to be jointly used in the form of a custom [PyTorch Dataset](https://docs.pytorch.org/tutorials/beginner/basics/data_tutorial.html) `BENTxTDataset` or [DataLoader](https://docs.pytorch.org/tutorials/beginner/basics/data_tutorial.html) `BENTxTDataModule` provided in [ben_txt_datamodule.py](ben_txt_datamodule.py). #### 1. Download `BigEarthNet.txt.parquet` Download using Git. ```bash git clone https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt ``` #### 2. Download the Image Data Download the Sentinel-1 and Sentinel-2 image data from the [BigEarthNet v2.0 website](https://bigearth.net/). #### 3. Preprocess the Image Data Convert the Sentinel-1 and Sentinel-2 image data to `safetensors` stored in an `LMDB` database for higher throughput using [rico-hdl](https://github.com/rsim-tu-berlin/rico-hdl). Follow the installation instructions on [GitHub](https://github.com/rsim-tu-berlin/rico-hdl), then execute the following command to convert the Sentinel-1 and Sentinel-2 image data downloaded to `` and ``. ```bash rico-hdl bigearthnet --bigearthnet-s1-dir --bigearthnet-s2-dir --target-dir Encoded-BigEarthNet ``` #### 4. Load the Data Install [uv](https://docs.astral.sh/uv/getting-started/installation/). Install the required packages via uv using the command below. You can specify if you want to use the PyTorch CPU version or PyTorch with CUDA 12.6 by choosing `cpu` or `cu126` as the `