add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
pretty_name: OpenCommand
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- baseball
|
| 8 |
+
- sports-analytics
|
| 9 |
+
- computer-vision
|
| 10 |
+
- statcast
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1M<n<10M
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: command_scores_2025
|
| 15 |
+
data_files: 2025/command_scores.csv
|
| 16 |
+
- config_name: command_scores_2026
|
| 17 |
+
data_files: 2026/command_scores.csv
|
| 18 |
+
- config_name: targets_2025
|
| 19 |
+
data_files: 2025/targets.csv.gz
|
| 20 |
+
- config_name: targets_2026
|
| 21 |
+
data_files: 2026/targets.csv.gz
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# OpenCommand
|
| 25 |
+
|
| 26 |
+
Catcher targets and pitcher command for MLB, inferred from broadcast video.
|
| 27 |
+
|
| 28 |
+
OpenCommand scores **command** using the pitch location's distance from target.
|
| 29 |
+
|
| 30 |
+
This dataset contains the 2025/2026 computer vision object detections, every intermediate the pipeline writes, and the resulting **command scores**. The pipeline itself and the full method write-up live at [github.com/tomdoyo/open-command](https://github.com/tomdoyo/open-command).
|
| 31 |
+
|
| 32 |
+
## Download
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
hf download tomdoyo/open-command --repo-type dataset --local-dir data
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
That puts the tree where the pipeline expects it, so any stage re-runs from the code repo:
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
python src/solve_glove_locations.py 2026
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
One file instead of the whole tree:
|
| 45 |
+
|
| 46 |
+
```
|
| 47 |
+
hf download tomdoyo/open-command 2026/command_scores.csv --repo-type dataset
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Data
|
| 51 |
+
|
| 52 |
+
Each season lives under `<year>/`.
|
| 53 |
+
|
| 54 |
+
**Keys:** `(game_pk, play_id)` identify a pitch.
|
| 55 |
+
|
| 56 |
+
Raw detections (in `<year>/raw/`) are produced using YOLO11 glove/ball/strikezone detector models, with postprocessing based on detection confidence.
|
| 57 |
+
|
| 58 |
+
| File (per season) | One row per | Contents |
|
| 59 |
+
|---|---|---|
|
| 60 |
+
| `pbp_info.csv.gz` | pitch | Statcast 9-parameter trajectory, `sz_top`/`sz_bot`, plate location, pitcher, pitch type, and the game_date/type/venue |
|
| 61 |
+
| `raw/gloveball_tracks/<game_pk>.csv.gz` | frame | glove + ball detections (pixels on screen) |
|
| 62 |
+
| `raw/strikezone_tracking.csv.gz` | clip | broadcast strikezone detections (pixels on screen) |
|
| 63 |
+
| `camera_poses.csv.gz` | clip | camera pose (+ vote diagnostics & reprojection accuracies) |
|
| 64 |
+
| `glove_locations/<game_pk>.csv.gz` | detection | solved glove location (real-world) |
|
| 65 |
+
| `targets.csv.gz` | clip | naive/inferred targets |
|
| 66 |
+
| `command_scores.csv` | pitcher, pitch type | n, naive and inferred median miss |
|
| 67 |
+
|
| 68 |
+
`fg_pitching_2025.csv.gz` and `fg_pitching_2026.csv.gz` sit at the root, carrying the FanGraphs season lines command is validated against.
|
| 69 |
+
|
| 70 |
+
## License & citation
|
| 71 |
+
|
| 72 |
+
Everything here is released under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/): use it, build on it, publish with it, with **attribution** (cite OpenCommand) and **not commercially**.
|
| 73 |
+
|
| 74 |
+
Data derived from MLB broadcast video and Statcast public feeds. MLB and Statcast are trademarks of MLB Advanced Media, L.P.; this project is not affiliated with MLB.
|
| 75 |
+
|
| 76 |
+
```bibtex
|
| 77 |
+
@dataset{kim_opencommand,
|
| 78 |
+
author = {Kim, Tom},
|
| 79 |
+
title = {OpenCommand: open catcher-target and pitcher-command data for MLB},
|
| 80 |
+
year = {2026},
|
| 81 |
+
url = {https://open-command.com},
|
| 82 |
+
note = {https://github.com/tomdoyo/open-command}
|
| 83 |
+
}
|
| 84 |
+
```
|