Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: UnidentifiedImageError
Message: cannot identify image file <_io.BytesIO object at 0x7f1ab1629300>
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2240, in __iter__
example = _apply_feature_types_on_example(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2159, in _apply_feature_types_on_example
decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2204, in decode_example
column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1508, in decode_nested_example
return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/image.py", line 192, in decode_example
image = PIL.Image.open(BytesIO(bytes_))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/PIL/Image.py", line 3498, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f1ab1629300>Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Coffee Plantation Segmentation Dataset
Semantic segmentation dataset for coffee plantation and eucalyptus mapping in the Brazilian Cerrado using Sentinel-1 SAR time series.
Associated paper: Exploiting Convolutional and Transformer Networks for Coffee Plantation Mapping in Brazil Using Polarimetric-Spectral-Temporal Data from Sentinel-1 and Planet NICFI Time Series (under review)
Dataset Description
This dataset contains 2,400 densely annotated tiles (512 Γ 512 pixels) from Patrocinio, Minas Gerais β Brazil's largest coffee-producing municipality, located in the Cerrado Mineiro region.
Contents
| File | Description | Size |
|---|---|---|
vh_train.tar.gz |
Sentinel-1 VH training images (2000 tiles) | 25 GB |
vh_val.tar.gz |
Sentinel-1 VH validation images (200 tiles) | 2.5 GB |
vh_test.tar.gz |
Sentinel-1 VH test images (200 tiles) | 2.5 GB |
vv_train.tar.gz |
Sentinel-1 VV training images (2000 tiles) | 25 GB |
vv_val.tar.gz |
Sentinel-1 VV validation images (200 tiles) | 2.5 GB |
vv_test.tar.gz |
Sentinel-1 VV test images (200 tiles) | 2.5 GB |
masks.tar.gz |
Ground truth masks (all splits) | 7 MB |
Modalities
| Modality | Bands | Format | Description |
|---|---|---|---|
| VH | 30 | GeoTIFF (.tiff) | Sentinel-1 VH polarization, 30 temporal acquisitions (2021) |
| VV | 30 | GeoTIFF (.tiff) | Sentinel-1 VV polarization, 30 temporal acquisitions (2021) |
| Masks | 1 | PNG (.png) | Ground truth segmentation masks |
Classes
| Value | Class | Color |
|---|---|---|
| 0 | Background | Black |
| 2 | Coffee | Green |
| 3 | Eucalyptus | Yellow |
Note: During training, labels are remapped to 0, 1, 2. See the training code for details.
Data Splits
| Split | Tiles | Usage |
|---|---|---|
| Train | 2,000 | Model training |
| Val | 200 | Validation during training |
| Test | 200 | Final evaluation |
SAR Preprocessing
Sentinel-1 images were acquired in Ground Range Detected (GRD) format, Interferometric Wide Swath mode, and preprocessed using SNAP:
- Apply orbit file
- Radiometric calibration (to backscatter)
- Doppler terrain correction (SRTM)
- Conversion to decibels (dB)
- Savitzky-Golay temporal filtering (window=9, polynomial order=2)
Planet NICFI Data
The original study also used Planet NICFI optical imagery (48 bands: B, G, R, NIR Γ 12 months). Due to the NICFI license restrictions, Planet data cannot be redistributed here.
To reproduce the full paper results (Combined dataset, 108 bands):
- Obtain Planet NICFI mosaics from the NICFI archive
- Use
prepare_combined.pyfrom the code repository to combine all modalities
Usage
Download and extract
# After downloading the files:
tar xzf vh_train.tar.gz
tar xzf vh_val.tar.gz
tar xzf vh_test.tar.gz
tar xzf vv_train.tar.gz
tar xzf vv_val.tar.gz
tar xzf vv_test.tar.gz
tar xzf masks.tar.gz
Expected directory structure
DATASET/
βββ VH_GT6/
β βββ image_train/ # 2000 .tiff files
β βββ image_val/ # 200 .tiff files
β βββ image_test/ # 200 .tiff files
βββ VV_GT6/
β βββ image_train/
β βββ image_val/
β βββ image_test/
βββ Planet_GT6/
βββ class_train/ # 2000 .png masks
βββ class_val/ # 200 .png masks
βββ class_test/ # 200 .png masks
Train a model
git clone https://github.com/osmarluiz/coffee-segmentation.git
cd coffee-segmentation
pip install -r requirements.txt
python train.py --dataset VH --model Segformer --encoder efficientnet-b7 --data-dir /path/to/DATASET
Citation
@article{carvalho2025coffee,
title={Exploiting Convolutional and Transformer Networks for Coffee Plantation
Mapping in Brazil Using Polarimetric-Spectral-Temporal Data from
Sentinel-1 and Planet NICFI Time Series},
author={Carvalho, Osmar Luiz Ferreira de and Carvalho Junior, Osmar Abilio de
and Albuquerque, Anesmar Olino de and Castro Filho, Hugo Cristomo de
and Moura, Joelma Mendes de and Antony, Dora Silva
and Silva, Daniel Guerreiro e},
year={2025},
note={Under review}
}
License
This dataset is released under CC BY 4.0.
- Downloads last month
- 5