## Install & Data Preparation

Clone this repo, and install the dependencies.

```
cd DenseWarper
conda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch
pip install -r requirements.txt
```

The `DenseWarper` directory will be referred as {POSE_ROOT}.

### Compile external modules

```
cd ${POSE_ROOT}/lib/deform_conv
python setup.py develop
```

### Human3.6M
Please follow [CHUNYUWANG/H36M-Toolbox](https://github.com/CHUNYUWANG/H36M-Toolbox) to prepare the data.

> Note that we have **NO** permission to redistribute the Human3.6M data. Please do NOT ask us for a copy of Human3.6M dataset.

### MPI-INF-3DHP
Please prepare the data following a similar treatment as Human3.6M

## Evaluate
Make sure you are in the {POSE_ROOT} directory.

**Human3.6M**

```bash
python run/DenseWarper/DenseWarper_main.py --cfg experiments/h36m/h36m_4view.yaml --evaluate true
```

**MPI-INF-3DHP**

```bash
python run/DenseWarper/DenseWarper_3dhp_main.py --cfg experiments/3dhp/3dhp_4view.yaml --evaluate true
```

## Train
**Human3.6M**

```bash
python run/DenseWarper/DenseWarper_main.py --cfg experiments/h36m/h36m_4view.yaml --runMode train
```

**MPI-INF-3DHP**

```bash
python run/DenseWarper/DenseWarper_3dhp_main.py --cfg experiments/3dhp/3dhp_4view.yaml --runMode train
```