Datasets:
File size: 4,729 Bytes
148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 b3f9922 be96493 b3f9922 148bc69 be96493 148bc69 be6cbb5 148bc69 b3f9922 148bc69 be96493 148bc69 b3f9922 be96493 148bc69 b3f9922 be96493 148bc69 be6cbb5 148bc69 be6cbb5 148bc69 be6cbb5 148bc69 be96493 148bc69 b3f9922 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 148bc69 be96493 afcf35a b3f9922 be96493 ebf6e45 be96493 0807f19 be96493 b3f9922 be96493 148bc69 be96493 148bc69 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | ---
license: other
license_name: osu-beatmap-content
license_link: https://osu.ppy.sh/legal/Beatmap_Licence
pretty_name: osu-everything
language:
- en
size_categories:
- 10K<n<100K
task_categories:
- other
tags:
- osu
- rhythm-game
- beatmaps
- storyboards
- multimodal
---
# osu-everything
`osu-everything` contains the source tools and runbooks for maintaining the
compact v1 osu! dataset in:
```text
hf://buckets/lekdan/osu-everything
```
The source checkout is a normal Git repo. Runtime dataset state lives outside
the checkout in a sibling dataset workspace.
```text
~/osu_model/ # source checkout: code, docs, schemas, feature pipeline
~/osu_model_dataset/ # working dataset state: archives, data, fetcher DB, logs
~/osu_model_features/ # derived feature store output
```
The scripts default to that sibling layout. Override it with
`DATASET_ROOT=/path/to/workspace` when needed.
## Bucket Layout
```text
osu-everything/
├── archives/sha256/aa/bb/<archive_sha256>.osz
├── data/v1/
│ ├── all_revisions/<table>/part-<batch>.parquet
│ └── latest/<table>/part-*.parquet
├── schemas/v1/*.schema.json
├── features/v1/
│ ├── schemas/
│ │ ├── features_v1.schema.json
│ │ ├── feature_tables/*.schema.json
│ │ └── state_tables/*.schema.json
│ ├── docs/
│ ├── state/
│ ├── tables/
│ └── audio/
└── state/fetcher/state.db
```
The bucket stores raw `.osz` archives and compact Parquet metadata. It does
not publish extracted blobs, manifests, train/test splits, or a global blob
registry.
`schemas/v1/` is only for the compact dataset contract. Derived feature
schemas live under `features/v1/schemas/`; do not create
`schemas/v1/features.json` or put feature table schemas beside the compact
dataset schemas.
`all_revisions` is the append-only metadata history. `latest` is regenerated
from that history for quick reads and ML workloads.
`features/v1/` is the derived ML feature store. Its schema and docs are stored
inside the feature subtree so a bucket sync of `features/v1` carries both the
Parquet files and the feature data contract.
## Loading Data
Sync only the prefix you need:
```bash
hf sync \
hf://buckets/lekdan/osu-everything/data/v1/latest/beatmaps \
./osu-everything/data/v1/latest/beatmaps
```
Load with PyArrow:
```python
import pyarrow.dataset as ds
beatmaps = ds.dataset(
"./osu-everything/data/v1/latest/beatmaps",
format="parquet",
).to_table()
```
Raw audio, images, videos, and `.osu` text remain inside the original `.osz`
archives under `archives/`. Metadata rows carry archive paths and member paths
needed to locate those bytes.
Derived feature rows can be loaded the same way:
```python
import pyarrow.dataset as ds
objects = ds.dataset(
"./osu-everything/features/v1/tables/object_tokens_osu",
format="parquet",
).to_table()
```
## Updating
Clone or update source with Git:
```bash
git clone https://huggingface.co/datasets/lekdan/osu-everything-tools ~/osu_model
cd ~/osu_model
git pull --ff-only
```
Build the tools:
```bash
uv sync
cargo build --release -p osu_indexer -p osu_fetcher
```
Configure local osu! credentials in the dataset workspace:
```bash
mkdir -p ~/osu_model_dataset
cp osu_fetcher.toml.example ~/osu_model_dataset/osu_fetcher.toml
# fill in ~/osu_model_dataset/osu_fetcher.toml
```
Run a normal update:
```bash
UPLOAD=1 DOWNLOAD_CONCURRENCY=128 bash scripts/update_maps_v1.sh
```
The wrapper hydrates only bucket `data/`, `schemas/`, and `state/fetcher/`,
fetches new or changed `.osz` files, ingests them, compacts metadata by
default, regenerates latest views, and publishes the changed dataset prefixes.
It does not download the historical archive corpus.
See `docs/PIPELINE_RUNBOOK.md` for operational details.
Derived ML features are built separately after compact metadata has been
updated. See `osu_feature_pipeline/README.md`.
## Source Changes
Make code and documentation changes in `~/osu_model`, then use normal Git:
```bash
git status --short
git add README.md docs scripts python crates schemas osu_feature_pipeline Cargo.toml Cargo.lock pyproject.toml uv.lock
git commit -m "describe the source change"
git push
```
Do not put runtime dataset state in the source commit. The source repo ignores
`archives/`, `data/`, `.fetcher/`, `.scratch/`, `incoming_osz/`, `logs/`,
`target/`, `.venv/`, and local credential files.
## Licensing
Beatmaps frequently include copyrighted songs, backgrounds, videos, and
storyboard assets. Do not publish this dataset publicly without the
appropriate rights. Refer to the osu! beatmap licence before sharing.
|