The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: UnicodeDecodeError
Message: 'utf-8' codec can't decode byte 0xac in position 7403526: invalid start byte
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 2431, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 329, in __iter__
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/text/text.py", line 73, in _generate_tables
batch = f.read(self.config.chunksize)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/utils/file_utils.py", line 813, in read_with_retries
out = read(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 7403526: invalid start byteNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
CoCoaSpec: A Multimodal hyperspectral dataset of cocoa beans with physicochemical annotation
Overview
The CoCoaSpec dataset is a multimodal hyperspectral imaging dataset of Colombian cocoa beans with detailed physicochemical annotations.
It was created to support research on non-destructive cocoa quality assessment, spectral data analysis, and multimodal data fusion.
The dataset includes hyperspectral images acquired with four different devices, along with reference physicochemical measurements and metadata.
Contents
- Hyperspectral cubes (raw and preprocessed)
- RGB images (EOS M50 camera)
- Physicochemical annotations (fermentation degree, moisture content, etc.)
- Calibration & metadata (dark/flat fields, wavelength centers, camera metadata, acquisition conditions, calibration details, sample identifiers)
Data Structure
The dataset is organized as follows:
data/
├── scenes/ # Scene-level acquisitions across devices
├── resources/ # Calibration and metadata resources
│ ├── dark_fields/
│ ├── flat_fields/
│ ├── metadata/ # cameras.json, campaign_metadata.json
│ ├── wavelengths/ # per-device band centers
│ └── physicochemical.csv # physicochemical information
├── README.md
└── dataset.zip # Full dataset as a single archive
How to Use
You can load the dataset with the Hugging Face datasets library:
from datasets import load_dataset
# Login using e.g. `huggingface-cli login` to access this dataset
ds = load_dataset("ecos-nord-ginp-uis/CoCoaSpec")
Code (Loading, Preprocessing, Visualization)
Example Python scripts for loading, visualization, and preprocessing are available in the public GitHub repository:
https://github.com/kebincontreras/CoCoaSpec
License
This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.
Citation
If you use this dataset, please cite the DOI below.
Nature Scientific Data style reference
Contreras, K., Jouni, M., Dalla Mura, M. & Bacca, J. CoCoaSpec: A multimodal hyperspectral dataset of cocoa beans with physicochemical annotation. Hugging Face Datasets https://doi.org/10.57967/hf/6961 (2025). (Revision a6bf0d7)
BibTeX
@dataset{contreras2025cocoaspec,
author = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
title = {CoCoaSpec: A Multimodal hyperspectral dataset of cocoa beans with physicochemical annotation},
year = {2025},
publisher = {Hugging Face Datasets},
doi = {10.57967/hf/6961},
url = {https://doi.org/10.57967/hf/6961},
note = {Revision a6bf0d7}
}
Acknowledgements
This dataset was developed at Universidad Industrial de Santander (Colombia) in collaboration with Université Grenoble Alpes – GIPSA-Lab (France).
We thank all contributors for their efforts in acquisition, annotation, and validation.
Contact
For questions, suggestions, or issues regarding this dataset, please contact (primary first):
Kebin Contreras — Universidad Industrial de Santander (UIS)
Email: [email protected]Mohamad Jouni — Université Grenoble Alpes (UGA), GIPSA-Lab
Email: [email protected]Mauro Dalla Mura — Grenoble INP–UGA, GIPSA-Lab
Email: [email protected]Jorge Bacca — Universidad Industrial de Santander (UIS)
Email: [email protected]
Please mention “CoCoaSpec dataset” in the subject line when reaching out.
- Downloads last month
- 51