The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
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/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1815, in _prepare_split_single
for _, table in generator:
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 692, in wrapped
for item in generator(*args, **kwargs):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/text/text.py", line 73, in _generate_tables
batch = f.read(self.config.chunksize)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 813, in read_with_retries
out = read(*args, **kwargs)
File "/usr/local/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 7403526: invalid start byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1451, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 994, in stream_convert_to_parquet
builder._prepare_split(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text
string |
|---|
---
|
license: cc-by-4.0
|
---
|
# CoCoaSpec Dataset: A Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations
|
## 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
|
└── data.rar # Full dataset as a single archive
|
```
|
## How to Use
|
You can load the dataset with the Hugging Face `datasets` library:
|
```python
|
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)](https://creativecommons.org/licenses/by/4.0/) license.
|
## Citation
|
If you use this dataset, please cite:
|
```bibtex
|
@dataset{contreras2025cocoaspec,
|
author = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
|
title = {CoCoaSpec: Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations},
|
year = {2025},
|
publisher = {Hugging Face},
|
doi = {10.57967/hf/6532},
|
url = {https://huggingface.co/datasets/ecos-nord-ginp-uis/CoCoaSpec}
|
}
|
```
|
## 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]](mailto:[email protected]?subject=CoCoaSpec%20dataset)
|
- **Mohamad Jouni** — Université Grenoble Alpes (UGA), GIPSA-Lab
|
Email: [[email protected]](mailto:[email protected]?subject=CoCoaSpec%20dataset)
|
- **Mauro Dalla Mura** — Grenoble INP–UGA, GIPSA-Lab
|
Email: [[email protected]](mailto:[email protected]?subject=CoCoaSpec%20dataset)
|
- **Jorge Bacca** — Universidad Industrial de Santander (UIS)
|
Email: [[email protected]](mailto:[email protected]?subject=CoCoaSpec%20dataset)
|
Please mention **“CoCoaSpec dataset”** in the subject line when reaching out.
|
scenes,moisture,cadmium,polyphenols,fermentation
|
1,4.74,2.57,32.85,73
|
2,4.74,2.57,32.85,73
|
3,4.74,2.57,32.85,73
|
4,4.56,2.19,28.78,94
|
5,4.56,2.19,28.78,94
|
6,4.94,1.69,39.75,85
|
7,4.94,1.69,39.75,85
|
8,4.56,2.19,28.78,94
|
9,4.56,2.19,28.78,94
|
10,5.09,1.73,23.74,92
|
11,5.12,2.14,41.3,60
|
12,4.93,1.29,34.24,66
|
13,4.8,1.25,40.38,84
|
14,4.75,1.23,39.81,92
|
CoCoaSpec Dataset: A Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations
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
└── data.rar # 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:
Latest (no DOI, stable across updates):
@dataset{contreras2025cocoaspec,
author = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
title = {CoCoaSpec: Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/ecos-nord-ginp-uis/CoCoaSpec}
note = {Please cite a versioned DOI when available; see the dataset page for the latest DOI.}
}
Versioned (preferred for reproducibility):
- Open the dataset page and check the latest DOI.
- Copy the DOI into this template:
@dataset{contreras2025cocoaspec,
author = {Contreras, Kebin and Jouni, Mohamad and Dalla Mura, Mauro and Bacca, Jorge},
title = {CoCoaSpec: Multimodal Hyperspectral Cocoa Beans with Physicochemical Annotations},
year = {2025},
publisher = {Hugging Face},
doi = {<paste-versioned-DOI-here>},
url = {https://doi.org/<paste-versioned-DOI-here>},
note = {Version: <vX or date>}
}
➡️ Get the latest DOI: see the “Cite this dataset” badge on the dataset page.
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
- 42