Skip to content

Commit 7fee4ac

Browse files
Yuval NirkinYuval Nirkin
authored andcommitted
Small interface change
1 parent dc18a5a commit 7fee4ac

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
landmarks = ../data/shape_predictor_68_face_landmarks.dat
2-
model = ../data/BaselFaceModel_mod_wForehead_noEars.h5
3-
model2 = ../data/BaselFace.dat
4-
caffemodel = ../data/3dmm_cnn_resnet_101.caffemodel
5-
deploy = ../data/deploy_network.prototxt
6-
mean = ../data/mean.binaryproto
2+
model_3dmm_h5 = ../data/BaselFaceModel_mod_wForehead_noEars.h5
3+
model_3dmm_dat = ../data/BaselFace.dat
4+
reg_model = ../data/3dmm_cnn_resnet_101.caffemodel
5+
reg_deploy = ../data/3dmm_cnn_resnet_101_deploy.prototxt
6+
reg_mean = ../data/3dmm_cnn_resnet_101_mean.binaryproto
7+
seg_model = ../data/face_seg_fcn8s.caffemodel
8+
seg_deploy = ../data/face_seg_fcn8s_deploy.prototxt
9+
generic = 0
10+
expressions = 1
11+
gpu = 1
12+
gpu_id = 0

face_swap_batch/face_swap_batch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int main(int argc, char* argv[])
121121
("landmarks,l", value<string>(&landmarks_path)->required(), "path to landmarks model file")
122122
("model_3dmm_h5", value<string>(&model_3dmm_h5_path)->required(), "path to 3DMM file (.h5)")
123123
("model_3dmm_dat", value<string>(&model_3dmm_dat_path)->required(), "path to 3DMM file (.dat)")
124-
("reg_caffemodel,c", value<string>(&reg_model_path)->required(), "path to 3DMM regression CNN model file (.caffemodel)")
124+
("reg_model,r", value<string>(&reg_model_path)->required(), "path to 3DMM regression CNN model file (.caffemodel)")
125125
("reg_deploy,d", value<string>(&reg_deploy_path)->required(), "path to 3DMM regression CNN deploy file (.prototxt)")
126126
("reg_mean,m", value<string>(&reg_mean_path)->required(), "path to 3DMM regression CNN mean file (.binaryproto)")
127127
("seg_model", value<string>(&seg_model_path), "path to face segmentation CNN model file (.caffemodel)")
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
landmarks = ../data/shape_predictor_68_face_landmarks.dat
2-
model = ../data/BaselFaceModel_mod_wForehead_noEars.h5
3-
model2 = ../data/BaselFace.dat
4-
caffemodel = ../data/3dmm_cnn_resnet_101.caffemodel
5-
deploy = ../data/deploy_network.prototxt
6-
mean = ../data/mean.binaryproto
2+
model_3dmm_h5 = ../data/BaselFaceModel_mod_wForehead_noEars.h5
3+
model_3dmm_dat = ../data/BaselFace.dat
4+
reg_model = ../data/3dmm_cnn_resnet_101.caffemodel
5+
reg_deploy = ../data/3dmm_cnn_resnet_101_deploy.prototxt
6+
reg_mean = ../data/3dmm_cnn_resnet_101_mean.binaryproto
7+
seg_model = ../data/face_seg_fcn8s.caffemodel
8+
seg_deploy = ../data/face_seg_fcn8s_deploy.prototxt
9+
generic = 0
10+
expressions = 1
11+
gpu = 1
12+
gpu_id = 0

face_swap_image/face_swap_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
5757
("landmarks,l", value<string>(&landmarks_path)->required(), "path to landmarks model file")
5858
("model_3dmm_h5", value<string>(&model_3dmm_h5_path)->required(), "path to 3DMM file (.h5)")
5959
("model_3dmm_dat", value<string>(&model_3dmm_dat_path)->required(), "path to 3DMM file (.dat)")
60-
("reg_caffemodel,c", value<string>(&reg_model_path)->required(), "path to 3DMM regression CNN model file (.caffemodel)")
60+
("reg_model,r", value<string>(&reg_model_path)->required(), "path to 3DMM regression CNN model file (.caffemodel)")
6161
("reg_deploy,d", value<string>(&reg_deploy_path)->required(), "path to 3DMM regression CNN deploy file (.prototxt)")
6262
("reg_mean,m", value<string>(&reg_mean_path)->required(), "path to 3DMM regression CNN mean file (.binaryproto)")
6363
("seg_model", value<string>(&seg_model_path), "path to face segmentation CNN model file (.caffemodel)")

0 commit comments

Comments
 (0)