File size: 1,269 Bytes
3bbb319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Getting started

Start by cloning the repo:
```bash
git clone https://github.com/YadiraF/PIXIE
cd PIXIE
```  

#### Requirements
  * Python 3.7 (numpy, skimage, scipy, opencv, kornia)  
  * PyTorch >= 1.6 
    You can run 
    ```bash
    pip install -r requirements.txt
    ```
      Or create a separate virtual environment by running:  
    ```bash
    bash install_conda.sh
    ```
    or 
    ```bash
    bash install_pip.sh
    ```
    For visualization, we use our [rasterizer](https://github.com/YadiraF/PIXIE/tree/master/pixielib/utils/rasterizer) that uses pytorch JIT Compiling Extensions. 
    If there occurs a compiling error, you can install [pytorch3d](https://github.com/facebookresearch/pytorch3d/blob/master/INSTALL.md) instead and set --rasterizer_type=pytorch3d when running the demos. 

#### Pre-trained model and data
  * Register [SMPL-X Model](http://smpl-x.is.tue.mpg.de/)
  * Register [PIXIE data](http://pixie.is.tue.mpg.de/)
  ```bash
  bash fetch_model.sh # username & password are required
  ```
  * (Optional) Follow the instructions for the [Albedo model](https://github.com/TimoBolkart/BFM_to_FLAME) to get 'FLAME_albedo_from_BFM.npz'. Put it into `./data`  
  * (Optional) Clone and prepare [DECA](https://github.com/YadiraF/DECA)