ZebangCheng commited on
Commit
b822c70
·
1 Parent(s): 6dcf2b6

add index.json

Browse files
Files changed (2) hide show
  1. README.md +24 -0
  2. index.json +14 -0
README.md CHANGED
@@ -1,3 +1,27 @@
1
  ---
2
  license: afl-3.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: afl-3.0
3
  ---
4
+ # test_hf_data_5
5
+
6
+ This is a video dataset in WebDataset format.
7
+
8
+ ## Structure
9
+
10
+ - Each `.tar` archive contains video files (`.mp4`) and metadata (`.json`) with the same prefix.
11
+ - The JSON files contain:
12
+ - `file_name`
13
+ - `label` (numeric)
14
+ - `categories` (emotion category string)
15
+ - `description` (human annotation)
16
+
17
+ ## How to use
18
+
19
+ ```python
20
+ from datasets import load_dataset
21
+
22
+ ds = load_dataset("ZebangCheng/test_hf_data_5", split="train", streaming=True)
23
+ sample = next(iter(ds))
24
+
25
+ # Save video
26
+ with open(sample["json"]["file_name"], "wb") as f:
27
+ f.write(sample["mp4"])
index.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file_name": "00019.mp4",
4
+ "label": 0,
5
+ "categories": "neutral",
6
+ "description": "It's me."
7
+ },
8
+ {
9
+ "file_name": "00020.mp4",
10
+ "label": 1,
11
+ "categories": "surprise",
12
+ "description": "I remember it!"
13
+ }
14
+ ]