File size: 628 Bytes
5e69cab b822c70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
---
license: afl-3.0
---
# test_hf_data_5
This is a video dataset in WebDataset format.
## Structure
- Each `.tar` archive contains video files (`.mp4`) and metadata (`.json`) with the same prefix.
- The JSON files contain:
- `file_name`
- `label` (numeric)
- `categories` (emotion category string)
- `description` (human annotation)
## How to use
```python
from datasets import load_dataset
ds = load_dataset("ZebangCheng/test_hf_data_5", split="train", streaming=True)
sample = next(iter(ds))
# Save video
with open(sample["json"]["file_name"], "wb") as f:
f.write(sample["mp4"])
|