Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
19
36
//Version: PianoFingering_v170101
0 0.00488284 1.00342 C5 69 80 0 1
1 0.00488284 0.241212 C4 69 80 1 -5
2 0.256349 0.490726 G4 64 80 1 -1
3 0.505862 0.739262 E4 65 80 1 -3
4 0.754399 0.988775 G4 64 80 1 -1
5 1.00391 1.50196 E5 67 80 0 3
6 1.00391 1.23829 C4 67 80 1 -5
7 1.25343 1.48731 G4 64 80 1 -1
8 1.50245 1.99952 G5 65 80 0 5
9 1.50245 1.73585 E4 65 80 1 -3
10 1.75099 1.98488 G4 64 80 1 -1
11 2.0005 2.75392 B4 69 80 0 1
12 2.0005 2.24122 D4 69 80 1 -4
13 2.25636 2.49074 G4 64 80 1 -1
14 2.50587 2.73927 F4 65 80 1 -2
15 2.75441 2.87013 C5 64 80 0 2
16 2.75441 2.98879 G4 64 80 1 -1
17 2.87795 2.99611 D5 64 80 0 3
18 3.00392 3.50197 C5 67 80 0 2
19 3.00392 3.2383 C4 67 80 1 -5
20 3.25344 3.48733 G4 64 80 1 -1
21 3.50246 3.73586 E4 65 80 1 -3
22 3.751 3.98489 G4 64 80 1 -1
23 4.00051 5.00345 A5 69 80 0 3
24 4.00051 4.24124 C4 69 80 1 -5
25 4.25637 4.49075 A4 64 80 1 -1
26 4.50589 4.73929 F4 65 80 1 -2
27 4.75442 4.9888 A4 64 80 1 -1
28 5.00394 5.50199 G5 67 80 0 2
29 5.00394 5.23831 C4 67 80 1 -5
30 5.25345 5.48734 G4 64 80 1 -1
31 5.50247 5.99955 C6 65 80 0 5
32 5.50247 5.73587 E4 65 80 1 -3
33 5.75101 5.9849 G4 64 80 1 -1
34 6.00052 6.50541 G5 69 80 0 3
35 6.00052 6.24125 B3 69 80 1 -5
36 6.25639 6.49076 G4 64 80 1 -1
37 6.5059 6.58451 F5 65 80 0 2
38 6.5059 6.7393 D4 65 80 1 -3
39 6.58988 6.66703 G5 64 80 0 3
40 6.6724 6.74906 F5 64 80 0 2
41 6.75444 6.87016 E5 64 80 0 1
42 6.75444 6.98881 G4 64 80 1 -1
43 6.87797 6.99614 F5 64 80 0 2
44 7.00395 7.502 E5 67 80 0 1
45 7.00395 7.23832 C4 67 80 1 -5
46 7.25346 7.48735 G4 64 80 1 -1
47 7.50249 7.73589 E4 65 80 1 -3
48 7.75102 7.98491 G4 64 80 1 -1
49 8.00054 8.24126 A4 69 80 0 1
50 8.00054 8.50542 F4 69 80 1 -2
51 8.2564 8.37212 B4 64 80 0 2
52 8.37993 8.4981 C5 64 80 0 3
53 8.50591 8.62359 D5 65 80 0 1
54 8.6314 8.74663 E5 64 80 0 2
55 8.75445 8.87017 F5 64 80 0 3
56 8.87798 8.99615 G5 64 80 0 4
57 9.00396 9.12261 A5 67 80 0 5
58 9.13043 9.24566 G5 64 80 0 4
59 9.25347 9.3692 F5 64 80 0 3
60 9.37701 9.49469 E5 64 80 0 2
61 9.5025 9.61969 D5 65 80 0 1
62 9.5025 9.99957 F3 68 80 1 -4
63 9.5025 9.99957 C4 63 80 1 -1
64 9.6275 9.74322 C5 64 80 0 4
65 9.75104 9.86676 B4 64 80 0 3
66 9.87457 9.99225 A4 64 80 0 2
67 10.0005 10.2413 G4 69 80 0 1
68 10.0005 10.5054 E3 72 80 1 -5
69 10.0005 10.5054 C4 67 80 1 -1
70 10.2564 10.3721 A4 64 80 0 2
71 10.3799 10.4981 B4 64 80 0 3
72 10.5059 10.6236 C5 65 80 0 1
73 10.6314 10.7466 D5 64 80 0 2
74 10.7545 10.8702 E5 64 80 0 3
75 10.878 10.9962 F5 64 80 0 4
76 11.004 11.1226 G5 67 80 0 5
77 11.1304 11.2457 F5 64 80 0 4
78 11.2535 11.3692 E5 64 80 0 3
79 11.377 11.4947 D5 64 80 0 2
80 11.5025 11.6197 C5 65 80 0 1
81 11.5025 11.9996 E3 68 80 1 -5
82 11.5025 11.9996 C4 63 80 1 -1
83 11.6275 11.7432 B4 64 80 0 4
84 11.751 11.8668 A4 64 80 0 3
85 11.8746 11.9923 G4 64 80 0 2
86 12.0006 12.2413 F4 69 80 0 1
87 12.0006 12.5054 D3 61 80 1 -5
88 12.0006 12.5054 C4 75 80 1 -1
89 12.2564 12.3721 G4 64 80 0 2
90 12.38 12.4981 A4 64 80 0 3
91 12.5059 12.6236 B4 65 80 0 1
92 12.6314 12.7467 C5 64 80 0 2
93 12.7545 12.8702 D5 64 80 0 3
94 12.878 12.9962 E5 64 80 0 4
95 13.004 13.1226 F5 67 80 0 5
96 13.1304 13.2457 E5 64 80 0 4
97 13.2535 13.3692 D5 64 80 0 3
98 13.377 13.4947 C5 64 80 0 2
End of preview. Expand in Data Studio

MUSIC: Learning Muscle-Driven Dexterous Hand Control

This repository holds the data for MUSIC: Learning Muscle-Driven Dexterous Hand Control: the reference motions for hand-motion tracking, and the pretrained policies.

[Code] [Webpage] [arXiv] [YouTube] [TOG]

The code is at github.com/xupei0610/music. It reads the files from this repository without any conversion.

Contents

left_hand_motions/<id>.joblib        148 files, 237 clips, 651.6 min
right_hand_motions/<id>.joblib       153 files, 284 clips, 651.3 min
pretrained/
  joint_fingering/<piece>_fingering.ckpt     15 joint-driven piano policies, given fingering
  joint_hand/<piece>_hand.ckpt               15 joint-driven piano policies, hand only
  muscle_fingering/<piece>_fingering.ckpt    15 muscle-driven piano policies, given fingering
  muscle_hand/<piece>_hand.ckpt              15 muscle-driven piano policies, hand only
  muscle_tracking/muscle_tracking_left.ckpt  left-hand muscle-driven tracking policy
  muscle_tracking/muscle_tracking_right.ckpt right-hand muscle-driven tracking policy

Download

Use the script in the code repository. It writes the motions to motions/ in the repository root:

scripts/download_motions.sh                    # all motions
scripts/download_motions.sh --hand right       # one hand
scripts/download_motions.sh --files 000 001    # selected files, both hands

Or download with the Hugging Face CLI:

# all motions, about 8.7 GB
uvx --from huggingface-hub hf download xupei0610/MUSIC --repo-type dataset \
  --include "left_hand_motions/*" "right_hand_motions/*" --local-dir motions

# all pretrained policies, about 2.1 GB, into the pretrained/ folder of the code repository
uvx --from huggingface-hub hf download xupei0610/MUSIC --repo-type dataset \
  --include "pretrained/*" --local-dir .

Reference motions

The motions are hand motions from piano performances, retargeted from the ForElise dataset to the MUSIC hand model. Each hand has about 651 minutes of motion at 60 frames per second. The tracking task (cfg/muscle_tracking_{left,right}.py) and the piano tasks use them.

File format

Each .joblib file holds a list of clips. Each clip is a Motion named tuple from ref_motion.py:

Motion = namedtuple("Motion", "fps pos orient ang_vel lin_vel joint_pos joint_vel")
Field Shape Meaning
fps int Frame rate, always 60.
pos (T, 34, 3) Position of each body in the world frame, in meters.
orient (T, 34, 4) Orientation of each body in the world frame, as a unit quaternion (x, y, z, w).
ang_vel (T, 34, 3) Angular velocity of each body in the world frame, in rad/s.
lin_vel (T, 34, 3) Linear velocity of each body in the world frame, in m/s.
joint_pos (T, 23) Angle of each hinge joint of the hand, in radians.
joint_vel (T, 23) Angular velocity of each hinge joint, in rad/s.

T is the number of frames of the clip, and all arrays are torch.float32 tensors. The 34 bodies are the bodies of assets/{left,right}_hand_muscle_driven.xml in model order, without the world body. The first bodies are ulna, radius and lunate. The 23 joints are the hinge joints of the same model in model order, without the free root joint.

Two files, right_hand_motions/050.joblib and right_hand_motions/111.joblib, contain an empty list. The loader skips them.

Load a file

The files store the Motion type of ref_motion.py, so ref_motion must be importable. Run the following from the root of the code repository:

import joblib
from ref_motion import Motion   # the type that the files store

clips = joblib.load("motions/left_hand_motions/000.joblib")
clip = clips[0]
print(clip.fps, clip.pos.shape, clip.joint_pos.shape)

Pretrained policies

All policy files keep only what running the policy needs: the actor weights and the observation normalizer mean and variance. They contain no critic, discriminator, optimizer state or training records. Each file is a dict of tensors, so torch.load(path, weights_only=True) can read it.

Joint-driven piano policies

Each file controls both hands for one piece, with joint position targets. It plays the note file with the same name from the notes/ folder of the code repository. For example, pretrained/joint_hand/052-1_hand.ckpt plays notes/052-1_hand.txt.

  • joint_fingering/ was trained with the fingering of the PIG dataset, one finger for each note.
  • joint_hand/ was trained with only the hand of each note. The policy selects the finger.

The policies cover 15 pieces:

PIG ID Piece
017-1 Mozart, Piano Sonata K. 545 in C major, 1st movement
046-1 Bach, French Suite No. 3, Minuet
048-1 Bach, English Suite No. 2, Prelude
052-1 Mozart, Piano Sonata K. 280 in F major, 2nd movement
061-2 Beethoven, Für Elise
070-1 Beethoven, Piano Sonata No. 23, 2nd movement
075-1 Chopin, Waltz Op. 64 No. 2
087-1 Debussy, Suite bergamasque, Passepied
092-1 Grieg, Lyric Pieces Op. 38 No. 1
102-1 Mussorgsky, Pictures at an Exhibition, Bydło
117-1 Brahms, Rhapsody Op. 79 No. 2
119-1 Joplin, Maple Leaf Rag
123-1 Beethoven, Piano Sonata No. 3, 2nd movement
140-1 Scarlatti, Sonata in A major K. 208
145-1 Scriabin, Piano Sonata No. 5

Mean scores over the 15 pieces, from one full play of each piece with the mean action:

Policies Frame F1 Note F1
joint_fingering 0.990 0.983
joint_hand 0.986 0.982

Frame F1 compares the pressed keys with the score at each 60 Hz control frame. Note F1 matches a played note to a score note on the same key when the two onsets are within 50 ms of each other.

Evaluate a policy in the viewer:

uv run python main.py cfg/joint.py --test \
  --note notes/017-1_fingering.txt \
  --ckpt pretrained/joint_fingering/017-1_fingering.ckpt

Muscle-driven tracking policies

muscle_tracking_left.ckpt and muscle_tracking_right.ckpt are the general low-level tracking policies for each hand. They control 44 muscles and the 6 root force and torque actuators of the hand at 480 Hz, and they track the reference motions above. The high-level muscle-driven piano policies below use them as their controllers.

Evaluate a tracking policy:

uv run python main.py cfg/muscle_tracking_right.py --test \
  --ckpt pretrained/muscle_tracking/muscle_tracking_right.ckpt

Muscle-driven piano policies

Each file controls both hands for one piece. It sends latent actions at 60 Hz to the two tracking policies above. It plays the note file with the same name, as the joint-driven policies do. The files cover the same 15 pieces.

  • muscle_fingering/ was trained with the fingering of the PIG dataset.
  • muscle_hand/ was trained with only the hand of each note.

The policies were trained with cfg/muscle.py, in which each episode plays the whole piece. The code repository gives the piano model a keybed under the keys, which collides with the fingers. Use that piano model with these policies.

Mean scores over the 15 pieces, from one full play of each piece with the mean action:

Policies Frame F1 Note F1
muscle_fingering 0.973 0.905
muscle_hand 0.964 0.890

Evaluate a policy in the viewer:

uv run python main.py cfg/muscle.py --test \
  --note notes/017-1_fingering.txt \
  --ckpt pretrained/muscle_fingering/017-1_fingering.ckpt

License

This repository is released under the MIT License. The source datasets keep their own licenses. See the data attribution below.

Data attribution

The reference motions are retargeted from the ForElise piano performance dataset. The note files are extracted from the Piano Fingering Dataset (PIG). Please follow the licenses and citation requirements of the source datasets.

Citation

If you use this data, please cite:

@article{music,
  author = {Xu, Pei and Ye, Yufei and Sun, Shuchun and Ding, Yu and Schumann, Elizabeth and Liu, C. Karen},
  title = {{MUSIC}: Learning Muscle-Driven Dexterous Hand Control},
  journal = {ACM Transactions on Graphics},
  volume = {45},
  number = {4},
  year = {2026},
  doi = {10.1145/3811402}
}
Downloads last month
643

Paper for xupei0610/MUSIC