Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
task_categories:
|
| 6 |
+
- audio-classification
|
| 7 |
+
- text-to-audio
|
| 8 |
+
tags:
|
| 9 |
+
- audio-retrieval
|
| 10 |
+
- audio-captioning
|
| 11 |
+
- DCASE
|
| 12 |
+
- CLAP
|
| 13 |
+
- contrastive-learning
|
| 14 |
+
pretty_name: Clotho Development Subset
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1K<n<10K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Clotho Development Subset
|
| 20 |
+
|
| 21 |
+
A sampled subset (~3GB) of the [Clotho v2.1](https://zenodo.org/record/3490684) development split, packaged for quick experimentation with audio-text retrieval pipelines.
|
| 22 |
+
|
| 23 |
+
## 📋 Dataset Description
|
| 24 |
+
|
| 25 |
+
This dataset is a convenience subset of the **Clotho** audio captioning dataset, created for rapid prototyping and testing of audio-text retrieval models (e.g., CLAP fine-tuning) on limited compute.
|
| 26 |
+
|
| 27 |
+
- **Source**: Clotho v2.1 (development split)
|
| 28 |
+
- **Original Authors**: K. Drossos, S. Lipping, T. Virtanen
|
| 29 |
+
- **Original Paper**: [Clotho: An Audio Captioning Dataset](https://arxiv.org/abs/1910.09387)
|
| 30 |
+
|
| 31 |
+
## 📊 Dataset Structure
|
| 32 |
+
|
| 33 |
+
### Splits
|
| 34 |
+
|
| 35 |
+
| Split | Samples | Description |
|
| 36 |
+
|-------|---------|-------------|
|
| 37 |
+
| train | ~1,300 | Training set (80%) |
|
| 38 |
+
| test | ~330 | Test set (20%) |
|
| 39 |
+
|
| 40 |
+
### Features
|
| 41 |
+
|
| 42 |
+
| Column | Type | Description |
|
| 43 |
+
|--------|------|-------------|
|
| 44 |
+
| `file_name` | `string` | Original filename from Clotho |
|
| 45 |
+
| `audio` | `Audio` | Audio waveform, 44.1kHz |
|
| 46 |
+
| `caption_1` | `string` | Human-written caption #1 |
|
| 47 |
+
| `caption_2` | `string` | Human-written caption #2 |
|
| 48 |
+
| `caption_3` | `string` | Human-written caption #3 |
|
| 49 |
+
| `caption_4` | `string` | Human-written caption #4 |
|
| 50 |
+
| `caption_5` | `string` | Human-written caption #5 |
|
| 51 |
+
|
| 52 |
+
### Audio Details
|
| 53 |
+
|
| 54 |
+
- **Duration**: 15–30 seconds per clip
|
| 55 |
+
- **Sample Rate**: 44,100 Hz
|
| 56 |
+
- **Channels**: Mono
|
| 57 |
+
- **Format**: WAV (stored as Parquet/Arrow on Hub)
|
| 58 |
+
|
| 59 |
+
## 🚀 Usage
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from datasets import load_dataset
|
| 63 |
+
|
| 64 |
+
ds = load_dataset("your-username/clotho-dev-sample")
|
| 65 |
+
|
| 66 |
+
# Access a sample
|
| 67 |
+
sample = ds["train"][0]
|
| 68 |
+
print(sample["caption_1"]) # "A dog barks in the distance"
|
| 69 |
+
print(sample["audio"]) # {'array': array([...]), 'sampling_rate': 44100}
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
### With CLAP
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from transformers import ClapProcessor, ClapModel
|
| 76 |
+
|
| 77 |
+
processor = ClapProcessor.from_pretrained("laion/clap-htsat-unfused")
|
| 78 |
+
model = ClapModel.from_pretrained("laion/clap-htsat-unfused")
|
| 79 |
+
|
| 80 |
+
sample = ds["train"][0]
|
| 81 |
+
inputs = processor(
|
| 82 |
+
audios=sample["audio"]["array"],
|
| 83 |
+
sampling_rate=sample["audio"]["sampling_rate"],
|
| 84 |
+
text=sample["caption_1"],
|
| 85 |
+
return_tensors="pt",
|
| 86 |
+
padding=True,
|
| 87 |
+
)
|
| 88 |
+
outputs = model(**inputs)
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## ⚠️ Important Notes
|
| 92 |
+
|
| 93 |
+
- This is a **subset** (~43%) of the full Clotho development split, sampled randomly with `seed=42`
|
| 94 |
+
- For official benchmarking, use the full Clotho dataset from [Zenodo](https://zenodo.org/record/3490684)
|
| 95 |
+
- This subset is intended for **pipeline testing and prototyping only**
|
| 96 |
+
|
| 97 |
+
## 📄 Citation
|
| 98 |
+
|
| 99 |
+
If you use this dataset, please cite the original Clotho paper:
|
| 100 |
+
|
| 101 |
+
```bibtex
|
| 102 |
+
@inproceedings{drossos2020clotho,
|
| 103 |
+
title={Clotho: An Audio Captioning Dataset},
|
| 104 |
+
author={Drossos, Konstantinos and Lipping, Samuel and Virtanen, Tuomas},
|
| 105 |
+
booktitle={ICASSP 2020 - IEEE International Conference on Acoustics, Speech and Signal Processing},
|
| 106 |
+
pages={736--740},
|
| 107 |
+
year={2020},
|
| 108 |
+
organization={IEEE}
|
| 109 |
+
}
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## 🏷️ License
|
| 113 |
+
|
| 114 |
+
This dataset follows the original Clotho license. Audio clips are sourced from [Freesound](https://freesound.org/) under Creative Commons licenses. Please refer to the [original dataset](https://zenodo.org/record/3490684) for full license details.
|