Home

Awesome

GAMMA: The Wanderings of Odysseus in 3D Scenes

<p align="center"> <img width="900" height="auto" src="demo.gif"> </p>

This repo contains the official implementation of our paper. If you find our work useful in your research, please consider citing it:

@inproceedings{zhang2022wanderings,
  title={The Wanderings of Odysseus in 3D Scenes},
  author={Zhang, Yan and Tang, Siyu},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={20481--20491},
  year={2022}
}

[website] [paper] [talk]

License

Installation

Environment

Datasets

Paths

AMASS Canonicalization

Models

Visualizating Motion in Blender

Motion Generation

Generating and Visualizing Long-term Motions

## a faster version with less control in tree search
python exp_GAMMAPrimitive/gen_motion_long_in_Cubes_parallel.py --cfg MPVAEPolicy_v0

## or, a slower version with more control in the tree search
python exp_GAMMAPrimitive/gen_motion_long_in_Cubes.py --cfg MPVAEPolicy_v0

Generating and Visualizing Motion Primitives

python exp_GAMMAPrimitive/gen_GAMMAprimitive.py --cfg MPVAECombo_1frame_female_v10
python exp_GAMMAPrimitive/vis_GAMMAprimitive.py

Train

Given a model configuration cfg, the checkpoints will be automatically saved into results/exp_GAMMAPrimitive/cfg/*.

Train Body Regressors

python exp_GAMMAPrimitive/train_GammaRegressor.py --cfg MoshRegressor_v3_female

Train Marker Predictors

python exp_GAMMAPrimitive/train_GammaPredictor.py --cfg MPVAE_*frame_v2
python exp_GAMMAPrimitive/train_GammaPredictor.py --cfg MPVAE_*frame_v4 --resume_training 1

Train their Combo (optional)

Train Motion Policy

python exp_GAMMAPrimitive/train_GammaPolicy.py --cfg MPVAEPolicy_v0

Acknowledgement

We appreciate Gramazio Kohler Research to provide architecture CAD models for experiments. Visualizations of body motions are largely based on the SMPL-X blender add-on. We appreciate Jonathan Lehner to develop visualizations in Nvidia Omniverse.