# Pytorch-Robust-Motion-In-betweening **Repository Path**: hcy1906/Pytorch-Robust-Motion-In-betweening ## Basic Information - **Project Name**: Pytorch-Robust-Motion-In-betweening - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-10 - **Last Updated**: 2022-02-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: 机器学习 ## README # Pytorch Implementation of Robust Motion In-betweening This is the unofficial implementation of the approach described in the paper: > Felix G. Harvey, Mike Yurick, Derek Nowrouzezahrai, and Christopher Pal [Robust Motion In-betweening](https://static-wordpress.akamaized.net/montreal.ubisoft.com/wp-content/uploads/2020/07/09155337/RobustMotionInbetweening.pdf). In *ACM Transactions on Graphics (TOG)*, 2020. We provide the code for reproducing the main results, as well as pre-trained models. ## Dependencies - Python 3+ distribution - PyTorch >= 1.4.0 - NumPy - PIL - TensorboardX - Pyyaml Please follow [this repo](https://github.com/ubisoft/ubisoft-laforge-animation-dataset) to download the data. Pretrained model is available at [this link](https://drive.google.com/file/d/1_eqiIJA9NFrHfDGnOoo5s0BdKLhgBz1U/view?usp=sharing). After downloading this repo, you need: (1) create new dirs named src, log, model, gif, and results repectively; (2) Put all downloaded files in to ./src and pretrained model into ./model. ## For data preparation ``` python flip_bvh.py ``` ## For training ``` python train.py ``` ## For testing ``` python test.py ``` ## The contribution of foot sliding loss In the original papaer, foot sliding problem is only post processed. Here I add the [foot sliding loss](https://github.com/xjwxjw/Pytorch-Robust-Motion-In-betweening/blob/386df7490ca2dfe89122952dd75b84506eedf700/train.py#L299) which turned out to be effective to further enhance visual quality. Here is an exmaple: ![image](https://drive.google.com/uc?export=view&id=1UsIvPuJtuGKvScHE7QTNuDvFnQ79hMjP) Images from left to right are orginal implementation, + foot sliding loss, + IK post processing, and ground truth respecitvely. With the help of foot sliding loss, the model is able to infer a rational foot contact arrange to reach the target. ## Work status [This sheet](https://docs.google.com/spreadsheets/d/1UhpiTP2QyN1eut8PT26ld14hbsh1qCkTzvO-jR4Dr7I/edit?usp=sharing) ## Demo results Synthesized resutls without foot sliding constraint could be downloaded from [this link](https://drive.google.com/file/d/1137bH0L-_Ri1cpJOjMi9oTUYC0x8v4fG/view?usp=sharing), the results with foot sliding constraint could be downloaded from [this link](https://drive.google.com/file/d/1FIoNyx-_SseJNWrzRjmDqeEpblyYrh3y/view?usp=sharing).