Git Product home page Git Product logo

mnet's Introduction

MNET

Official PyTorch implementation of the paper "A Brand New Dance Partner:Music-Conditioned Pluralistic Dancing Synthesized by Multiple Dance Genres", CVPR 2022. Please visit our website for more details.

Framework

We propose MNET, a novel and scalable approach that can perform music-conditioned pluralistic dance generation synthesized by multiple dance genres using only a single model. Here, we learn a dance-genre aware latent representation by training a conditional generative adversarial network leveraging Transformer architecture. teaser

1. Getting started

# clone this repo:
git clone https://github.com/jw09191/MNET
cd MNET

# [OPTIONAL] create conda environment
conda create -n mnet python=3.8
conda activate mnet

# install requirements
pip install -r requirements.txt

2. Download the datasets

In our experiment, we use AIST++. For more information about the dataset, please check this page. Please download the annotated motion datasets from here, and unzip them as ./data/AIST++/motions/ folder. Please download the music pieces (wav) from here, and unzip them as ./data/AIST++/wav/ folder. And please download SMPL models here, and copy the downloaded 'male' SMPL model to ./data/AIST++/SMPL_DIR/ folder.

3. How to use MNET

Training

# train on CPU
python train.py experiment=AISTPP trainer.gpus=0

# train on single GPU
python train.py experiment=AISTPP trainer.gpus=1

# train with DDP (Distributed data Parallel) (4 GPUs)
python train.py experiment=AISTPP trainer.gpus=4 +trainer.strategy=ddp

Pretrained models

You can download pretrained models from here (Google Drive), and move them to ./logs/pretrain/ folder.

Visualization

You can choose .pkl data from ./data/AIST++/motions and the generated dance videos are saved in ./logs/pretrain/demos/ folder.

Generate diverse dance

# example
python demo.py -l pretrain -p gBR_sBM_cAll_d04_mBR0_ch01.pkl -t diversity 

Generate dance controlled by dance genre

# example
python demo.py -l pretrain -p gBR_sBM_cAll_d04_mBR0_ch01.pkl -t synthesis 

4. Citation

@InProceedings{Kim_2022_CVPR,
    author    = {Kim, Jinwoo and Oh, Heeseok and Kim, Seongjean and Tong, Hoseok and Lee, Sanghoon},
    title     = {A Brand New Dance Partner: Music-Conditioned Pluralistic Dancing Controlled by Multiple Dance Genres},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2022},
    pages     = {3490-3500}
}

Our code is released under MIT License.

mnet's People

Contributors

jw09191 avatar

Stargazers

xaddwell avatar Aurore LAFAURIE avatar  avatar  avatar NewCoderQ avatar  avatar  avatar Eunhee Kim avatar  avatar  avatar li-ronghui avatar Wentao Zhu avatar Richard Pan avatar borishan avatar  avatar  avatar  avatar Yuan-Man avatar aaronchen avatar Kuqs avatar Fukahire avatar 爱可可-爱生活 avatar Yunfei Liu avatar  avatar  avatar Frank (Haofan) Wang avatar  avatar Snow avatar Duc Nguyen avatar Suwoong Heo avatar  avatar  avatar  avatar Jeonghaeng Lee avatar cshshsh avatar

Watchers

Snow avatar  avatar  avatar  avatar

mnet's Issues

Quantitative Comparisons

How to evaluate your model with FID and Dist metrics? In this paper, you use a style classifier on dance motions of 10 dance genres and utilize it to extract a style feature $z_s$. Is there any checkpoint and model of this style feature extractor? How can I evaluate it?

URL of Trained Checkpoint is out-of-date

Hi !

First of all, thanks for sharing the valuable ideas you presented in the paper "A Brand New Dance Partner:Music-Conditioned Pluralistic Dancing Controlled by Multiple Dance Genres" along with well-structured code.
I found the idea very interesting and tried to reproduce the fancy results. Howere, I found that the url of model checkpoint (https://drive.google.com/file/d/1oT8w6EtURFiC0mmre5Rrg3Ko4Qdns328/view?usp=sharing) is invalid.
Could you please update this share link? It will helps alot!

Thanks again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.