Git Product home page Git Product logo

fine-style's Introduction

FineStyle: Semantic-Aware Fine-Grained Motion Style Transfer with Dual Interactive-Flow Fusion


Abstract: We present FineStyle, a novel framework for motion style transfer that generates expressive human animations with specific styles for virtual reality and vision fields. It incorporates semantic awareness, which improves motion representation and allows for precise and stylish animation generation. Existing methods for motion style transfer have all failed to consider the semantic meaning behind the motion, resulting in limited controls over the generated human animations. To improve, FineStyle introduces a new cross-modality fusion module called Dual Interactive-Flow Fusion (DIFF). As the first attempt, DIFF integrates motion style features and semantic flows, producing semantic-aware style codes for fine-grained motion style transfer. FineStyle uses an innovative two-stage semantic guidance approach that leverages semantic clues to enhance the discriminative power of both semantic and style features. At an early stage, a semantic-guided encoder introduces distinct semantic clues into the style flow. Then, at a fine stage, both flows are further fused interactively, selecting the matched and critical clues from both flows. Extensive experiments demonstrate that FineStyle outperforms state-of-the-art methods in visual quality and controllability. By considering the semantic meaning behind motion style patterns, FineStyle allows for more precise control over motion styles.

Requirements

  • Pytorch
  • scipy
  • pyyaml
  • tqdm
  • tensorboardX
  • sklearn
  • tikzplotlib
  • scikit-learn

Installation

Clone this repository and create environment:

git clone https://github.com/XingliangJin/Fine-Style.git
cd Fine-Style
conda create -n Fine-Style python=3.8
conda activate Fine-Style

First, install PyTorch >= 1.7.1 from PyTorch.
Then install the other dependencies in Requirements.

Quick start

Run the following commands:

python test.py --content_src data/xia_test/neutral_01_000.bvh \   # input content bvh file
               --style_src data/xia_test/childlike_01_000.bvh \     # input style bvh file
               --output_dir output                            # output directory

If you want to generate more results in one command, run:

sh demo.sh

Train Fine-Style

Simply run the following command:

python train.py

You can change more settings of training in config.py (please set your own experiment name in config.py).

If you want to generate processed training data from the original dataset yourself, you can first download the dataset from mocap_xia. Then unzip it in ./data floder and run the following command:

cd data_proc
sh gen_dataset.sh

Acknowledgements

Our code is mostly taken from the following repositories:
A Deep Learning Framework For Character Motion Synthesis and Editing.
Unpaired Motion Style Transfer from Video to Animation.
We sincerely thank these authors for their awesome work.

fine-style's People

Contributors

xingliangjin avatar

Stargazers

 avatar  avatar vceced avatar Harold avatar wang xuan avatar Huayi Zhou avatar Xu Lingjing avatar ZhouXiangZhong avatar Sejong Yang avatar

Watchers

vceced avatar  avatar

fine-style's Issues

train code running error

File "/home/user/Fine-Style/probe/../networks.py", line 290, in forward
assert(x.size(0) == y.size(0))
AttributeError: 'int' object has no attribute 'size'

Is the training code working well? I get an error like this, also the size of x should be [n.k.m], but the shape of x is [n,k].

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.