This is the official repository accompanying the paper "Dance2Music: Automatic Dance-driven Music Generation", by Gunjan Aggarwal & Devi Parikh.
Paper link.
This repo requires OpenPose for running on GPU and OpenVINO for running on CPU.
To install OpenPose follow the instructions given here. Make sure to enable the BUILD_PYTHON
flag while installing.
To install OpenVINO follow the instructions given here.
Run this on a GPU machine -
python Dance2Music_openpose.py
Run this on a GPU machine -
python Dance2Music_openpose.py --input video_fname
Can be run on a CPU -
python Dance2Music_openvino.py
Can be run on a CPU -
python Dance2Music_openvino.py --input video_fname
cd offline
bash launch.sh /path/to/inp/dir /path/to/out/dir
Example script -
cd offline
bash launch.sh test_videos out_results