Skip to content

Commit

Permalink
Add DECA model to the model collection
Browse files Browse the repository at this point in the history
  • Loading branch information
radekd91 committed Apr 20, 2022
1 parent 60bce70 commit ae4f1d4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
13 changes: 12 additions & 1 deletion gdl_apps/EMOCA/demos/download_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,21 @@ echo "Extracting EMOCA..."
unzip EMOCA.zip
cd ../../

echo "Downloading DECA..."
mkdir -p EMOCA/models
cd EMOCA/models
wget https://download.is.tue.mpg.de/emoca/assets/EMOCA/models/DECA.zip -O DECA.zip
echo "Extracting DECA..."
unzip DECA.zip
cd ../../


echo "Downloading DECA related assets"
wget https://download.is.tue.mpg.de/emoca/assets/DECA.zip -O DECA.zip
echo "Extracting DECA..."
wget https://download.is.tue.mpg.de/emoca/assets/FaceRecognition.zip -O FaceRecognition.zip
echo "Extracting DECA related assets..."
unzip DECA.zip
unzip FaceRecognition.zip

echo "Downloading FLAME related assets"
wget https://download.is.tue.mpg.de/emoca/assets/FLAME.zip -O FLAME.zip
Expand Down
8 changes: 7 additions & 1 deletion gdl_apps/EMOCA/utils/package_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,17 @@ def main():
if len(sys.argv) < 4:
# print("Usage: package_model.py <model_dir> <output_packaged_model_dir>")
# sys.exit()
# EMOA
input_dir = "/ps/project/EmotionalFacialAnimation/emoca/face_reconstruction_models/new_affectnet_split/final_models" \
"/2021_11_13_03-43-40_4753326650554236352_ExpDECA_Affec_clone_NoRing_EmoC_F2_DeSeggt_BlackC_Aug_early"
output_dir = "/ps/project/EmotionalFacialAnimation/emoca/face_reconstruction_models/new_affectnet_split/final_models/packaged2/EMOCA"

asset_dir = "/home/rdanecek/Workspace/Repos/gdl/assets2/"
# DECA
# input_dir = "/is/cluster/work/rdanecek/emoca/finetune_deca/2021_11_15_17-20-34_-4851631063966731039_Orig_DECA2"
# output_dir = "/ps/project/EmotionalFacialAnimation/emoca/face_reconstruction_models/new_affectnet_split/final_models/packaged2/DECA"


asset_dir = "/home/rdanecek/Workspace/Repos/gdl/assets/"


# input_dir = sys.argv[1]
Expand Down

0 comments on commit ae4f1d4

Please sign in to comment.