Skip to content

Commit

Permalink
Update REAMDE
Browse files Browse the repository at this point in the history
  • Loading branch information
radekd91 committed Feb 11, 2023
1 parent 4631e74 commit 5845c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Note: EMOCA was developed with Pytorch 1.12.1 and Pytorch3d 0.6.2 running on CUD

0) Activate the environment:
```bash
conda activate work36_cu11
conda activate work38_cu11
```

1) For running EMOCA examples, go to [EMOCA](gdl_apps/EMOCA)
Expand Down
4 changes: 2 additions & 2 deletions gdl_apps/EMOCA/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ conda activate work38
### Single Image Reconstruction
If you want to run EMOCA on images, run the following
```python
python demos/test_emoca_on_images.py --input_folder <path_to_images> --output_folder <set_your_output_path> --model_name EMOCA
python demos/test_emoca_on_images.py --input_folder <path_to_images> --output_folder <set_your_output_path> --model_name EMOCA_v2_lr_mse_20
```
The script will detect faces in every image in the folder output the results that you specify with `--save_images`, `--save_codes`, `--save_mesh` to the output folder.

Expand All @@ -77,7 +77,7 @@ See `demos/test_emoca_on_images.py` for further details.
### Video Reconstruction
If you want to be able to create a video of the reconstruction (like the teaser above), just pick your favourite emotional video and run the following:
```python
python demos/test_emoca_on_video.py --input_video <path_to_your_video> --output_folder <set_your_output_path> --model_name EMOCA
python demos/test_emoca_on_video.py --input_video <path_to_your_video> --output_folder <set_your_output_path> --model_name EMOCA_v2_lr_mse_20
```
The script will extract the frames from the video, run face detection on it to extract cropped out faces. Then EMOCA will be run, the reconstruction renderings saved and finally a reconstruction video sequence created. Processing long videos may take some time.

Expand Down

0 comments on commit 5845c79

Please sign in to comment.