video_id int64 2.43B 2.74B | frame_idx int64 0 650k | class_id int64 0 399 | conf float64 0.3 1 | x1 int32 0 636 | y1 int32 0 357 | x2 int32 5 640 | y2 int32 3 360 |
|---|---|---|---|---|---|---|---|
2,426,724,416 | 0 | 0 | 0.9072 | 286 | 96 | 357 | 193 |
2,426,724,416 | 2 | 0 | 0.9097 | 286 | 96 | 357 | 193 |
2,426,724,416 | 4 | 0 | 0.9189 | 286 | 95 | 357 | 193 |
2,426,724,416 | 6 | 0 | 0.915 | 286 | 95 | 357 | 193 |
2,426,724,416 | 8 | 0 | 0.9155 | 286 | 95 | 357 | 193 |
2,426,724,416 | 10 | 0 | 0.9224 | 286 | 95 | 357 | 193 |
2,426,724,416 | 12 | 0 | 0.9204 | 286 | 95 | 357 | 193 |
2,426,724,416 | 14 | 0 | 0.9116 | 286 | 95 | 357 | 193 |
2,426,724,416 | 16 | 0 | 0.9082 | 286 | 96 | 357 | 194 |
2,426,724,416 | 18 | 0 | 0.894 | 286 | 96 | 357 | 194 |
2,426,724,416 | 20 | 0 | 0.8931 | 286 | 96 | 357 | 194 |
2,426,724,416 | 22 | 0 | 0.8989 | 286 | 96 | 357 | 194 |
2,426,724,416 | 24 | 0 | 0.8989 | 286 | 96 | 357 | 194 |
2,426,724,416 | 26 | 0 | 0.9058 | 286 | 96 | 357 | 194 |
2,426,724,416 | 28 | 0 | 0.8989 | 286 | 96 | 357 | 194 |
2,426,724,416 | 30 | 0 | 0.8931 | 286 | 96 | 357 | 194 |
2,426,724,416 | 32 | 0 | 0.8682 | 286 | 96 | 357 | 194 |
2,426,724,416 | 34 | 0 | 0.8843 | 286 | 96 | 357 | 194 |
2,426,724,416 | 36 | 0 | 0.8599 | 286 | 96 | 357 | 194 |
2,426,724,416 | 38 | 0 | 0.895 | 286 | 96 | 357 | 194 |
2,426,724,416 | 40 | 0 | 0.9111 | 286 | 96 | 357 | 194 |
2,426,724,416 | 42 | 0 | 0.9033 | 286 | 96 | 357 | 194 |
2,426,724,416 | 44 | 0 | 0.8931 | 286 | 96 | 357 | 194 |
2,426,724,416 | 46 | 0 | 0.8882 | 286 | 96 | 357 | 194 |
2,426,724,416 | 48 | 0 | 0.9019 | 286 | 96 | 357 | 194 |
2,426,724,416 | 50 | 0 | 0.8965 | 286 | 96 | 357 | 194 |
2,426,724,416 | 52 | 0 | 0.8823 | 286 | 96 | 357 | 195 |
2,426,724,416 | 54 | 0 | 0.9092 | 286 | 96 | 357 | 195 |
2,426,724,416 | 56 | 0 | 0.9014 | 286 | 96 | 357 | 195 |
2,426,724,416 | 58 | 0 | 0.9097 | 286 | 96 | 357 | 195 |
2,426,724,416 | 60 | 0 | 0.8823 | 286 | 96 | 357 | 195 |
2,426,724,416 | 62 | 0 | 0.8857 | 286 | 96 | 357 | 195 |
2,426,724,416 | 64 | 0 | 0.9116 | 286 | 96 | 357 | 195 |
2,426,724,416 | 66 | 0 | 0.9087 | 286 | 96 | 357 | 195 |
2,426,724,416 | 68 | 0 | 0.9111 | 286 | 96 | 357 | 195 |
2,426,724,416 | 70 | 0 | 0.9116 | 286 | 97 | 357 | 195 |
2,426,724,416 | 72 | 0 | 0.9116 | 286 | 97 | 357 | 195 |
2,426,724,416 | 74 | 0 | 0.9136 | 286 | 97 | 357 | 195 |
2,426,724,416 | 76 | 0 | 0.8984 | 286 | 97 | 357 | 195 |
2,426,724,416 | 78 | 0 | 0.8965 | 286 | 97 | 357 | 195 |
2,426,724,416 | 80 | 0 | 0.9082 | 286 | 97 | 357 | 195 |
2,426,724,416 | 82 | 0 | 0.9028 | 286 | 97 | 357 | 195 |
2,426,724,416 | 84 | 0 | 0.9082 | 286 | 97 | 357 | 195 |
2,426,724,416 | 86 | 0 | 0.8975 | 286 | 97 | 357 | 195 |
2,426,724,416 | 88 | 0 | 0.8999 | 286 | 97 | 357 | 195 |
2,426,724,416 | 90 | 0 | 0.9019 | 286 | 97 | 357 | 195 |
2,426,724,416 | 92 | 0 | 0.9082 | 286 | 97 | 357 | 195 |
2,426,724,416 | 94 | 0 | 0.9268 | 286 | 97 | 357 | 195 |
2,426,724,416 | 96 | 0 | 0.9272 | 286 | 97 | 357 | 195 |
2,426,724,416 | 98 | 0 | 0.9429 | 286 | 97 | 357 | 195 |
2,426,724,416 | 100 | 0 | 0.9448 | 286 | 97 | 357 | 195 |
2,426,724,416 | 102 | 0 | 0.9429 | 286 | 97 | 357 | 195 |
2,426,724,416 | 104 | 0 | 0.9429 | 286 | 97 | 357 | 195 |
2,426,724,416 | 106 | 0 | 0.9443 | 286 | 97 | 357 | 195 |
2,426,724,416 | 108 | 0 | 0.9448 | 286 | 97 | 357 | 195 |
2,426,724,416 | 110 | 0 | 0.9443 | 286 | 97 | 357 | 195 |
2,426,724,416 | 112 | 0 | 0.9487 | 286 | 97 | 357 | 195 |
2,426,724,416 | 114 | 0 | 0.9463 | 286 | 97 | 357 | 195 |
2,426,724,416 | 116 | 0 | 0.9492 | 286 | 97 | 357 | 195 |
2,426,724,416 | 118 | 0 | 0.9478 | 286 | 97 | 357 | 195 |
2,426,724,416 | 120 | 0 | 0.9419 | 286 | 98 | 357 | 195 |
2,426,724,416 | 122 | 0 | 0.9409 | 286 | 97 | 357 | 195 |
2,426,724,416 | 124 | 0 | 0.9375 | 286 | 97 | 357 | 195 |
2,426,724,416 | 126 | 0 | 0.9365 | 286 | 97 | 357 | 195 |
2,426,724,416 | 128 | 0 | 0.9424 | 286 | 97 | 357 | 195 |
2,426,724,416 | 130 | 0 | 0.9336 | 286 | 97 | 357 | 195 |
2,426,724,416 | 132 | 0 | 0.9312 | 286 | 97 | 357 | 195 |
2,426,724,416 | 134 | 0 | 0.9302 | 286 | 97 | 357 | 195 |
2,426,724,416 | 136 | 0 | 0.9253 | 286 | 97 | 357 | 195 |
2,426,724,416 | 138 | 0 | 0.9106 | 286 | 97 | 357 | 195 |
2,426,724,416 | 140 | 0 | 0.9087 | 286 | 97 | 357 | 195 |
2,426,724,416 | 142 | 0 | 0.9106 | 286 | 97 | 357 | 195 |
2,426,724,416 | 144 | 0 | 0.9141 | 286 | 97 | 357 | 195 |
2,426,724,416 | 146 | 0 | 0.9087 | 286 | 97 | 357 | 195 |
2,426,724,416 | 148 | 0 | 0.9033 | 286 | 97 | 357 | 195 |
2,426,724,416 | 150 | 0 | 0.9067 | 286 | 97 | 357 | 195 |
2,426,724,416 | 152 | 0 | 0.9087 | 286 | 97 | 357 | 195 |
2,426,724,416 | 154 | 0 | 0.9131 | 286 | 97 | 357 | 195 |
2,426,724,416 | 156 | 0 | 0.918 | 286 | 97 | 357 | 195 |
2,426,724,416 | 158 | 0 | 0.9209 | 286 | 97 | 357 | 195 |
2,426,724,416 | 160 | 0 | 0.9253 | 286 | 97 | 357 | 195 |
2,426,724,416 | 162 | 0 | 0.9351 | 286 | 97 | 357 | 195 |
2,426,724,416 | 164 | 0 | 0.9395 | 286 | 97 | 357 | 195 |
2,426,724,416 | 166 | 0 | 0.937 | 286 | 97 | 357 | 195 |
2,426,724,416 | 168 | 0 | 0.9307 | 286 | 97 | 357 | 195 |
2,426,724,416 | 170 | 0 | 0.9385 | 286 | 97 | 357 | 195 |
2,426,724,416 | 172 | 0 | 0.9365 | 286 | 97 | 357 | 195 |
2,426,724,416 | 174 | 0 | 0.938 | 286 | 97 | 357 | 195 |
2,426,724,416 | 176 | 0 | 0.9336 | 286 | 97 | 357 | 195 |
2,426,724,416 | 178 | 0 | 0.9399 | 286 | 97 | 357 | 195 |
2,426,724,416 | 180 | 0 | 0.9536 | 286 | 97 | 357 | 195 |
2,426,724,416 | 182 | 0 | 0.9541 | 286 | 97 | 357 | 195 |
2,426,724,416 | 184 | 0 | 0.9565 | 286 | 97 | 357 | 195 |
2,426,724,416 | 186 | 0 | 0.9565 | 286 | 97 | 357 | 195 |
2,426,724,416 | 188 | 0 | 0.9556 | 286 | 97 | 357 | 195 |
2,426,724,416 | 190 | 0 | 0.9575 | 286 | 97 | 357 | 195 |
2,426,724,416 | 192 | 0 | 0.9556 | 286 | 97 | 357 | 195 |
2,426,724,416 | 194 | 0 | 0.9551 | 286 | 97 | 357 | 195 |
2,426,724,416 | 196 | 0 | 0.9517 | 286 | 97 | 357 | 195 |
2,426,724,416 | 198 | 0 | 0.9502 | 286 | 97 | 357 | 195 |
Balatro Imitation Learning Dataset
A large-scale gameplay dataset for imitation learning, state modeling, and downstream vision research in Balatro.
This release contains 494.38 hours of gameplay video, processed into structured detection, OCR, and game-state representations derived from publicly available gameplay footage.
Highlights
- 494.38 hours of gameplay video
- Structured multimodal state extracted from gameplay footage
- Includes cleaned detections, cleaned OCR, tracked object state, stable OCR, and composed object state
- Designed for imitation learning, state reconstruction, and game understanding tasks
Dataset Explorer
Explore the dataset interactively with:
marco-costa-ml/balatro-state-explorer
This is the easiest way to inspect the schema, understand the state representations, and browse examples across the dataset.
Included Data
The dataset is organized as follows:
βββ clean
β βββ det
β βββ rec
βββ derived
β βββ composed_state
β βββ object_state
β βββ ocr_stable
clean/
Intermediate cleaned outputs from the vision models.
clean/det/: cleaned object detectionsclean/rec/: cleaned OCR outputs
derived/
Higher-level state representations built from the cleaned model outputs.
derived/object_state/: temporally consistent object tracksderived/ocr_stable/: stabilized OCR time seriesderived/composed_state/: parent-child composed object state with attached attributes
Excluded Data
Some internal pipeline stages are intentionally not included in this release:
raw/: excluded because the raw model outputs are too large to distribute practicallyderived/event_state/: excluded because this representation is still a work in progress and not yet stable enough for release
So while the internal pipeline contains the following broader structure:
βββ clean
β βββ det
β βββ rec
βββ derived
β βββ composed_state
β βββ event_state
β βββ object_state
β βββ ocr_stable
βββ raw
βββ det
βββ rec
this dataset release only includes the cleaned and derived components that are currently most useful for downstream work.
Processing Pipeline
The released data comes from a multi-stage computer vision pipeline:
raw detections / OCR
-> cleaned detections / OCR
-> tracked object state + stable OCR
-> composed object state
The main scripts used in this pipeline are:
clean_to_object_state_det.py
clean_to_stable_ocr.py
object_state_to_composed.py
raw_to_clean_det.py
raw_to_clean_ocr.py
1. raw_to_clean_det.py
Converts raw detection CSV outputs into a validated, standardized parquet dataset.
What it does:
- removes low-confidence detections (
conf <= 0.3) - filters invalid bounding boxes
- removes tiny boxes likely to be noise
- rounds confidence values
- converts bounding box coordinates to integers
- writes cleaned results to
det_clean.parquet
Outcome: A clean detection dataset containing only valid, meaningful bounding boxes.
2. raw_to_clean_ocr.py
Converts raw OCR CSV outputs into a cleaned, normalized text dataset.
What it does:
- loads
rec_raw.csv - normalizes text to lowercase
- removes spaces and selected special characters
- keeps both the original text (
text_raw) and cleaned text (text_clean) - skips malformed and empty results
- writes cleaned results to
rec_clean.parquet
Outcome: A normalized OCR dataset ready for matching, aggregation, and temporal stabilization.
3. clean_to_object_state_det.py
Converts per-frame detections into temporally consistent tracked objects.
What it does:
- reads cleaned detections from
det_clean.parquet - groups detections by frame
- tracks objects over time independently by class
- matches detections using spatial distance, overlap, and simple motion prediction
- allows short gaps and interpolates where appropriate
- filters low-quality tracks
- writes
object_state.parquet
Outcome: A structured object-state dataset where objects have stable identities over time.
4. clean_to_stable_ocr.py
Transforms cleaned OCR into a temporally stable text signal.
What it does:
- applies label-specific regex validation rules
- nulls invalid OCR values
- fills missing values for selected labels using carry-forward logic
- applies label-specific default values
- smooths OCR over time with sliding-window mode filtering
- writes
rec_stable.parquet
Outcome: A robust OCR time series with reduced flicker, fewer invalid readings, and improved temporal consistency.
5. object_state_to_composed.py
Builds a higher-level composed object representation by attaching child attributes to parent objects over time.
High level: This script takes tracked objects plus cleaned detections and produces a temporally stable object representation where attached properties are merged into their parent objects.
What it does:
- matches tracked objects to detections and attaches confidence scores
- identifies valid parent-child relationships per frame using spatial overlap
- builds temporal consistency by grouping matches across frame intervals
- filters noisy relationships using duration, confidence, and gap thresholds
- resolves conflicts when multiple candidate children compete for the same parent
- merges child attributes into parent rows and removes absorbed child rows
Examples of attached child attributes include:
- edition
- sticker
- modifier
- seal
- debuffed state
Outcome: A cleaner and more semantically useful object-state representation where attributes are attached directly to the relevant game objects.
In one line:
object_state_to_composed.py converts raw detections plus tracking into a clean, temporally stable representation of objects with attached attributes.
Representation Summary
The dataset includes multiple levels of representation, each useful for different tasks.
Clean detection state
Frame-level detections after validation and cleaning.
Useful for:
- object detection analysis
- custom tracking
- low-level vision debugging
Object state
Tracked objects with stable identities across time.
Useful for:
- state reconstruction
- temporal modeling
- imitation learning pipelines that need persistent entities
Stable OCR
Temporally smoothed OCR signals.
Useful for:
- score/state extraction
- text-conditioned modeling
- robust frame-to-frame metadata parsing
Composed state
Parent objects with attached child attributes merged into a denoised higher-level representation.
Useful for:
- downstream state modeling
- semantic game-state understanding
- imitation learning with cleaner entity structure
Models
The dataset was generated using fine-tuned vision models released separately:
- Detection model:
marco-costa-ml/balatro-yolo - OCR model:
marco-costa-ml/balatro-ocr
Data Collection
Data was generated from publicly available gameplay streams using a custom computer vision pipeline.
The released dataset does not include raw video or audio.
Notes
This dataset is still evolving, and future releases may introduce schema changes or additional derived representations.
Users should expect:
- possible formatting changes
- occasional inconsistencies in early pipeline outputs
- additional derived views in future releases
Suggested Uses
This dataset is intended for research and engineering work involving:
- imitation learning
- game-state reconstruction
- multimodal temporal modeling
- object tracking in gameplay footage
- OCR-assisted state extraction
- representation learning for structured game environments
- Downloads last month
- 602