File size: 2,207 Bytes
202d5ca
2469e25
 
 
 
202d5ca
2469e25
 
202d5ca
2469e25
 
 
9818a25
 
202d5ca
 
2469e25
 
 
 
 
 
 
 
9818a25
2469e25
 
 
 
 
 
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
---
title: Model P · Taiko Chart Generator
emoji: 🥁
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 6.30.0
python_version: "3.12"
app_file: app.py
license: mit
models:
- JacobLinCool/internal-model-p
preload_from_hub:
- JacobLinCool/internal-model-p config.json,p.safetensors,r.safetensors,b9fix.safetensors f7752e9a48baa7adf7bd43ba63eaadbc522219b9
---

# Model P

Model P places drum hits on a beat grid and generates two osu!taiko courses for the same song. The demo produces a playable `.osz` with Oni and Inner Oni, and a TJA ZIP with the corresponding Oni and Edit courses. Both packages include the supplied audio as MP3.

Add an 8–180 second audio file or use the original synthetic drum loop. Automatic timing handles tempo changes. The optional BPM and downbeat controls set a constant 4/4 grid when automatic timing needs correction.

The checkpoint comes from the stage 5d osu!taiko experiment. Model R supplies the fine-subdivision gate. The b9fix model estimates timing, colours the positions written by P, and predicts shared kiai sections. Short drumrolls come from the P HOLD token. The release uses a bar plan based on P's hits and preserves their grid positions when adding colours. Stage 5d evaluation measured placements before this rendering stage. See the [model card](https://huggingface.co/JacobLinCool/internal-model-p) for the results and scope.

Generated Edit courses reflect the osu!taiko Inner Oni setting. TJA export adds format-specific course names and timing metadata. Both TJA courses use level 10 as a fixed file label. The study evaluated osu!taiko charts and did not measure TJA play quality or native Taiko course conventions.

## Local use

Install FFmpeg and the packages in `requirements.txt`, then run `python app.py`. The CLI supports batch scripting through `python pipeline.py path/to/audio --title "Track name" --bpm 120`. Weights are fetched from the Hugging Face model revision pinned in `pipeline.py`. Set `MODEL_P_DIR` to a locally downloaded snapshot to run offline.

The bundled demo is generated from sine-wave percussion and melody, and is dedicated to the public domain under CC0. No songs or maps from the training corpus are included.