Spaces:
Paused
Paused
Update configs/tracking.yaml
Browse files- configs/tracking.yaml +43 -39
configs/tracking.yaml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
config_name : test
|
| 2 |
|
| 3 |
-
batch_size : 16
|
| 4 |
num_views : 1
|
| 5 |
-
size : 256
|
| 6 |
-
image_size : [256, 256] #
|
| 7 |
|
| 8 |
data_folder : none
|
| 9 |
p3dmm_folder : none
|
|
@@ -16,37 +16,39 @@ start_frame : 0
|
|
| 16 |
num_shape_params : 300
|
| 17 |
num_exp_params : 100
|
| 18 |
tex_params : 140
|
| 19 |
-
iters :
|
|
|
|
| 20 |
|
| 21 |
-
no_lm : False
|
| 22 |
-
use_eyebrows : False
|
| 23 |
-
use_mouth_lmk : True
|
| 24 |
-
no_pho : True
|
| 25 |
-
no_sh : True
|
| 26 |
-
disable_edge : False
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
flame2023 : False
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
normal_super_can : 0.0
|
| 36 |
-
sil_super : 500
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
|
|
|
| 39 |
uv_loss:
|
| 40 |
stricter_uv_mask : False
|
| 41 |
-
delta_uv : 0.00005 #0.00005 #0.0005 #0.00005
|
| 42 |
-
delta_uv_fine : 0.00005 #0.00005 #0.0005 #0.00005
|
| 43 |
-
dist_uv : 20 #20 #15
|
| 44 |
-
dist_uv_fine : 20 #35 #20 #15
|
| 45 |
|
| 46 |
|
| 47 |
occ_filter : True
|
| 48 |
|
| 49 |
-
|
| 50 |
lr_id : 0.002 #0.003 #0.006 #0.003
|
| 51 |
lr_exp : 0.005 # 0.005 #0.01 #0.01 #0.005
|
| 52 |
lr_jaw : 0.005 #0.003
|
|
@@ -56,31 +58,33 @@ lr_t : 0.001 #0.002 #0.001 #0.0005 #0.0005
|
|
| 56 |
lr_f : 0.1 #0.05 #0.01 #0.001
|
| 57 |
lr_pp : 0.00005
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
| 67 |
|
| 68 |
-
include_neck : True
|
| 69 |
|
|
|
|
| 70 |
w_shape : 0.2
|
| 71 |
w_shape_general : 0.05
|
| 72 |
w_exp : 0.05
|
| 73 |
w_jaw : 0.01
|
| 74 |
w_neck : 0.1
|
| 75 |
|
| 76 |
-
n_fine : False
|
| 77 |
-
low_overhead : False
|
| 78 |
|
| 79 |
-
delta_n : 0.33
|
| 80 |
|
| 81 |
-
global_camera : True
|
| 82 |
-
global_iters : 10 # reducing it to 10 for Huggingface Space 5000
|
| 83 |
|
|
|
|
| 84 |
reg_smooth_exp : 50.0
|
| 85 |
reg_smooth_eyes : 10.0
|
| 86 |
reg_smooth_eyelids : 2.0
|
|
@@ -98,13 +102,13 @@ normal_l2 : False
|
|
| 98 |
smooth : True
|
| 99 |
normal_mask_ksize : 13
|
| 100 |
|
| 101 |
-
early_stopping_delta : 5.0
|
| 102 |
|
| 103 |
early_exit : False
|
| 104 |
|
| 105 |
-
draw_uv_corresp :
|
| 106 |
|
| 107 |
save_landmarks : False
|
| 108 |
|
| 109 |
save_meshes : True
|
| 110 |
-
delete_preprocessing :
|
|
|
|
| 1 |
config_name : test
|
| 2 |
|
| 3 |
+
batch_size : 16 # batch size used during joint optimization stage, when your video has less frames than batch_size the script will crash currently
|
| 4 |
num_views : 1
|
| 5 |
+
size : 256 # defines the rendering resolution, you could also try 512
|
| 6 |
+
image_size : [256, 256] # make sure to update this accordingly, sorry for the redundancy
|
| 7 |
|
| 8 |
data_folder : none
|
| 9 |
p3dmm_folder : none
|
|
|
|
| 16 |
num_shape_params : 300
|
| 17 |
num_exp_params : 100
|
| 18 |
tex_params : 140
|
| 19 |
+
iters : 800 #400 # Number if iterations in first stage of tracking. For single-image fitting, you might want to choose a larger value, e.g. 500 or 800
|
| 20 |
+
global_iters : 5000 # Number f iterations for second stage of tracking (video only)
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
no_lm : False # disable all landmark losses (only eye and mouth landmarks are used)
|
| 24 |
+
use_eyebrows : False # not sure if used
|
| 25 |
+
use_mouth_lmk : True # toggle use of mouth landmarks
|
| 26 |
+
no_pho : True # unused
|
| 27 |
+
no_sh : True # unused
|
| 28 |
+
disable_edge : False # unused
|
| 29 |
|
| 30 |
+
keyframes : [] # unused
|
|
|
|
| 31 |
|
| 32 |
+
ignore_mica : False # unused
|
| 33 |
+
flame2023 : False # unused
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
uv_map_super : 2000.0 #500.0 #100 #2001.0 #5000.0 #2000.0 # weight for UV-loss
|
| 36 |
+
normal_super : 1000.0 #202.0 # weight for normal loss
|
| 37 |
+
normal_super_can : 0.0 # unused
|
| 38 |
+
sil_super : 500 # weight for silhouette loss
|
| 39 |
|
| 40 |
+
# parameters for UV loss
|
| 41 |
uv_loss:
|
| 42 |
stricter_uv_mask : False
|
| 43 |
+
delta_uv : 0.00005 #0.00005 #0.0005 #0.00005 # threshold that determines if correspondence is valid or not, ref. to eq.7 of the paper
|
| 44 |
+
delta_uv_fine : 0.00005 #0.00005 #0.0005 #0.00005 # unused
|
| 45 |
+
dist_uv : 20 #20 #15 # correspondences with a higher distance than this are considered outliers
|
| 46 |
+
dist_uv_fine : 20 #35 #20 #15 # unused
|
| 47 |
|
| 48 |
|
| 49 |
occ_filter : True
|
| 50 |
|
| 51 |
+
# learning rates for different optimizable parameters
|
| 52 |
lr_id : 0.002 #0.003 #0.006 #0.003
|
| 53 |
lr_exp : 0.005 # 0.005 #0.01 #0.01 #0.005
|
| 54 |
lr_jaw : 0.005 #0.003
|
|
|
|
| 58 |
lr_f : 0.1 #0.05 #0.01 #0.001
|
| 59 |
lr_pp : 0.00005
|
| 60 |
|
| 61 |
+
# some loss weights
|
| 62 |
+
w_pho : 150 # unused
|
| 63 |
+
w_lmks : 3000 # weight for eye landmarks
|
| 64 |
+
w_lmks_mouth : 1000 # weight for mouth landmarks
|
| 65 |
+
w_lmks_68 : 1000 # unused
|
| 66 |
+
w_lmks_lid : 1000 # weightr for eye closure loss
|
| 67 |
+
w_lmks_iris : 1000 # weight for iris/pupil loss, responsible for viewing direction
|
| 68 |
+
w_lmks_oval : 2000 # unused
|
| 69 |
+
w_lmks_star : 0 # unused
|
| 70 |
|
| 71 |
+
include_neck : True # whether to optimize for neck or not
|
| 72 |
|
| 73 |
+
# regualization weights for different optimizable parameters
|
| 74 |
w_shape : 0.2
|
| 75 |
w_shape_general : 0.05
|
| 76 |
w_exp : 0.05
|
| 77 |
w_jaw : 0.01
|
| 78 |
w_neck : 0.1
|
| 79 |
|
| 80 |
+
n_fine : False # unused
|
| 81 |
+
low_overhead : False # unused
|
| 82 |
|
| 83 |
+
delta_n : 0.33 # threshold that determines above which loss pixels in the normal loss map are considered outliers
|
| 84 |
|
| 85 |
+
global_camera : True
|
|
|
|
| 86 |
|
| 87 |
+
# smoothness loss weights
|
| 88 |
reg_smooth_exp : 50.0
|
| 89 |
reg_smooth_eyes : 10.0
|
| 90 |
reg_smooth_eyelids : 2.0
|
|
|
|
| 102 |
smooth : True
|
| 103 |
normal_mask_ksize : 13
|
| 104 |
|
| 105 |
+
early_stopping_delta : 5.0 # a higher value will make stage 1 tracking faster but less accurate
|
| 106 |
|
| 107 |
early_exit : False
|
| 108 |
|
| 109 |
+
draw_uv_corresp : True # add additional visualizations to result.mp4, e.g. uv-loss and normal loss map
|
| 110 |
|
| 111 |
save_landmarks : False
|
| 112 |
|
| 113 |
save_meshes : True
|
| 114 |
+
delete_preprocessing : False
|