Skip to content

Commit a8f8dc8

Browse files
Update README.md
1 parent 161440c commit a8f8dc8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,37 +42,37 @@ expression and only using the shape as a template for other methods like [VOCA (
4242

4343
## Demo
4444

45-
RingNet requires a loose crop of the face in the image.
45+
RingNet requires a loose crop of the face in the image. We provide two sample images in the **input_images** folder which are taken from [CelebA Dataset](http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html).
4646

4747
#### Output predicted mesh rendering
4848

4949
Run the following command from the terminal to check the predictions of RingNet
5050
```
51-
python -m demo --img_path *.jpg --out_folder ./RingNet_output
51+
python -m demo --img_path ./input_images/000001.jpg --out_folder ./RingNet_output
5252
```
5353
Provide the image path and it will output the predictions in **./RingNet_output/images/**.
5454

5555
#### Output predicted mesh
5656

5757
If you want the output mesh then run the following command
5858
```
59-
python -m demo --img_path *.jpg --out_folder ./RingNet_output --save_obj_file=True
59+
python -m demo --img_path ./input_images/000001.jpg --out_folder ./RingNet_output --save_obj_file=True
6060
```
6161
It will save a *.obj file of the predicted mesh in **./RingNet_output/mesh/**.
6262

6363
#### Output FLAME and camera parameters
6464

6565
If you want the predicted FLAME and camera parameters then run the following command
6666
```
67-
python -m demo --img_path *.jpg --out_folder ./RingNet_output --save_obj_file=True --save_flame_parameters=True
67+
python -m demo --img_path ./input_images/000001.jpg --out_folder ./RingNet_output --save_obj_file=True --save_flame_parameters=True
6868
```
6969
It will save a *.npy file of the predicted flame and camera parameters and in **./RingNet_output/params/**.
7070

7171
#### Generate VOCA templates
7272

7373
If you want to play with the 3D mesh, i.e. neutralize pose and expression of the 3D mesh to use it as a template in [VOCA (Voice Operated Character Animation)](https://github.com/TimoBolkart/voca), run the following command
7474
```
75-
python -m demo --img_path *.jpg --out_folder ./RingNet_output --save_obj_file=True --save_flame_parameters=True --neutralize_expression=True
75+
python -m demo --img_path ./input_images/000013.jpg --out_folder ./RingNet_output --save_obj_file=True --save_flame_parameters=True --neutralize_expression=True
7676
```
7777

7878
## License

0 commit comments

Comments
 (0)