quangduytran commited on
Commit
8388239
·
1 Parent(s): 727ace0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +129 -0
README.md CHANGED
@@ -2,4 +2,133 @@
2
  license: other
3
  license_name: aioz-license
4
  license_link: LICENSE
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: other
3
  license_name: aioz-license
4
  license_link: LICENSE
5
+ language:
6
+ - en
7
  ---
8
+
9
+ # [Music-Driven Group Choreography (CVPR 2023)](https://openaccess.thecvf.com/content/CVPR2023/papers/Le_Music-Driven_Group_Choreography_CVPR_2023_paper.pdf)
10
+ ### *[Nhat Le](https://minhnhatvt.github.io/), [Thang Pham](https://phamtrongthang123.github.io/), [Tuong Do](https://scholar.google.com/citations?user=qCcSKkMAAAAJ&hl=en), [Erman Tjiputra](https://sg.linkedin.com/in/erman-tjiputra), [Quang D. Tran](https://scholar.google.com/citations?user=DbAThEgAAAAJ&hl=en), [Anh Nguyen](https://cgi.csc.liv.ac.uk/~anguyen/)*
11
+ ### [[Project Page](https://aioz-ai.github.io/AIOZ-GDANCE/)] [[Paper](https://openaccess.thecvf.com/content/CVPR2023/papers/Le_Music-Driven_Group_Choreography_CVPR_2023_paper.pdf)]
12
+
13
+
14
+ ![](https://vision.aioz.io/f/1e065962a9b747b3a856/?dl=1)*<center> We demonstrate the AIOZ-GDANCE dataset with in-the-wild videos, music audio, and 3D group dance motion. </center>*
15
+
16
+ ## Abstract
17
+ > Music-driven choreography is a challenging problem with a wide variety of industrial applications. Recently, many methods have been proposed to synthesize dance motions from music for a single dancer. However, generating dance motion for a group remains an open problem. In this paper, we present GDANCE, a new large-scale dataset for music-driven group dance generation. Unlike existing datasets that only support single dance, our new dataset contains group dance videos, hence supporting the study of group choreography. We propose a semi-autonomous labeling method with humans in the loop to obtain the 3D ground truth for our dataset. The proposed dataset consists of 16.7 hours of paired music and 3D motion from in-the-wild videos, covering 7 dance styles and 16 music genres. We show that naively applying single dance generation technique to creating group dance motion may lead to unsatisfactory results, such as inconsistent movements and collisions between dancers. Based on our new dataset, we propose a new method that takes an input music sequence and a set of 3D positions of dancers to efficiently produce multiple group-coherent choreographies. We propose new evaluation metrics for measuring group dance quality and perform intensive experiments to demonstrate the effectiveness of our method. Our code and dataset will be released to facilitate future research on group dance generation.
18
+
19
+ ## Table of Contents
20
+ 1. [AIOZ-GDANCE Dataset](#aioz-gdance-dataset)
21
+ 2. [Visualizing](#visualizing)
22
+ 3. [Prerequisites](#prerequisites)
23
+ 4. [Usage](#usage)
24
+
25
+ ## AIOZ-GDANCE Dataset
26
+ **[Download]** The dataset can be downloaded at [Data](https://vision.aioz.io/f/430eb9d90552480e8b4e/?dl=1)
27
+
28
+ **[Updated]** The music and dance labels are now available at [Labels](https://vision.aioz.io/f/bef3ae93990e4e43addf/?dl=1)
29
+
30
+ The data directory is organized as follows:
31
+ - **split_sequence_names.txt**:
32
+ - a txt file containing seperate sequence names in the data (each sequence should have unique name or id)
33
+ - **musics**:
34
+ - contains raw music .wav file of each sequence with the corresponding name. The music frames are aligned with the motion frames.
35
+ - **motions_smpl**:
36
+ - contains the motion file of each sequence with the corresponding name, the motion is provided in .pkl file format.
37
+ - Each data dictionary mainly includes the following items:
38
+ - `'smpl_poses': shape[num_persons x num_frames x 72]`: the motions contain 72-D vector pose sequences in SMPL pose format (24 joints).
39
+ - ``'root_trans': shape[num_persons x num_frames x 3]``: sequences of root translation.
40
+
41
+ Here is an example python script to read the motion file
42
+ ```python
43
+ import pickle
44
+ import numpy as np
45
+ data = pickle.load(open("sequence_name.pkl","rb"))
46
+ print(data.keys())
47
+
48
+ smpl_poses = data['smpl_poses']
49
+ smpl_trans = data['root_trans']
50
+
51
+ # ... may utilize the pose by using SMPL forward function: https://github.com/vchoutas/smplx
52
+ ```
53
+ ![Figure 4](https://github.com/aioz-ai/AIOZ-GDANCE/blob/main/4r.gif)
54
+
55
+ ![Figure 5](https://github.com/aioz-ai/AIOZ-GDANCE/blob/main/1r.gif)
56
+
57
+ ## Visualizing
58
+
59
+
60
+ We provide demo code for loading and visualizing the motions.
61
+
62
+ ### Prerequisites
63
+ First, you need to download the [SMPL model](https://smpl.is.tue.mpg.de/) (v1.0.0) and rename the model files for visualization. The directory structure of the data is expected to be:
64
+
65
+ The directory structure of the data is expected to be:
66
+ ```
67
+ <DATA_DIR>
68
+ ├── motions_smpl/
69
+ ├── musics/
70
+ └── split_sequence_names.txt
71
+
72
+ <SMPL_DIR>
73
+ ├── SMPL_MALE.pkl
74
+ └── SMPL_FEMALE.pkl
75
+ ```
76
+
77
+ Then run this to install the necessary packages
78
+ ```
79
+ pip install scipy torch smplx chumpy vedo trimesh
80
+ pip install numpy==1.23.0
81
+ ```
82
+
83
+ ### Usage
84
+ #### Visualize the SMPL joints
85
+ The following command will first calculate the SMPL joint locations (joint rotations and root translation) and then plot on the 3D figure in realtime.
86
+ ``` bash
87
+ python vis_smpl_kpt.py \
88
+ --data_dir <DATA_DIR>/motions_smpl \
89
+ --smpl_path <SMPL_DIR>/SMPL_FEMALE.PKL \
90
+ --sequence_name sequence_name.pkl
91
+ ```
92
+
93
+ #### Visualize the SMPL Mesh
94
+ The following command will calculate the SMPL meshes and visualize in 3D.
95
+ ``` bash
96
+ python vis_smpl_mesh.py \
97
+ --data_dir <DATA_DIR>/motions_smpl \
98
+ --smpl_path <SMPL_DIR>/SMPL_FEMALE.PKL \
99
+ --sequence_name sequence_name.pkl
100
+ ```
101
+
102
+
103
+ ## TODO
104
+ - [x] ~~**Dataset**~~
105
+ - [ ] **Baseline model & training**: TBD
106
+
107
+
108
+
109
+ ## Citation
110
+ ```
111
+ @inproceedings{aiozGdance,
112
+ author = {Le, Nhat and Pham, Thang and Do, Tuong and Tjiputra, Erman and Tran, Quang D. and Nguyen, Anh},
113
+ title = {Music-Driven Group Choreography},
114
+ journal = {CVPR},
115
+ year = {2023},
116
+ }
117
+ ```
118
+
119
+ ## License
120
+ Software Copyright License for non-commercial scientific research purposes.
121
+ Please read carefully the following [terms and conditions](LICENSE) and any accompanying
122
+ documentation before you download and/or use AIOZ-GDANCE data, model and
123
+ software, (the "Data & Software"), including 3D meshes, images, videos,
124
+ textures, software, scripts, and animations. By downloading and/or using the
125
+ Data & Software (including downloading, cloning, installing, and any other use
126
+ of the corresponding github repository), you acknowledge that you have read
127
+ these [terms and conditions](LICENSE), understand them, and agree to be bound by them. If
128
+ you do not agree with these [terms and conditions](LICENSE), you must not download and/or
129
+ use the Data & Software. Any infringement of the terms of this agreement will
130
+ automatically terminate your rights under this [License](LICENSE).
131
+
132
+
133
+ ## Acknowledgement
134
+ This repo used visualization code from [AIST++](https://github.com/google/aistplusplus_api/tree/main)