forked from abdallahdib/NextFace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
optimConfigShadows.ini
56 lines (44 loc) · 3.27 KB
/
optimConfigShadows.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#compute device
device = 'cuda' #'cuda' or 'cpu'
#tracker
tracker = 'mediapipe' # 'mediapipe' or 'fan
#morphable model
path = './baselMorphableModel'
textureResolution = 512
trimPca=False #if True keep only a subset of the pca basis (eigen vectors)
#spherical harmonics
bands = 9
envMapRes = 64
#image
maxResolution = 256 #maximum allowed resolution (if input image is larger it will be automatically scaled down). this limitation is here to allow the library to run on hardware with limited gpu memory and also to maintain a raisonable optimization speed on non rtx gpus. this limit can be increased on decent gpus/cpus
#camera
camFocalLength = 3000.0 #focal length in pixels (= f_{mm} * imageWidth / sensorWidth)
optimizeFocalLength = True #if True the initial focal length is estimated otherwise it remains constant
#optimization
iterStep1 = 2000 # number of iterations for the coarse optim
iterStep2 = 400 #number of iteration for the first dense optim (based on statistical priors)
iterStep3 = 100 #number of iterations for refining the statistical albedo priors
weightLandmarksLossStep2 = 0.001 #landmarks weight during step2
weightLandmarksLossStep3 = 0.001 # landmarks weight during step3
weightShapeReg = 0.001 #weight for shape regularization
weightExpressionReg = 0.001 # weight for expression regularization
weightAlbedoReg = 0.001 # weight for albedo regularization
#regularizers for diffuse texture in step 3
weightDiffuseSymmetryReg = 1200. #symmetry regularizer weight for diffuse texture (at step 3). u may want to increase it in case of harsh shadows
weightDiffuseConsistencyReg = 100. # consistency regularizer weight for diffuse texture (at step 3). u may want to increase it in case of harsh shadows
weightDiffuseSmoothnessReg = 0.001 # smoothness regularizer weight for diffuse texture (at step 3)
#regularizers for specular texture in step 3
weightSpecularSymmetryReg = 300. # symmetry regularizer weight for specular texture (at step 3). u may want to increase it in case of harsh shadows
weightSpecularConsistencyReg = 2. # consistency regularizer weight for specular texture (at step 3). u may want to increase it in case of harsh shadows
weightSpecularSmoothnessReg = 0.001 # smoothness regularizer weight for specular texture (at step 3)
#regularizers for roughness texture in step 3
weightRoughnessSymmetryReg = 300. # symmetry regularizer weight for roughness texture (at step 3). u may want to increase it in case of harsh shadows
weightRoughnessConsistencyReg = 0. # consistency regularizer weight for roughness texture (at step 3). u may want to increase it in case of harsh shadows
weightRoughnessSmoothnessReg = 0.002 # smoothness regularizer weight for roughness texture (at step 3)
#debug
debugFrequency = 30 #display frequency during optimization (saved to debug directory) (0: no debug display)
saveIntermediateStage = False #if True the output of stage 1 and 2 are saved. stage 3 is always saved which is the output of the optim
verbose = False #display loss on terminal if true
#ray tracing
rtSamples = 4000 #the number of ray tracer samples to render the final output (higher is better but slower) best value is 20000 but on my old gpu it takes too much time to render. if u have nvidia rtx u are fine enjoy :)
rtTrainingSamples = 8#number of ray tracing to use during training