[Project Page] [Paper] [Supp. Mat.]
Short Video | Long Video |
---|---|
Software Copyright License for non-commercial scientific research purposes. Please read carefully the following terms and conditions and any accompanying documentation before you download and/or use the ExPose data, model and software, (the "Data & Software"), including 3D meshes, images, videos, textures, software, scripts, and animations. By downloading and/or using the Data & Software (including downloading, cloning, installing, and any other use of the corresponding github repository), you acknowledge that you have read these terms and conditions, understand them, and agree to be bound by them. If you do not agree with these terms and conditions, you must not download and/or use the Data & Software. Any infringement of the terms of this agreement will automatically terminate your rights under this License.
EXpressive POse and Shape rEgression (ExPose) is a method that estimates 3D body pose and shape, hand articulation and facial expression of a person from a single RGB image. For more details, please see our ECCV paper Monocular Expressive Body Regression through Body-Driven Attention. This repository contains:
To install the necessary dependencies run the following command:
pip install -r requirements.txt
The code has been tested with two configurations: a) with Python 3.7, CUDA 10.1, CuDNN 7.5 and PyTorch 1.5 on Ubuntu 18.04, and b) with Python 3.6, CUDA 10.2 and PyTorch 1.6 on Ubuntu 18.04.
First, you should head to the project website and create an account. If you want to stay informed, please opt-in for email communication and we will reach out with any updates on the project. Once you have your account, login and head to the download section to get the pre-trained ExPose model. Create a folder named data and extract the downloaded zip there. You should now have a folder with the following structure:
data
├── checkpoints
├── all_means.pkl
├── conf.yaml
├── shape_mean.npy
├── SMPLX_to_J14.pkl
For more information on the data, please read the data documentation. If you don't already have an account on the SMPL-X website, please register to be able to download the model. Afterward, extract the SMPL-X model zip inside the data folder you created above.
data
├── models
│ ├── smplx
You are now ready to run the demo and inference scripts.
We provide a script to run ExPose directly on images. To get you started, we provide a sample folder, taken from pexels, which can be processed with the the following command:
python demo.py --image-folder samples \
--exp-cfg data/conf.yaml \
--show=False \
--output-folder OUTPUT_FOLDER \
--save-params [True/False] \
--save-vis [True/False] \
--save-mesh [True/False]
The script will use a Keypoint R-CNN from torchvision to detect people in the images and then produce a SMPL-X prediction for each using ExPose. You should see the following output for the sample image:
The inference script can be used to run inference on one of the supported datasets. For example, if you have a folder with images and OpenPose keypoints with the following structure:
folder
├── images
│ ├── img0001.jpg
│ └── img0002.jpg
│ └── img0002.jpg
├── keypoints
│ ├── img0001_keypoints.json
│ └── img0002_keypoints.json
│ └── img0002_keypoints.json
Then you can use the following command to run ExPose for each person:
python inference.py --exp-cfg data/conf.yaml \
--datasets openpose \
--exp-opts datasets.body.batch_size B datasets.body.openpose.data_folder folder \
--show=[True/False] \
--output-folder OUTPUT_FOLDER \
--save-params [True/False] \
--save-vis [True/False] \
--save-mesh [True/False]
You can select if you want to save the estimated parameters, meshes, and renderings by setting the corresponding flags.
If you find this Model & Software useful in your research we would kindly ask you to cite:
@inproceedings{ExPose:2020,
title= {Monocular Expressive Body Regression through Body-Driven Attention},
author= {Choutas, Vasileios and Pavlakos, Georgios and Bolkart, Timo and Tzionas, Dimitrios and Black, Michael J.},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2020},
url = {https://expose.is.tue.mpg.de}
}
@inproceedings{SMPL-X:2019,
title = {Expressive Body Capture: 3D Hands, Face, and Body from a Single Image},
author = {Pavlakos, Georgios and Choutas, Vasileios and Ghorbani, Nima and Bolkart, Timo and Osman, Ahmed A. A. and Tzionas, Dimitrios and Black, Michael J.},
booktitle = {Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR)},
year = {2019}
}
We thank Haiwen Feng for the FLAME fits, Nikos Kolotouros, Muhammed Kocabas and Nikos Athanasiou for helpful discussions, Sai Kumar Dwivedi and Lea Muller for proofreading, Mason Landry and Valerie Callaghan for video voiceovers.
The code of this repository was implemented by Vassilis Choutas.
For questions, please contact expose@tue.mpg.de.
For commercial licensing (and all related questions for business applications), please contact ps-licensing@tue.mpg.de.