-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.cfg
22 lines (22 loc) · 1.86 KB
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
landmarks = /root/face_swap/models/shape_predictor_68_face_landmarks.dat # path to landmarks model file
model_3dmm_h5 = /root/face_swap/models/BaselFaceModel_mod_wForehead_noEars.h5 # path to 3DMM file (.h5)
model_3dmm_dat = /root/face_swap/models/BaselFace.dat # path to 3DMM file (.dat)
reg_model = /root/face_swap/models/3dmm_cnn_resnet_101.caffemodel # path to 3DMM regression CNN
reg_deploy = /root/face_swap/models/3dmm_cnn_resnet_101_deploy.prototxt # path to 3DMM regression CNN deploy
reg_mean = /root/face_swap/models/3dmm_cnn_resnet_101_mean.binaryproto # path to 3DMM regression CNN mean file
seg_model = /root/face_swap/models/face_seg_fcn8s_300.caffemodel # path to face segmentation CNN model )
seg_deploy = /root/face_swap/models/face_seg_fcn8s_300_deploy.prototxt # path to face segmentation CNN deploy
generic = 0 # use generic mode (disable shape regression)
expressions = 1 # use expression regression
gpu = 0 # toggle GPU / CPU
gpu_id = 0 # GPU's device id
reverse = 0 # reverse swap direction
cache = 1 # cache intermediate face data
source_seg = 1 # toggle sources segmentation
target_seg = 1 # toggle targets segmentation
source_max_res = 500 # sources max resolution
target_max_res = 500 # targets max resolution
verbose = 0 # 1 += overlay image, 2 += debug image
sources= /root/face_swap/sources # list of source images or source directory
targets = /root/face_swap/targets # list of target images or target directory
output = /root/face_swap/output