Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- video-games
|
| 9 |
+
- cs2
|
| 10 |
+
- dota2
|
| 11 |
+
- valorant
|
| 12 |
+
- game-classification
|
| 13 |
+
pretty_name: Gamed — Game Classification (train + held-out eval)
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1K<n<10K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Gamed — Game Classification Dataset
|
| 19 |
+
|
| 20 |
+
Train and held-out eval frames for a 3-class game classifier
|
| 21 |
+
(`cs2`, `dota2`, `valorant`). Used to train and evaluate
|
| 22 |
+
[`ybashir/gamed-game-classification`](https://huggingface.co/ybashir/gamed-game-classification),
|
| 23 |
+
the §1.1 hot-path detector in [coach-api](https://github.com/bashiryounis/gamed).
|
| 24 |
+
|
| 25 |
+
The source `.mp4` files are **not** included — see `urls.txt` for the
|
| 26 |
+
original YouTube links. All frames here are derived at 0.4 fps via
|
| 27 |
+
`ffmpeg` and resized to 224×224 (squashed 1:1).
|
| 28 |
+
|
| 29 |
+
## Structure
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
train/
|
| 33 |
+
manifest.csv 6450 rows — path,class,video_id,frame_idx,t_sec
|
| 34 |
+
frames_224.zip 6450 JPGs (224×224), grouped by class inside the zip
|
| 35 |
+
|
| 36 |
+
eval/
|
| 37 |
+
manifest.csv 450 rows — 150/class evenly-spaced subsample
|
| 38 |
+
manifest_full.csv 1118 rows — full extraction (cs2 390 / dota2 295 / valorant 433)
|
| 39 |
+
frames/
|
| 40 |
+
cs2/ 390 JPGs
|
| 41 |
+
dota2/ 295 JPGs
|
| 42 |
+
valorant/ 433 JPGs
|
| 43 |
+
predictions.csv Held-out predictions from the published checkpoint (450)
|
| 44 |
+
predictions_full.csv Held-out predictions from the published checkpoint (1118)
|
| 45 |
+
report.md Acc + P/R/F1 + confusion matrix (450)
|
| 46 |
+
report_full.md Acc + P/R/F1 + confusion matrix (1118)
|
| 47 |
+
|
| 48 |
+
urls.txt YouTube source URLs (train + eval) + per-video start offsets
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Manifest schema
|
| 52 |
+
|
| 53 |
+
Both `train/manifest.csv` and `eval/manifest.csv` have the same columns:
|
| 54 |
+
|
| 55 |
+
```csv
|
| 56 |
+
path,class,video_id,frame_idx,t_sec[,split]
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
- `path` — relative to the original repo cwd (`gamed/`)
|
| 60 |
+
- `class` — `cs2` / `dota2` / `valorant`
|
| 61 |
+
- `video_id` — YouTube ID (11 chars), parsed from the source filename prefix
|
| 62 |
+
- `frame_idx` — 1-indexed JPG index within the video
|
| 63 |
+
- `t_sec` — timestamp in the source video the frame was sampled from
|
| 64 |
+
- `split` — only on eval manifests, always `eval`
|
| 65 |
+
|
| 66 |
+
## Train vs eval — important caveat
|
| 67 |
+
|
| 68 |
+
Training was done with a **frame-level** `random_split(0.70/0.15/0.15)` on
|
| 69 |
+
`train/manifest.csv`. The same `video_id`s appear in train and val/test,
|
| 70 |
+
so the 99% accuracy quoted in the original notebook is over-optimistic
|
| 71 |
+
(video-level leakage).
|
| 72 |
+
|
| 73 |
+
The **eval/** split fixes this:
|
| 74 |
+
- 3 fresh YouTube videos (different `video_id`, different uploaders)
|
| 75 |
+
- Zero `video_id` overlap with the training set
|
| 76 |
+
- Reported eval accuracy: **99.91 %** on 1118 frames, **100 %** on the
|
| 77 |
+
150/class subsample
|
| 78 |
+
|
| 79 |
+
This is the number to cite. Tool to reproduce:
|
| 80 |
+
[`cli/gamed_classification_eval.py`](https://github.com/bashiryounis/gamed/blob/main/cli/gamed_classification_eval.py).
|
| 81 |
+
|
| 82 |
+
## How frames were extracted
|
| 83 |
+
|
| 84 |
+
`scripts/extract_frames.py` in the repo runs `ffmpeg` at 0.4 fps with
|
| 85 |
+
optional per-video `--trim-start` offsets to skip menus / intros.
|
| 86 |
+
Frames are JPEG q=5 (~85% quality) at 224×224 (squashed).
|
| 87 |
+
|
| 88 |
+
Per-video offsets used for the eval set:
|
| 89 |
+
|
| 90 |
+
| Class | Video ID | start_sec |
|
| 91 |
+
|---|---|---|
|
| 92 |
+
| cs2 | `FF1pN66xVfA` | 0 |
|
| 93 |
+
| dota2 | `2fpY4OeoY0c` | 210 |
|
| 94 |
+
| valorant | `Alrz2LCm8pg` | 0 |
|
| 95 |
+
|
| 96 |
+
## Eval results from the published checkpoint
|
| 97 |
+
|
| 98 |
+
See `eval/report.md` and `eval/report_full.md` for the full numbers.
|
| 99 |
+
Headline:
|
| 100 |
+
|
| 101 |
+
| Set | Frames | Accuracy |
|
| 102 |
+
|---|---|---|
|
| 103 |
+
| `eval/manifest.csv` (450) | 150 / class | 100 % |
|
| 104 |
+
| `eval/manifest_full.csv` (1118) | 390 / 295 / 433 | 99.91 % |
|
| 105 |
+
|
| 106 |
+
Single error: `valorant/Alrz2LCm8pg_000133.jpg` (t≈330 s) — a
|
| 107 |
+
round-end "WON" overlay misread as CS2 because Valorant's orange/red
|
| 108 |
+
Combat Report panel mimics CS2's post-round MVP card.
|
| 109 |
+
|
| 110 |
+
## License
|
| 111 |
+
|
| 112 |
+
Frames are 224×224 derivatives of publicly-uploaded "no commentary"
|
| 113 |
+
YouTube gameplay videos. CC-BY-4.0 on the derived dataset itself; the
|
| 114 |
+
underlying game footage remains the property of the original uploaders
|
| 115 |
+
and the respective game publishers (Valve, Riot Games).
|
| 116 |
+
|
| 117 |
+
## Citation
|
| 118 |
+
|
| 119 |
+
Repo: <https://github.com/bashiryounis/gamed>
|