- Go to the SMPL project page and Sign In.
- Go to the section Downloads, and get the 1.0.0 SMPL version for Python2.7.
- Put the
basicModel_f_lbs_10_207_0_v1.0.0.pkl
andbasicmodel_m_lbs_10_207_0_v1.0.0.pkl
in the models/3D folder
- Download the gender neutral model from HMR project page
wget https://people.eecs.berkeley.edu/~kanazawa/cachedir/hmr/models.tar.gz && tar -xf models.tar.gz
- Put the
neutral_smpl_with_cocoplus_reg.pkl
in the models/3D folder
- Go to the SMPL project page and Sign In.
- Go to the section Downloads, and get the 1.0.0 SMPL version for Python2.7
- Unpack the downloaded file in this folder (smpl_webuser, etc)
- Edit the variable SMPL_FP on the
config.py
file with the location of the downloaded SMPL package
- Install Singularity
- Build the image:
sudo singularity build <image-name>.sif singularity/render.def
- Run the image with:
sudo singularity run -B <bind-dir> --nv <image-name>.sif
- Install Docker
- Build the image:
docker build -t <image-name> -f docker/Dockerfile ../
- Run the image:
docker run --runtime=nvidia <image-name>:latest
Requirements: Python 2.7
virtualenv venv_d
source venv_d/bin/activate
pip install -U pip
deactivate
source venv_d/bin/activate
pip install -r requirements.txt
sudo apt install python-tk
The Computational Geometry Algorithms Library
sudo apt install libeigen3-dev
sudo apt install libcgal-dev
SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages used to link some dependencies in this project.
sudo apt install swig
- Follow the procedures described on the
deformation
andnormal
folders.
- Create a virtual enviroment and install requirements for Generative Image Inpainting.
virtualenv venv_p
source venv_p/bin/activate
pip install -U pip
deactivate
source venv_p/bin/activate
pip install -r requirements_inpainting.txt
- Edit the file run_inpaint.sh with the correct environment path to activate it when needed.
After the install you can run the model deformation and rendering with the following command:
python vd-render.py ../data/box/ ../data/8-views/ ../data/out/ --model_type 2