Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

AIST Dance 2D keypoints (mediapipe)

2D skeletons and aligned music features extracted from the AIST Dance Video Database, for music-conditioned dance generation (project: beat2body). No video or audio is included: only joint coordinates and audio features (log-mel, onset strength, beat positions).

  • Source videos: advanced choreography (sFM), front camera (c01), 10 genres x 21 videos (ballet_jazz, break, house, krump, la_hiphop, lock, middle_hiphop, pop, street_jazz, waack), resampled to 30 fps.
  • Pose tool: MediaPipe Pose Landmarker (heavy, 33 landmarks), mapped to COCO-17. Confidence threshold 0.5.
  • Companion datasets with the same videos, split and format: dwpose, openpose.

Files

2d/categories.json                              {"<genre>": index} for the genre embedding
2d/keypoints/mediapipe/<genre>/<video_id>.npz      keypoints (T,17,2) float32, valid (T,17) bool,
                                                pelvis (T,2) px, scale, fps, width, height, joint_names
2d/keypoints/mediapipe/normalization.json          cleaning + normalization parameters
2d/features/audio_mel/<video_id>.npy            (T,64) log-mel (dB), 22.05 kHz, hop 735 (1 frame = 1 motion frame)
2d/features/audio_onset/<video_id>.npy          (T,) onset strength
2d/features/beats/<video_id>.npy                beat times in frames (float): grid at the published AIST tempo,
                                                phase fitted to the onset envelope
2d/features/audio_edge/<video_id>.npy           (T,35) EDGE's "baseline" music features at 30 fps: onset envelope (1),
                                                MFCC (20), chroma CENS (12), onset peaks one-hot (1), beats one-hot (1)
2d/clips/mediapipe/meta.csv                        one row per clip: clip_path, audio_feat_path, category,
                                                start_frame, end_frame, split, video_id, dancer, music
2d/clips/mediapipe/split.json                      split options and songs per split
2d/clips/mediapipe/<split>/<genre>__<video_id>__<start>.npz
                                                240-frame windows (stride 60): keypoints, valid, mel,
                                                onset, beats (window-relative), category, category_index, ...

Keypoints are in COCO-17 order, centred on the mid-hip and divided by the median torso length over the whole dataset. Undo with xy_px = keypoints * scale + pelvis[:, None]. valid is False where a joint was interpolated rather than observed; use it as a loss mask.

How the training code uses it

The beat2body model is a 2D re-implementation of EDGE (Tseng et al., CVPR 2023). It does not read the clip files; it reads the per-video files above and uses meta.csv only for the windows and the split. Per frame it builds:

  • motion (38): 2 ankle contacts + 2 root + 34 joints. Root = (pelvis - image centre) / scale (the dancer's position in the 1920x1080 frame, in torso lengths). Joints = keypoints (pelvis-centred). An ankle is in contact when its image speed, root motion included, is below 0.012 torso lengths per frame (about 1.5 px; about 40% of frames).
  • music (37): audio_edge (35), normalized with train-split mean / std, + sin / cos of the position within the beat from beats (2).
  • windows: 150 frames (5 s) cropped from the clips of each split.

Code: beat2body.data in the project repository; python -m beat2body data checks it.

Video ids follow AIST naming: gLH_sFM_c01_d16_mLH0_ch01 = genre LH, dancer d16, song mLH0.

Split

Test holds out 1 song(s) per genre completely (all their videos), so test music is never seen in training; use it for the final evaluation. The other videos are split into train / val by video (15% val), so train and val share songs and dancers.

split clips videos songs
train 2153 145 50
val 440 29 24
test 489 36 10

Loading

from huggingface_hub import snapshot_download
import pandas as pd, numpy as np
root = snapshot_download("SizheZ03/AISTDance_mediapipe", repo_type="dataset")
meta = pd.read_csv(f"{root}/2d/clips/mediapipe/meta.csv")
clip = np.load(f"{root}/" + meta.clip_path[0])

Or, with the project code: python -m beat2body hf download --tool mediapipe.

Terms and citation

The AIST Dance Video Database is free for academic research only; see its terms of use. The videos themselves are not redistributed here. The music features are derived from the database's copyrighted music. Pose tool license: Apache-2.0. If you use this data, cite the AIST Dance Video Database:

@inproceedings{tsuchida2019aist,
  author    = {Shuhei Tsuchida and Satoru Fukayama and Masahiro Hamasaki and Masataka Goto},
  title     = {AIST Dance Video Database: Multi-genre, Multi-dancer, and Multi-camera Database
               for Dance Information Processing},
  booktitle = {Proceedings of the 20th International Society for Music Information Retrieval
               Conference (ISMIR 2019)},
  year      = {2019}
}
Downloads last month
45