Awesome
Dance Dance Convolution
Dance Dance Convolution is an automatic choreography system for Dance Dance Revolution (DDR), converting raw audio into playable dances.
<p align="center"> <img src="docs/fig1.png" width="650px"/> </p>This repository contains the code used to produce the dataset and results in the Dance Dance Convolution paper. You can find a live demo of our system here as well as an example video.
The Fraxtil
and In The Groove
datasets from the paper are amalgamations of three and two StepMania "packs" respectively. Instructions for downloading these packs and building the datasets can be found below.
We are in the process of reimplementing this code (under branch master_v2
), primarily to add on-the-fly feature extraction and remove the essentia dependency. However, you can get started with master
if you are eager to dance.
Please email me with any issues: cdonahue [@at@] ucsd (.dot.) edu
Attribution
If you use this dataset in your research, cite via the following BibTex:
@inproceedings{donahue2017dance,
title={Dance Dance Convolution},
author={Donahue, Chris and Lipton, Zachary C and McAuley, Julian},
booktitle={Proceedings of the 34th International Conference on Machine Learning},
year={2017},
}
Requirements
- tensorflow >1.0
- essentia 2.1 beta 3
- numpy
- tqdm
- scipy
Directory description
dataset/
: code to generate the dataset from StepMania filesinfer/
: code to run demo locallylearn/
: code to train step placement (onset) and selection (sym) modelsscripts/
: shell scripts to build the dataset (smd_*
) and train (sml_*
)
Running demo locally
The demo (unfortunately) requires tensorflow 0.12.1 and essentia. virtualenv
recommended
- Install tensorflow 0.12.1
- Run server:
./ddc_server.sh
- Send server choreography requests:
python ddc_client.py $ARTIST_NAME $SONG_TITLE $FILEPATH
Building dataset
- Make a directory named
data
under~/ddc
(or changescripts/var.sh
to point to a different directory) - Under
data
, make directoriesraw
,json_raw
andjson_filt
- Under
data/raw
, make directoriesfraxtil
anditg
- Under
data/raw/fraxil
, download and unzip: - Under
data/raw/itg
, download and unzip: - Navigate to
scripts/
- Parse
.sm
files to JSON:./all.sh ./smd_1_extract.sh
- Filter JSON files (removing mines, etc.):
./all.sh ./smd_2_filter.sh
- Split dataset 80/10/10:
./all.sh ./smd_3_dataset.sh
- Analyze dataset (e.g.):
./smd_4_analyze.sh fraxtil
Running training
- Navigate to
scripts/
- Extract features:
./all.sh ./sml_onset_0_extract.sh
- Generate chart
.pkl
files (this may take a while):./all.sh ./sml_onset_1_chart.sh
- Train a step placement (onset detection) model on a dataset:
./sml_onset_2_train.sh fraxtil
- Train a step selection (symbolic) model on a dataset:
./sml_sym_2_train.sh fraxtil
- Train and evaluate a Laplace-smoothed 5gram model on a dataset:
./sml_sym_2_mark.sh fraxtil 5