Skip to content

Commit 6ba73b0

Browse files
committed
adding an example to write obj
2 parents 983a3b1 + af111f8 commit 6ba73b0

21 files changed

+104
-56
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
STAR/config.py

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,18 @@ Tensorflow
8888
```
8989
pip install tensorflow-gpu==2.3
9090
```
91-
5. Download the models from our website https://star.is.tue.mpg.de/ and update the model paths in the config.py file.
92-
6. Update the python path environment variable ($PATH_TO_REPO is the path to the STAR repository on your machine).
91+
5. Download the models from our website https://star.is.tue.mpg.de/
92+
93+
6. Update the model paths in the config.py file.
94+
```python
95+
path_male_star = '/mypath/male/model.npz'
96+
path_female_star = '/mypath/female/model.npz'
97+
path_neutral_star = '/mypath/neutral/model.npz'
98+
```
99+
100+
7. Install with pip
93101
```
94-
export PYTHONPATH=$PYTHONPATH:$PATH_TO_REPO
102+
pip install .
95103
```
96104

97105
### Usage
File renamed without changes.
File renamed without changes.

ch/star.py renamed to STAR/ch/star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import numpy as np
2424
import os
2525
from .verts import verts_decorated_quat
26-
from config import cfg
26+
from ..config import cfg
2727

2828
def STAR(gender='female',num_betas=10):
2929

File renamed without changes.
File renamed without changes.
File renamed without changes.
4.22 KB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)