ArnieRamesh commited on
Commit
7c741f4
·
verified ·
1 Parent(s): c32ba15

Showcase media (gifs + 720p mp4s) and Video(decode=False) snippets

Browse files
README.md CHANGED
@@ -18,486 +18,209 @@ tags:
18
  - audio
19
  - esports
20
  size_categories:
21
- - 10M<n<100M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ---
23
 
24
  # CounterStrike-1K
25
 
26
- CounterStrike-1K is a large-scale, synchronized multi-POV Counter-Strike 2 dataset for world modeling and action-conditioned video prediction. The primary QA-filtered round-level release lock contains **1,490.82 rendered player-POV hours** from professional CS2 match-map demos, with exactly 10 synchronized player perspectives per released round. A strict full-demo chronology lock is also provided as a subset for evaluations that require complete demo-map timelines. Each sample contains rendered POV video with synchronized stereo game audio, per-frame controls, per-frame player/game state, sparse gameplay events, and public metadata.
 
 
27
 
28
- Raw HLTV demo files are **not** redistributed. The public release contains derived, anonymized artifacts only: video/audio, action/state records, sparse event records, public metadata, release indices, and supplemental derived game traces.
29
 
30
- ## Quickstart
 
 
 
 
 
31
 
32
- Install the basic loading tools:
33
 
34
- ```bash
35
- pip install huggingface_hub webdataset pyarrow pandas numpy
36
- git clone https://github.com/AnirudhhRamesh/CounterStrike-1K
37
- cd CounterStrike-1K
38
- pip install -e .
39
- ```
40
-
41
- Download the small sample release:
42
 
43
- ```python
44
- from pathlib import Path
45
- from huggingface_hub import snapshot_download
46
 
47
- root = Path(snapshot_download(
48
- repo_id="ArnieRamesh/CounterStrike-1K-sample",
49
- repo_type="dataset",
50
- ))
51
- print(root)
52
  ```
53
 
54
- Load the sample inventory:
55
-
56
- ```python
57
- import pyarrow.parquet as pq
58
 
59
- manifest = pq.read_table(root / "manifest.parquet").to_pandas()
60
- print(manifest[["sample_key", "map_slug", "split", "round_id", "pov_idx", "duration_s", "frames"]].head())
 
 
61
  ```
 
62
 
63
- Use the high-level v12 loader for the normal researcher interface:
64
 
65
  ```python
66
- from counterstrike1k import CounterStrike1K
67
-
68
- ds = CounterStrike1K(
69
- root=root,
70
- subset="sample", # full release examples: train_100h, dust2_100h, train_all
71
- resolution="360p",
72
- )
73
-
74
- sample = next(iter(ds))
75
- print(sample["metadata"]["sample_key"])
76
- print(sample["actions"].dtype, sample["state"].dtype)
77
- print(sample["player_alive"].shape, sample["player_alive"].mean())
78
- ```
79
 
80
- Stream WebDataset shards and decode the v12 control/state binaries:
 
 
 
81
 
82
- ```python
83
- from pathlib import Path
84
- import numpy as np
85
- import webdataset as wds
86
-
87
- ACTION_DTYPE = np.dtype([
88
- ("tick", "<u4"),
89
- ("delta_pitch", "<f4"),
90
- ("delta_yaw", "<f4"),
91
- ("buttons", "<u2"),
92
- ])
93
-
94
- STATE_DTYPE = np.dtype([
95
- ("tick", "<u4"), ("pitch", "<f4"), ("yaw", "<f4"),
96
- ("pos_x", "<f4"), ("pos_y", "<f4"), ("pos_z", "<f4"),
97
- ("active_weapon", "u1"), ("active_weapon_id", "u1"),
98
- ("ammo_clip", "u1"), ("ammo_reserve", "u1"),
99
- ("health", "u1"), ("armor_value", "u1"), ("balance", "<u2"),
100
- ("t_score", "u1"), ("ct_score", "u1"),
101
- ("has_helmet", "u1"), ("has_defuser", "u1"), ("has_bomb", "u1"),
102
- ])
103
-
104
- shards = sorted(str(path) for path in Path(root).glob("shards-360p/**/*.tar"))
105
- dataset = (
106
- wds.WebDataset(shards)
107
- .decode(wds.torch_video)
108
- .to_tuple("mp4", "actions.bin", "state.bin", "events.json", "json")
109
- )
110
-
111
- video, actions_bin, state_bin, events, metadata = next(iter(dataset))
112
- actions = np.frombuffer(actions_bin, dtype=ACTION_DTYPE)
113
- state = np.frombuffer(state_bin, dtype=STATE_DTYPE)
114
- player_alive = (
115
- (state["tick"].astype(np.int64) >= metadata["alive_start_tick"])
116
- & (state["tick"].astype(np.int64) < metadata["alive_end_tick"])
117
- )
118
- print(metadata["sample_key"], video.shape, actions.shape, state.shape, player_alive.mean())
119
  ```
120
 
121
- Load a synchronized round:
122
 
123
  ```python
124
- round_index = pq.read_table(root / "round_index.parquet").to_pandas()
125
- manifest = pq.read_table(root / "manifest.parquet").to_pandas()
126
- complete = round_index[round_index["complete_10_pov"]].iloc[0]
127
- round_samples = (
128
- manifest[manifest["round_id"] == complete["round_id"]]
129
- .sort_values("pov_idx")
130
- )
131
- print(complete["round_id"], round_samples["sample_key"].tolist())
132
- ```
133
-
134
- Browse release statistics locally:
135
 
136
- ```bash
137
- uv run --script cs2_generate/serve_release_stats_viewer.py \
138
- --s3-prefix s3://counterstrike-1k \
139
- --prefer-s3
140
  ```
141
 
142
- Open `http://127.0.0.1:8765`. The viewer reads only small JSON metadata files
143
- from `stats/`, `subsets/`, and `schema/`; it does not download shards or videos.
144
-
145
- ## How To Use
146
-
147
- The normal training interface is a dictionary with decoded video plus the paired control/state arrays:
148
 
149
  ```python
150
- sample = {
151
- "video": video,
152
- "actions": actions,
153
- "state": state,
154
- "events": events["events"],
155
- "metadata": metadata,
156
- "player_alive": player_alive,
157
- }
158
  ```
159
 
160
- Filter common research subsets from the manifest:
161
 
162
  ```python
163
- train = manifest[manifest["split"] == "train"]
164
-
165
- rifle_mirage = train[
166
- (train["map_slug"] == "mirage")
167
- & train["has_rifle"]
168
- & (train["alive_duration_s"] >= 10.0)
169
- ]
170
-
171
- pistol_rounds = round_index[
172
- round_index["is_pistol_round"]
173
- & round_index["complete_10_pov"]
174
- & ~round_index["media_truncated_any_pov"].fillna(False)
175
- ]
176
-
177
- awp_clutches = train[
178
- train["has_awp"]
179
- & (train["pov_kills"] >= 2)
180
- & (train["pov_deaths"] == 0)
181
- ]
182
-
183
- bomb_rounds = round_index[
184
- round_index["bomb_planted"]
185
- | round_index["bomb_defused"]
186
- | round_index["bomb_exploded"]
187
- ]
188
- ```
189
-
190
- Official public subsets are stored under `subsets/` as Parquet views over the shared shards:
191
-
192
- | Subset | Meaning |
193
- |---|---|
194
- | `train_10h` | Nested train subset, approximately 10 rendered POV-hours. |
195
- | `train_50h` | Nested train subset, approximately 50 rendered POV-hours. |
196
- | `train_100h` | Nested train subset, approximately 100 rendered POV-hours. |
197
- | `train_500h` | Nested train subset, approximately 500 rendered POV-hours. |
198
- | `train_1000h` | Nested train subset, approximately 1000 rendered POV-hours. |
199
- | `train_all` | All train-split samples. |
200
- | `dust2_100h` | Train-only Dust2 subset for DIAMOND-style fixed-budget comparisons. |
201
- | `full_demo_eval` | Strict full-demo chronology subset for complete demo-map evaluations. |
202
-
203
- Subsets do not duplicate media. A subset file lists `sample_key` values; the loader joins those keys to `manifest.parquet` and `sample_index_360p.parquet` / `sample_index_720p.parquet` to stream the required WebDataset shards.
204
-
205
- For full training, use the WebDataset shard repositories listed below rather than downloading individual media files.
206
-
207
- ## What Is Being Released?
208
-
209
- The release is split into several Hugging Face dataset repositories:
210
-
211
- | Repository | Contents |
212
- |---|---|
213
- | `ArnieRamesh/CounterStrike-1K` | Metadata/control repo: dataset card, schema, Croissant metadata, release indices, stats, subsets, and examples. |
214
- | `ArnieRamesh/CounterStrike-1K-720-wds` | Full 720p WebDataset shards. |
215
- | `ArnieRamesh/CounterStrike-1K-360-wds` | Full 360p WebDataset shards. |
216
- | `ArnieRamesh/CounterStrike-1K-sample` | Small unsharded reviewer/developer subset with the same schema and loader API. |
217
-
218
- The full releases are provided as uncompressed WebDataset tar shards. The metadata/control repo provides the indices needed for filtering, synchronized round grouping, and random access into shards.
219
-
220
- The sample repository is provided for reviewer inspection and quick loader
221
- validation. It contains one complete 10-POV match-map directly as ordinary
222
- files rather than WebDataset shards, plus the same `manifest.parquet`,
223
- `round_index.parquet`, `match_index.parquet`, `subsets/sample.parquet`, schema,
224
- and loader API used by the full release. This keeps the inspection artifact
225
- small enough for large-dataset review while making the exact sample construction
226
- auditable.
227
-
228
- ## At A Glance
229
-
230
- | Property | Value |
231
- |---|---:|
232
- | Rendered POV-hours | 1,490.82 |
233
- | Unique match-map demos | 342 |
234
- | Rounds | 7,347 |
235
- | Samples / clips | 73,470 |
236
- | Video frames | ~171.7M |
237
- | Unique anonymized player slots | 3,420 match-local slots |
238
- | Maps | 7 active-duty maps |
239
- | Player perspectives | Exactly 10 per released round |
240
- | Frame rate | 32 FPS |
241
- | Demo tick rate | 64 Hz |
242
- | Tick/frame alignment | 2 ticks per video frame |
243
- | Resolutions | 1280x720, 640x360 |
244
- | 720p shard target | 5 GiB |
245
- | 360p shard target | 2 GiB |
246
- | 720p shards | 396 |
247
- | 360p shards | 864 |
248
- | `sample_index.parquet` rows | 734,700 |
249
- | Resolution-specific sample-index rows | 367,350 per resolution |
250
- | `row_index.parquet` rows | 146,940 |
251
- | Total compressed size | ~2.73 TB for 720p + 360p WebDataset shards |
252
-
253
- Anonymized player slots are counted within match-map demos. The release does not include Steam IDs, online account identifiers, or player names.
254
-
255
- ## Dataset Statistics
256
-
257
- Final media and shard statistics are generated after packing and validation and are stored under `stats/`. The primary training lock is the QA-filtered round-level complete-10-POV lock: 1,490.82 rendered POV-hours, 342 match-map demos, 7,347 rounds, and 73,470 clips. The strict full-demo lock is a chronology-preserving subset with 896.85 rendered POV-hours, 212 match-map demos, 4,467 rounds, and 44,670 clips.
258
-
259
- The final split lock manifests are `release/manifest_locks/counterstrike-1k_complete_10pov_v12_final_split_lock.json` and `release/manifest_locks/counterstrike-1k_full_demo_10pov_v12_final_split_lock.json`. Manual QA exclusions are applied from the DynamoDB-backed exclusion ledger; POV-level exclusions are rounded up to the whole round for final 10-POV release locks, and any excluded retained round drops the entire match-map from the strict full-demo chronology lock.
260
-
261
- ### Per-Map Breakdown
262
-
263
- Per-map counts are reported in `stats/maps.json` after the final human-QA lock is applied.
264
 
265
- ### Per-Split Breakdown
266
-
267
- | Split | Frames | POV-hours | Match-map demos | Rounds | Samples |
268
- |---|---:|---:|---:|---:|---:|
269
- | train | 154,567,749 | 1,341.735 | 301 | 6,573 | 65,730 |
270
- | val | 8,587,312 | 74.542 | 21 | 383 | 3,830 |
271
- | test | 8,587,787 | 74.547 | 20 | 391 | 3,910 |
272
-
273
- The release also includes summary distributions for sample duration, alive duration, round duration, action frequencies, event counts, round completeness, and shard sizes.
274
-
275
- ## Gameplay Coverage
276
-
277
- CounterStrike-1K covers the seven active-duty CS2 maps used for this release:
278
-
279
- - Ancient
280
- - Anubis
281
- - Dust2
282
- - Inferno
283
- - Mirage
284
- - Nuke
285
- - Overpass
286
-
287
- The source pool consists of professional CS2 match-map demos. Curation is balanced by rendered player-POV frame count, not raw match count. Final per-map and per-split counts are reported explicitly in `stats/summary.json`.
288
-
289
- ## Video, Audio, And Encoding Format
290
-
291
- | Field | 720p release | 360p release |
292
- |---|---|---|
293
- | Container | MP4 | MP4 |
294
- | Video codec | H.264 | H.264 |
295
- | Resolution | 1280x720 | 640x360 |
296
- | Frame rate | 32 FPS | 32 FPS |
297
- | GOP | Closed GOP, size 32 | Closed GOP, size 32 |
298
- | B-frames | 0 | 0 |
299
- | Libx264 re-encode CRF | 20 if re-encoded | 20 |
300
- | Pixel format | yuv420p | yuv420p |
301
- | Faststart | enabled | enabled |
302
- | Audio codec | AAC-LC | AAC-LC |
303
- | Audio channels | stereo / 2 channels | stereo / 2 channels |
304
- | Audio sample rate | 44.1 kHz | 44.1 kHz |
305
- | Audio target bitrate | ~128 kbps | ~128 kbps |
306
-
307
- The `yuv420p` pixel format is used for broad decoder compatibility across FFmpeg, browsers, PyAV, torchcodec, OpenCV, and hardware video decoders. Faststart places MP4 metadata at the front of the file, which improves browser playback and HTTP range-read behavior.
308
-
309
- The release stores game audio as a standard stereo mix. It does not expose multichannel audio, HRTF parameters, or positional audio metadata. Any directional cues are those produced by CS2 in the rendered stereo output.
310
-
311
- The exact render and packing environment is recorded in `stats/release_environment.json`, including encoder settings, schema versions, and packer provenance.
312
-
313
- ## Dataset Structure
314
-
315
- Each WebDataset sample uses a shared `sample_key` prefix:
316
-
317
- ```text
318
- {sample_key}.mp4
319
- {sample_key}.actions.bin
320
- {sample_key}.state.bin
321
- {sample_key}.events.json
322
- {sample_key}.json
323
  ```
324
 
325
- Example sample key:
326
-
327
- ```text
328
- match_{sha12}__r{round:03d}__p{pov:02d}
329
- ```
330
-
331
- The files are:
332
-
333
- | Member | Description |
334
- |---|---|
335
- | `{sample_key}.mp4` | Rendered POV video with synchronized stereo game audio. |
336
- | `{sample_key}.actions.bin` | Fixed-width per-frame control records: tick, mouse deltas, and button bitmask. |
337
- | `{sample_key}.state.bin` | Fixed-width per-frame player/game-state records: view, position, active weapon, ammo, health/armor, side score, equipment flags, bomb flag, and money balance. |
338
- | `{sample_key}.events.json` | Sparse per-sample gameplay events. |
339
- | `{sample_key}.json` | Minimal public per-sample metadata sidecar. |
340
-
341
- `actions.bin` and `state.bin` are compact fixed-width binary formats rather than JSON or per-sample Parquet. They are dependency-light, directly loadable with `numpy.frombuffer`, and efficient for tens of thousands of small per-sample streams inside tar shards. The authoritative layouts are defined in `schema/actions_bin.json` and `schema/state_bin.json`.
342
-
343
- ## Public Index Files
344
-
345
- | File | Purpose |
346
- |---|---|
347
- | `manifest.parquet` | Dataset sample inventory and research/filter columns. |
348
- | `sample_index.parquet` | Combined physical lookup table for WebDataset members: shard paths, offsets, lengths, hashes, and member names. |
349
- | `sample_index_360p.parquet`, `sample_index_720p.parquet` | Resolution-specific member lookup tables used by the default loader path. |
350
- | `row_index.parquet` | Sample-level physical lookup table with all member byte ranges for one `sample_key` and resolution on each row. |
351
- | `round_index.parquet` | Synchronized multi-POV round groups. |
352
- | `match_index.parquet` | Match-map-level grouping and aggregate counts. |
353
- | `subsets/*.parquet` | Researcher-facing subset views over the shared sample keys. |
354
-
355
- Researchers should usually start with `manifest.parquet` or `round_index.parquet`. Loaders and viewers should use `row_index.parquet` for one-row-per-sample lookup or the resolution-specific `sample_index_*.parquet` files for member-level random access into shards.
356
-
357
- ## Data Fields
358
-
359
- Full field definitions are provided under `schema/`. At a high level, the release includes:
360
 
361
- - sample identity: `sample_key`, `match_id`, `round_id`, `round_idx`, `pov_idx`
362
- - public context: `map_slug`, split, team side
363
- - timing: ticks, frames, duration, FPS, tick rate, frame/tick stride
364
- - media QA: optional `media_truncated` / `media_truncated_any_pov` flags for rare samples whose corrected round/death-tail window extends past the rendered MP4
365
- - actions: movement/use/fire buttons and mouse deltas
366
- - player state: view angles, position, weapon, ammo, health, armor, side score, money, helmet/defuser/bomb state
367
- - masks: derive `player_alive` with `alive_start_tick <= state["tick"] < alive_end_tick`; `player_dead` is the complement
368
- - events: round boundaries, kills, bomb pickup/drop/plant/defuse/explosion
369
- - shard lookup: shard path, member offsets, byte lengths, hashes
370
 
371
- Steam IDs and online account identifiers are not present in public files.
 
 
 
 
 
372
 
373
- ## Supplemental Derived Game Traces
374
 
375
- CounterStrike-1K does not redistribute raw demo files. To support lower-level state access without exposing raw demo bytes or online identifiers, the release includes derived anonymized game traces:
376
 
377
- | Prefix | Description |
378
- |---|---|
379
- | `match_states/` | Tick-level anonymized POV/game-state tables. |
380
- | `match_events/` | Tick/event-level anonymized gameplay event tables. |
381
- | `review_grids/` | CT/T debug-overlay review videos for complete rounds, plus optional match-level concatenations for full-match skim QA. |
382
-
383
- These traces support custom metrics, state-conditioned modeling, consistency checks, alternative dataset views, and other non-pixel research workflows.
384
-
385
- ## Splits
386
-
387
- The public release uses `train`, `val`, and `test` splits. The split unit is a match-map demo, not an individual clip. The same match-map demo does not appear in multiple splits.
388
-
389
- Final split counts are reported in `stats/summary.json` and mirrored in the per-split table above.
390
-
391
- Weapon exposure counts are reported in `stats/weapons.json`. These are derived
392
- from `manifest.parquet` using `primary_weapon_id` and `weapon_ids_present`;
393
- they describe active weapons observed in released POV samples, not full player
394
- inventories.
395
-
396
- ## Curation And Rendering Pipeline
397
-
398
- The release pipeline consists of:
399
-
400
- 1. Discover and filter professional CS2 match-map demos.
401
- 2. Validate demo integrity and parser compatibility.
402
- 3. Render synchronized player POV clips.
403
- 4. Derive per-frame actions/player state.
404
- 5. Derive sparse events and anonymized game traces.
405
- 6. Generate optional complete-round review grids for human QA.
406
- 7. Pack round-atomic WebDataset shards.
407
- 8. Build public Parquet indices.
408
- 9. Run privacy, integrity, decode, and schema checks.
409
-
410
- The final release records exact environment details in `stats/release_environment.json`.
411
-
412
- The public release invariant is exactly 10 player POVs per released round.
413
- Source renders with incomplete succeeded POV sets are requeued or excluded
414
- before packing. If a source demo exposes more than 10 POV streams, the
415
- preprocessing pass identifies the 10 active player POVs from parser state and
416
- action traces, then filters coach/spectator/non-player POV streams before
417
- sample keys, shards, and public indices are built. Aggregate filtering counts
418
- are reported in `stats/quality.json`.
419
-
420
- ## Quality And Validation
421
 
422
- The release validation suite checks:
423
 
424
- - every MP4 has a decodable video stream
425
- - every MP4 has AAC-LC stereo audio
426
- - audio sample rate is 44.1 kHz
427
- - video frame count matches action and state record counts
428
- - action/state binary lengths are divisible by the locked record sizes
429
- - event and metadata JSON validate against schema
430
- - shard manifests match tar contents
431
- - byte offsets and lengths resolve to the expected members
432
- - round groups are internally consistent
433
- - split boundaries are match-map atomic
434
- - Steam IDs and online identifiers are absent from public JSON, Parquet, manifests, logs, and shards
435
 
436
- Validation summaries are stored under `stats/`.
437
 
438
- ## Privacy And Source Boundary
439
 
440
- Raw HLTV demo files are not included in the public release. Steam IDs, online account identifiers, raw demo identifiers, and player names are stripped from public artifacts. Player identity is represented only by `pov_idx`, an anonymized integer that is stable within a `match_id` and is not stable across matches.
441
 
442
- ## Intended Uses
 
 
 
 
443
 
444
- CounterStrike-1K is intended for:
445
 
446
- - action-conditioned video prediction
447
- - game world modeling
448
- - synchronized multi-POV consistency evaluation
449
- - audio-conditioned prediction
450
- - state-conditioned modeling
451
- - representation learning
452
- - multimodal dataloader and streaming benchmarks
 
453
 
454
- ## Out-Of-Scope Uses
455
 
456
- The dataset is not intended for:
457
 
458
- - recovering Steam IDs or online account identifiers
459
- - re-identifying players or linking `pov_idx` values across matches
460
- - unsupported claims about anti-cheat, player evaluation, or player profiling
461
- - commercial use if released under CC-BY-NC 4.0
462
 
463
- ## Limitations
464
 
465
- - The data comes from professional CS2 matches and may not represent casual or matchmaking play.
466
- - Rendered POV-hours are not unique scene-hours because each round can include multiple synchronized player POVs.
467
- - Source availability and demo compatibility affect coverage.
468
- - The release covers seven active-duty maps; it is not exhaustive over all CS2 maps.
469
- - The release is anonymized, but gameplay and team/context patterns may still leak weak identity cues for well-known professional matches.
470
- - WebDataset shards are optimized for training and streaming. Full browser inspection is best done through the sample repo or a custom viewer.
471
 
472
- ## License And Takedown
473
 
474
- CounterStrike-1K is released for non-commercial research under CC BY-NC 4.0
475
- unless otherwise noted in the final release metadata. This license applies to
476
- the released annotations, metadata, schemas, manifests, and derived rendered
477
- artifacts to the extent of the authors' rights. Counter-Strike 2 and underlying
478
- game assets remain property of Valve Corporation, and source HLTV demo files
479
- are not redistributed. Users are responsible for complying with applicable
480
- third-party terms.
481
 
482
- For removal, correction, attribution, or licensing concerns, contact the dataset authors through the project page or Hugging Face repository discussions/issues.
483
 
484
  ## Citation
485
 
486
- If you use CounterStrike-1K, please cite:
487
-
488
  ```bibtex
489
  @dataset{counterstrike1k2026,
490
- title = {CounterStrike-1K},
491
- author = {Ramesh, Anirudhh},
492
- year = {2026},
493
- publisher = {Hugging Face},
494
- version = {v1.0.0},
495
- url = {https://huggingface.co/datasets/ArnieRamesh/CounterStrike-1K}
496
  }
497
  ```
498
 
499
- Paper citation will be added after the accompanying paper/preprint is public.
500
-
501
- ## Changelog
502
 
503
- - `v1.0.0`: Initial public release.
 
18
  - audio
19
  - esports
20
  size_categories:
21
+ - 10K<n<100K
22
+ configs:
23
+ - config_name: manifest
24
+ data_files:
25
+ - split: metadata
26
+ path: manifest.parquet
27
+ - config_name: rounds
28
+ data_files:
29
+ - split: metadata
30
+ path: round_index.parquet
31
+ - config_name: matches
32
+ data_files:
33
+ - split: metadata
34
+ path: match_index.parquet
35
+ - config_name: subsets
36
+ data_files:
37
+ - split: train_10h
38
+ path: subsets/train_10h.parquet
39
+ - split: train_50h
40
+ path: subsets/train_50h.parquet
41
+ - split: train_100h
42
+ path: subsets/train_100h.parquet
43
+ - split: train_500h
44
+ path: subsets/train_500h.parquet
45
+ - split: train_1000h
46
+ path: subsets/train_1000h.parquet
47
+ - split: train_all
48
+ path: subsets/train_all.parquet
49
+ - split: dust2_100h
50
+ path: subsets/dust2_100h.parquet
51
+ - split: full_demo_eval
52
+ path: subsets/full_demo_eval.parquet
53
  ---
54
 
55
  # CounterStrike-1K
56
 
57
+ <p align="center">
58
+ <img src="media/multi_pov_with_actions.gif" alt="10 synchronized POVs with per-frame action HUD overlays" width="100%"/>
59
+ </p>
60
 
61
+ **1,490 rendered POV-hours · 7,347 synchronized rounds · 73,470 POV clips · 7 maps · 720p + audio**
62
 
63
+ <table align="center">
64
+ <tr>
65
+ <td align="center" width="50%"><img src="media/seven_maps.gif" alt="Seven active-duty maps" width="100%"/><br/><sub>Seven active-duty maps</sub></td>
66
+ <td align="center" width="50%"><img src="media/introduction_video_wall_1000_hours.gif" alt="100+ POV video wall — 1,000 hours" width="100%"/><br/><sub>Scale: 1,000-hour POV wall</sub></td>
67
+ </tr>
68
+ </table>
69
 
70
+ CounterStrike-1K is the first grounded, professional-grade Counter-Strike 2 dataset with **10 synchronized first-person perspectives per round**, captured from professional match demos. It is designed for video world modeling, action-conditioned video prediction, multi-view consistency research, and audio-conditioned learning.
71
 
72
+ ## Quickstart
 
 
 
 
 
 
 
73
 
74
+ Start a fresh `uv` project and add the loader:
 
 
75
 
76
+ ```bash
77
+ mkdir cs1k-demo && cd cs1k-demo
78
+ uv init
79
+ uv add datasets "counterstrike1k @ git+https://github.com/AnirudhhRamesh/counterstrike1k"
 
80
  ```
81
 
82
+ <details>
83
+ <summary>Using pip instead</summary>
 
 
84
 
85
+ ```bash
86
+ mkdir cs1k-demo && cd cs1k-demo
87
+ python -m venv .venv && source .venv/bin/activate
88
+ pip install datasets "counterstrike1k @ git+https://github.com/AnirudhhRamesh/counterstrike1k"
89
  ```
90
+ </details>
91
 
92
+ Stream one sample from the public shards no download required:
93
 
94
  ```python
95
+ from datasets import Video, load_dataset
96
+ from counterstrike1k import decode_sample
 
 
 
 
 
 
 
 
 
 
 
97
 
98
+ shards = load_dataset(
99
+ "ArnieRamesh/CounterStrike-1K-360-wds", split="train", streaming=True,
100
+ ).cast_column("mp4", Video(decode=False))
101
+ sample = decode_sample(next(iter(shards)))
102
 
103
+ print(sample["actions"].shape) # (frames,) tick, delta_pitch, delta_yaw, buttons bitmask
104
+ print(sample["state"].shape) # (frames,) pos, view, weapon, ammo, hp, money, score, …
105
+ print(len(sample["video"])) # mp4 bytes with synchronized audio
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  ```
107
 
108
+ Browse the manifest:
109
 
110
  ```python
111
+ import pandas as pd
112
+ from huggingface_hub import hf_hub_download
 
 
 
 
 
 
 
 
 
113
 
114
+ manifest = pd.read_parquet(hf_hub_download(
115
+ "ArnieRamesh/CounterStrike-1K", "manifest.parquet", repo_type="dataset",
116
+ ))
117
+ mirage_train = manifest[(manifest["map_slug"] == "mirage") & (manifest["split"] == "train")]
118
  ```
119
 
120
+ Tiny offline preview (one match, ~2 GB):
 
 
 
 
 
121
 
122
  ```python
123
+ from counterstrike1k import load_sample
124
+ for sample in load_sample():
125
+ print(sample["metadata"]["sample_key"])
126
+ break
 
 
 
 
127
  ```
128
 
129
+ Verify that decoded actions actually align with the video — `overlay_frame` draws a HUD with WASD/FIRE/JUMP, mouse delta, HP/armor/money, and score onto any frame:
130
 
131
  ```python
132
+ from counterstrike1k import overlay_frame, overlay_video
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
+ overlay_frame(sample, 60) # PIL.Image, ready for display()
135
+ overlay_video(sample, "debug.mp4", max_frames=192) # full debug clip
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  ```
137
 
138
+ The end-to-end Jupyter walkthrough is `cs2_release/quickstart.ipynb` in the [source repo](https://github.com/AnirudhhRamesh/CounterStrike-1K).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
+ ## Repos
 
 
 
 
 
 
 
 
141
 
142
+ | Repo | Contents | Size |
143
+ |---|---|---:|
144
+ | `ArnieRamesh/CounterStrike-1K` | Manifest, round/match indices, schema, subsets, Croissant. | ~700 MB |
145
+ | `ArnieRamesh/CounterStrike-1K-sample` | One match-map (16 rounds, 160 POV clips). | ~2 GB |
146
+ | `ArnieRamesh/CounterStrike-1K-360-wds` | 360p WebDataset shards (recommended for training). | ~1.3 TB |
147
+ | `ArnieRamesh/CounterStrike-1K-720-wds` | 720p WebDataset shards. | ~1.5 TB |
148
 
149
+ ## What's in a sample
150
 
151
+ Each WebDataset sample is one player POV across one round.
152
 
153
+ | Member | Format | Description |
154
+ |---|---|---|
155
+ | `mp4` | H.264 + AAC | 720p or 360p video at 32 FPS with synchronized stereo game audio |
156
+ | `actions.bin` | packed binary, 14 B/frame | `tick`, `delta_pitch`, `delta_yaw`, 12-button bitmask |
157
+ | `state.bin` | packed binary, 37 B/frame | view, world position, active weapon, ammo, HP, armor, money, score, helmet/defuser/bomb |
158
+ | `events.json` | JSON | Sparse events: round boundaries, kills (with attacker/victim/assister `pov_idx`), bomb plant/defuse/explode, blinds |
159
+ | `json` | JSON | Public sample metadata: ids, alignment, alive window, weapon flags, kill counts |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
+ Buttons (bit order): `FORWARD, BACK, LEFT, RIGHT, JUMP, DUCK, WALK, FIRE, RIGHTCLICK, RELOAD, INSPECT, USE`.
162
 
163
+ Group POVs of one synchronized round via the shared `round_id` = `match_{12hex}__r{round:03d}`. Sample keys are `match_{12hex}__r{round:03d}__p{pov:02d}` with `pov_idx ∈ {0..9}`.
 
 
 
 
 
 
 
 
 
 
164
 
165
+ Full field-level schema is in `schema/`.
166
 
167
+ ## Splits and subsets
168
 
169
+ Splits are disjoint at the **match-map** level the same match never appears in two splits.
170
 
171
+ | Split | POV-hours | Match-maps | Rounds | POV clips |
172
+ |---|---:|---:|---:|---:|
173
+ | train | 1,341.7 | 301 | 6,573 | 65,730 |
174
+ | val | 74.5 | 21 | 383 | 3,830 |
175
+ | test | 74.5 | 20 | 391 | 3,910 |
176
 
177
+ Bandwidth-friendly subsets:
178
 
179
+ ```python
180
+ ten_hours = pd.read_parquet(hf_hub_download(
181
+ "ArnieRamesh/CounterStrike-1K", "subsets/train_10h.parquet", repo_type="dataset",
182
+ ))
183
+ dust2 = pd.read_parquet(hf_hub_download(
184
+ "ArnieRamesh/CounterStrike-1K", "subsets/dust2_100h.parquet", repo_type="dataset",
185
+ ))
186
+ ```
187
 
188
+ Available: `train_10h.parquet`, `train_50h.parquet`, `train_100h.parquet`, `train_500h.parquet`, `train_1000h.parquet`, `train_all.parquet`, `dust2_100h.parquet`, `full_demo_eval.parquet`.
189
 
190
+ ## Maps
191
 
192
+ Ancient · Anubis · Dust2 · Inferno · Mirage · Nuke · Overpass — all 7 active-duty competitive maps, balanced by rendered POV-frame count.
 
 
 
193
 
194
+ ## Intended uses
195
 
196
+ - Action-conditioned video prediction
197
+ - Game world modeling
198
+ - Multi-view and multi-agent consistency evaluation
199
+ - Audio-conditioned prediction
200
+ - State-conditioned modeling
201
+ - Representation learning
202
 
203
+ ## Out of scope
204
 
205
+ - Re-identifying players or linking players across matches
206
+ - Recovering Steam IDs or online accounts
207
+ - Player profiling, ranking, anti-cheat, surveillance
 
 
 
 
208
 
209
+ Public artifacts contain no Steam IDs, online account identifiers, raw HLTV identifiers, profile URLs, player names, or chat text. `pov_idx` is anonymous and only stable within a single match.
210
 
211
  ## Citation
212
 
 
 
213
  ```bibtex
214
  @dataset{counterstrike1k2026,
215
+ title = {CounterStrike-1K: Synchronized Multi-POV Counter-Strike 2 for World Modeling},
216
+ author = {Ramesh, Anirudhh},
217
+ year = {2026},
218
+ publisher = {Hugging Face},
219
+ version = {1.0.0},
220
+ url = {https://huggingface.co/datasets/ArnieRamesh/CounterStrike-1K}
221
  }
222
  ```
223
 
224
+ ## License
 
 
225
 
226
+ CounterStrike-1K release artifacts are distributed for non-commercial research under CC BY-NC 4.0 to the extent of the authors' rights. Counter-Strike 2 and underlying game assets remain property of Valve Corporation. Raw HLTV demo files are not redistributed.
media/introduction_video_wall_1000_hours.gif ADDED

Git LFS Details

  • SHA256: 8853d95d4f27a1b5b6e95387a7ee625c2a8863b53d0dd81d75028c3bff98850d
  • Pointer size: 132 Bytes
  • Size of remote file: 3.51 MB
media/multi_pov_with_actions.gif ADDED

Git LFS Details

  • SHA256: cf48fe47887db0fce2a2c2441314ea31ce0255d0de9bac0b00dff1a8ebb34b96
  • Pointer size: 132 Bytes
  • Size of remote file: 2.36 MB
media/seven_maps.gif ADDED

Git LFS Details

  • SHA256: efd1a3d280386f30298bf5d282c4d7ad08cc64eaef30cbc30db1eae22bdb6e2f
  • Pointer size: 132 Bytes
  • Size of remote file: 2.46 MB
media/videos/introduction_video_wall_1000_hours.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90bcfb955149c17334481de6337c0e6b7324a30dc43cf68344dc841757d6c186
3
+ size 6062211
media/videos/multi_pov_with_actions.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2dacccd7004326fe0411685005acd4a493fc3821e440f1ddc70a66d6ffd9593
3
+ size 2231780
media/videos/seven_maps.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24934134a479771db25b514675bc70659bef8c55759f4f4864ce8f99ca78ad38
3
+ size 3732419