|
---
|
|
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"])
|
|
|