namjohn10 / GenerativeGaitNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generative GaitNet (Simple Version)

The updated version is available in https://github.com/namjohn10/BidirectionalGaitNet.

Abstract

Understanding the relation between anatomy and gait is key to successful predictive gait simulation. In this paper, we present Generative GaitNet, which is a novel network architecture based on deep reinforcement learning for controlling a comprehensive, full body, musculoskeletal model with 304 Hill-type musculotendons. The Generative GaitNet is a pre-trained, integrated system of artificial neural networks learned in a 618-dimensional continuous domain of anatomy conditions (e.g., mass distribution, body proportion, bone deformity, and muscle deficits) and gait conditions (e.g., stride and cadence). The pre-trained GaitNet takes anatomy and gait conditions as input and generates a series of gait cycles appropriate to the conditions through physics-based simulation. We will demonstrate the efficacy and expressive power of Generative GaitNet to generate a variety of healthy and pathological human gaits in real-time physics-based simulation.

Video (Youtube)

GenerativeGaitNet

Publications

https://mrl.snu.ac.kr/research/ProjectGaitNet/paper.pdf

Jungnam Park, Sehee Min, Phil Sik Chang, Jaedong Lee, Moon Seok Park, and Jehee Lee Generative GaitNet, SIGGRAPH 2022 Conference Proceedings.

Installation

We checked code works in Python 3.6, ray(rllib) 1.8.0 and Cluster Server (64 CPUs (128 threads) and 1 GPU (RTX 3090) per node)

Install Library Automatically

cd {downloaded folder}/
./install.sh

Compile

cd {downloaded folder}/
./pc_build.sh
cd build
make -j32

Rendering

To run without policy

cd {downloaded folder}/build
./imgui_render/imgui_render ../data/metadata.txt

or the trained policy.

cd {downloaded folder}/build
./imgui_render/imgui_render {network_path}

To run with trained 4 policies (to lower body),

cd {downloaded folder}/build
./imgui_render/imgui_render ../data/trained_nn/Skeleton ../data/trained_nn/Ankle ../data/trained_nn/Hip ../data/trained_nn/Merge

And check the edge connection file, ./data/cascading_map.txt (The right number is descendant policy in the graphs)

1 0
2 0
3 0
3 1
3 2

Learning

Parameter Setting

Set adjustable parameters in {downloaded folder}/data/metadata.txt. The group flag groups muscles containing the given name.

To set muscle length,

muscle_param
group(or not use) {Left Muscle1 Name} {min ratio} {max ratio}
group(or not use) {Right Muscle1 Name} {min ratio} {max ratio}
group(or not use) {Left Muscle2 Name} {min ratio} {max ratio}
group(or not use) {Right Muscle2 Name} {min ratio} {max ratio}
...
muscle_end

To set muscle force,

muscle_param
group(or not use) {Left Muscle1 Name} {min ratio} {max ratio}
group(or not use) {Right Muscle1 Name} {min ratio} {max ratio}
group(or not use) {Left Muscle2 Name} {min ratio} {max ratio}
group(or not use) {Right Muscle2 Name} {min ratio} {max ratio}
...
muscle_end

To set body proportion force,

muscle_param
global {min ratio} {max ratio}
Head {min ratio} {max ratio}
{Left Body Name} {min ratio} {max ratio}
{Right Body Name} {min ratio} {max ratio}
...
muscle_end

Training

Training is executed based on the metadata setting.

Training a single policy (Cluster setting)

cd {downloaded folder}/python
python3 ray_train.py --config=ppo_medium_node 

Cascading and Subsumption learning

cd {downloaded folder}/python
python3 ray_train.py --config=ppo_medium_node --cascading_nn={previous network paths}

About

License:Apache License 2.0


Languages

Language:C++ 69.0%Language:C 24.9%Language:CMake 1.9%Language:Python 1.9%Language:Objective-C++ 1.4%Language:Makefile 0.4%Language:Objective-C 0.3%Language:Batchfile 0.1%Language:Shell 0.1%Language:HTML 0.0%Language:GLSL 0.0%