Datasets:
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- video-classification
|
| 4 |
+
language:
|
| 5 |
+
- vi
|
| 6 |
+
configs:
|
| 7 |
+
- config_name: default
|
| 8 |
+
data_files:
|
| 9 |
+
- split: train
|
| 10 |
+
path: "data/shard_*-train.parquet"
|
| 11 |
+
- split: public_test
|
| 12 |
+
path: "data/shard_*-public_test.parquet"
|
| 13 |
+
- split: private_test
|
| 14 |
+
path: "data/shard_*-private_test.parquet"
|
| 15 |
---
|
| 16 |
+
# ViSignLanguage-MediaPipe
|
| 17 |
+
|
| 18 |
+
MediaPipe Holistic 3D keypoint dataset extracted from the Vietnamese Sign Language (**ViSignLanguage**) video dataset.
|
| 19 |
+
|
| 20 |
+
## Dataset Splits & Shard Mapping
|
| 21 |
+
|
| 22 |
+
Custom split names (`train`, `public_test`, `private_test`) are configured in the YAML header above so `datasets.load_dataset("Haloroute/ViSignLanguage-MediaPipe")` automatically resolves all splits:
|
| 23 |
+
|
| 24 |
+
| Split | Total Videos | Extracted (Uploaded) | Failed / Empty |
|
| 25 |
+
| :--- | ---: | ---: | ---: |
|
| 26 |
+
| `train` | 3875 | 3875 | 0 |
|
| 27 |
+
| `public_test` | 1630 | 1630 | 0 |
|
| 28 |
+
| `private_test` | 2859 | 2859 | 0 |
|
| 29 |
+
|
| 30 |
+
## Schema & Columns
|
| 31 |
+
|
| 32 |
+
Each row corresponds to a single video clip stored in Arrow/Parquet format:
|
| 33 |
+
|
| 34 |
+
| Column | Type / Shape | Description |
|
| 35 |
+
| :--- | :--- | :--- |
|
| 36 |
+
| `pose_pts` | `float32[T, 33, 3]` | Normalized 3D body pose landmarks (`x, y, z`). |
|
| 37 |
+
| `pose_conf` | `float32[T, 33]` | Per-landmark visibility score from MediaPipe Pose (`[0.0, 1.0]`, `0.0` when missing). |
|
| 38 |
+
| `face_pts` | `float32[T, 478, 3]` | Normalized 3D face mesh landmarks (`x, y, z`, 478 points including iris). |
|
| 39 |
+
| `face_conf` | `float32[T, 478]` | Presence score (`1.0` when face is detected in frame, `0.0` when missing). |
|
| 40 |
+
| `left_hand_pts` | `float32[T, 21, 3]` | Normalized 3D left-hand landmarks (`x, y, z`). |
|
| 41 |
+
| `left_hand_conf` | `float32[T, 21]` | Presence score (`1.0` when left hand is detected in frame, `0.0` when missing). |
|
| 42 |
+
| `right_hand_pts` | `float32[T, 21, 3]` | Normalized 3D right-hand landmarks (`x, y, z`). |
|
| 43 |
+
| `right_hand_conf` | `float32[T, 21]` | Presence score (`1.0` when right hand is detected in frame, `0.0` when missing). |
|
| 44 |
+
| `transcript` | `string` | NFC-normalized Vietnamese sign gloss for `train`; empty string `""` for test splits. |
|
| 45 |
+
| `fps` | `float32` | Video frame rate (probed via OpenCV, fallback to metadata CSV). |
|
| 46 |
+
| `duration` | `int32` | Number of decoded frames `T`. |
|
| 47 |
+
| `key` | `string` | Unique relative identifier: `train/<label>/<filename>` or `<split>/<filename>`. |
|
| 48 |
+
| `metadata` | `string` | JSON-encoded object (`ensure_ascii=False`) with `label`, `label_id`, `split`, `filename`, and CSV metadata (`size_mb`, `fps`, `total_frames`, `width`, `height`, `duration_s` for `train`). |
|
| 49 |
+
|
| 50 |
+
## Keypoint Layout
|
| 51 |
+
|
| 52 |
+
- **Pose**: 33 landmarks (`x, y` normalized to `[0, 1]` image coordinates, `z` relative depth at hips origin). Confidence is the landmark `visibility` probability.
|
| 53 |
+
- **Face**: 478 landmarks (`x, y, z` normalized). Confidence is binary (`1.0` if detected, `0.0` if missing).
|
| 54 |
+
- **Hands (Left / Right)**: 21 landmarks each (`x, y, z` normalized). Confidence is binary (`1.0` if detected, `0.0` if missing).
|
| 55 |
+
- Leading person dimension `(1, T, ...)` from `HolisticPose` is squeezed to `(T, ...)`.
|
| 56 |
+
|
| 57 |
+
## Label Mapping
|
| 58 |
+
|
| 59 |
+
The complete 100-class mapping (`label -> int id`, NFC-normalized) is stored in [`label_mapping.json`](label_mapping.json).
|
| 60 |
+
|
| 61 |
+
| ID | Label (NFC Vietnamese) |
|
| 62 |
+
| ---: | :--- |
|
| 63 |
+
| 0 | `An ủi` |
|
| 64 |
+
| 1 | `Áp dụng` |
|
| 65 |
+
| 2 | `Ăn` |
|
| 66 |
+
| 3 | `Ăn mừng` |
|
| 67 |
+
| 4 | `Ban ngày` |
|
| 68 |
+
| 5 | `Ban đêm` |
|
| 69 |
+
| 6 | `Bàn tay` |
|
| 70 |
+
| 7 | `Băn khoăn` |
|
| 71 |
+
| 8 | `Bạn thân` |
|
| 72 |
+
| 9 | `Bế mạc` |
|
| 73 |
+
| 10 | `Bệnh nhân` |
|
| 74 |
+
| 11 | `Bệnh viện` |
|
| 75 |
+
| 12 | `Biết` |
|
| 76 |
+
| 13 | `Biếu tặng` |
|
| 77 |
+
| 14 | `Bộ y tế` |
|
| 78 |
+
| ... | *(100 total classes — see `label_mapping.json`)* |
|
| 79 |
+
|
| 80 |
+
## Usage
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
import json
|
| 84 |
+
from datasets import load_dataset
|
| 85 |
+
|
| 86 |
+
ds = load_dataset("Haloroute/ViSignLanguage-MediaPipe")
|
| 87 |
+
sample = ds["train"][0]
|
| 88 |
+
print(sample["key"], sample["transcript"], sample["duration"])
|
| 89 |
+
meta = json.loads(sample["metadata"])
|
| 90 |
+
```
|