Coder Social home page Coder Social logo

uttaranb127 / generatingemotivegaits Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 113 KB

This is the official implementation of the paper "Generating Emotive Gaits for Virtual Agents Using Affect-Based Autoregression".

Home Page: https://gamma.umd.edu/gen_emotive_gaits

License: MIT License

Python 100.00%
affective-computing generating-emotive-gaits gait-generation autoregression intelligent-agent virtual-agent

generatingemotivegaits's Introduction

Generating Emotive Gaits for Virtual Agents Using Affect-Based Autoregression

This is the official implementation of the paper Generating Emotive Gaits for Virtual Agents Using Affect-Based Autoregression. Please use the following citation if you find our work uesful:

@inproceedings{bhattacharya2020generating,
author = {Uttaran Bhattacharya and Nicholas Rewkowski and Pooja Guhan and Niall L. Williams and Trisha Mittal and Aniket Bera and Dinesh Manocha},
title = {Generating Emotive Gaits for Virtual Agents Using Affect-Based Autoregression},
booktitle = {2020 {IEEE} International Symposium on Mixed and Augmented Reality, {ISMAR} 2020, November 9-13, 2020},
publisher = {{IEEE}},
year      = {2020}
}

Installation

Our scripts have been tested on Ubuntu 18.04 LTS with

  • Python 3.7
  • Cuda 10.2
  • cudNN 7.6.5
  • PyTorch 1.5
  1. Unzip this repository.

We use $BASE to refer to the base directory for this project (the directory containing main.py). Change present working directory to $BASE.

  1. [Optional but recommended] Create a conda envrionment for the project and activate it.
conda create gen-emo-gaits-env python=3.7
conda activate gen-emo-gaits-env
  1. Install the package requirements.
pip install -r requirements.txt

Note: You might need to manually uninstall and reinstall matplotlib and kiwisolver for them to work.

  1. Install PyTorch following the official instructions. Note: You might need to manually uninstall and reinstall numpy for torch to work.

Downloading the dataset

We downloaded the Edinburgh Locmotion MOCAP Database, and annotated the locomotion data with emotion labels. Our processed and annotated dataset is available for download here: https://drive.google.com/file/d/1-D_tT09a7CfO3JSSHWX7-Ao3SjCxTsD2/view?usp=sharing. Unzip the downloaded file to a directorty named "data", located at the same level $BASE (i.e., $BASE and the data are sibling directories).

Running the code

Run the main.py file with the appropriate command line arguments.

python main.py <args list>

The full list of arguments is available inside main.py.

For any argument not specificed in the command line, the code uses the default value for that argument.

On running main.py, the code will train the network and generate sample gestures post-training.

We also provide a pretrained model inside the models directory, available for download here: https://drive.google.com/file/d/1u8Ed_iPXdc-8bVzyRqXOfQ5g2QogNOj1/view?usp=sharing. Save the models directory directory under $BASE.

Set the command-line argument --train to False to skip training and use this model directly for evaluation. The generated samples are stored in the automatically created render directory. We generate test samples by deafult and also store the corresponding ground truth samples for comparison. We have tested that the samples, stored in .bvh files, are compatible with blender.

generatingemotivegaits's People

Contributors

uttaranb127 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.