Code
Code
Users can take advantage of large high-quality motion capture datasets like the CMU
and AMASS datasets without deep knowledge of the domain or handling the
idiosyncrasies of individual datasets. We implement baselines for research tasks
using building blocks from the library to demonstrate its utility.
Getting Started
Installation
To install fairmotion from source, first clone the git repository, use pip to
download dependencies and build the project.
Data Loading
Here, we load a motion capture file in the BVH file format in a python console.
Similarly, there are loaders to import files from ASF/AMC, AMASS and AMASS DIP
formats.
BVH_FILENAME = “PATH_TO_BVH_FILE”
motion = bvh.load(BVH_FILENAME)
Motion manipulation
The motion object can be manipulated in both modular and matrix forms. Here, we
translate the object to a fixed global position [1, 1, 1] and select a time slice
from frame 20 to frame 30.
Data saving
We can save the manipulated motion object back into the bvh file format for us to
visualize the result.
NEW_BVH_FILENAME = "PATH_TO_NEW_BVH_FILE"
bvh.save(sliced_motion, NEW_BVH_FILENAME)
Visualization
Tasks
The tasks module showcases practical usage of fairmotion modules as building blocks
in developing projects.
Motion Prediction
Motion Graph
Clustering of motion capture dataset
Changepoint Detection
License