root commited on
Commit
d1a59ac
·
1 Parent(s): 56d8604

store config files with checkpoints

Browse files
Files changed (2) hide show
  1. 256/vox-256.yaml +78 -0
  2. 768/vox-768-finetune.yaml +82 -0
256/vox-256.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset_params:
2
+ root_dir: vox_256
3
+ frame_shape: null
4
+ id_sampling: True
5
+ augmentation_params:
6
+ flip_param:
7
+ horizontal_flip: True
8
+ time_flip: True
9
+ jitter_param:
10
+ brightness: 0.1
11
+ contrast: 0.1
12
+ saturation: 0.1
13
+ hue: 0.1
14
+
15
+
16
+ model_params:
17
+ common_params:
18
+ num_tps: 10
19
+ num_channels: 3
20
+ bg: True
21
+ multi_mask: True
22
+ generator_params:
23
+ block_expansion: 64
24
+ max_features: 512
25
+ num_down_blocks: 3
26
+ dense_motion_params:
27
+ block_expansion: 64
28
+ max_features: 1024
29
+ num_blocks: 5
30
+ scale_factor: 0.25
31
+ avd_network_params:
32
+ id_bottle_size: 128
33
+ pose_bottle_size: 128
34
+
35
+
36
+ train_params:
37
+ num_epochs: 100
38
+ num_repeats: 75
39
+ epoch_milestones: [70, 90]
40
+ lr_generator: 2.0e-4
41
+ batch_size: 28
42
+ scales: [1, 0.5, 0.25, 0.125]
43
+ dataloader_workers: 12
44
+ checkpoint_freq: 50
45
+ dropout_epoch: 35
46
+ dropout_maxp: 0.3
47
+ dropout_startp: 0.1
48
+ dropout_inc_epoch: 10
49
+ bg_start: 10
50
+ transform_params:
51
+ sigma_affine: 0.05
52
+ sigma_tps: 0.005
53
+ points_tps: 5
54
+ loss_weights:
55
+ perceptual: [10, 10, 10, 10, 10]
56
+ equivariance_value: 10
57
+ warp_loss: 10
58
+ bg: 10
59
+ optimizer: 'adam'
60
+ optimizer_params:
61
+ betas: [ 0.5, 0.999 ]
62
+ weight_decay: 1e-4
63
+
64
+ train_avd_params:
65
+ num_epochs: 100
66
+ num_repeats: 1
67
+ batch_size: 8
68
+ dataloader_workers: 6
69
+ checkpoint_freq: 1
70
+ epoch_milestones: [10, 20]
71
+ lr: 1.0e-3
72
+ lambda_shift: 1
73
+ random_scale: 0.25
74
+
75
+ visualizer_params:
76
+ kp_size: 5
77
+ draw_border: True
78
+ colormap: 'gist_rainbow'
768/vox-768-finetune.yaml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use this file to finetune from a pretrained 256x256 model
2
+ dataset_params:
3
+ root_dir: ./video-preprocessing/vox2-768
4
+ frame_shape: 768,768,3
5
+ id_sampling: True
6
+ augmentation_params:
7
+ flip_param:
8
+ horizontal_flip: True
9
+ time_flip: True
10
+ jitter_param:
11
+ brightness: 0.1
12
+ contrast: 0.1
13
+ saturation: 0.1
14
+ hue: 0.1
15
+
16
+
17
+ model_params:
18
+ common_params:
19
+ num_tps: 10
20
+ num_channels: 3
21
+ bg: True
22
+ multi_mask: True
23
+ generator_params:
24
+ block_expansion: 64
25
+ max_features: 512
26
+ num_down_blocks: 3
27
+ dense_motion_params:
28
+ block_expansion: 64
29
+ max_features: 1024
30
+ num_blocks: 5
31
+ scale_factor: 0.25
32
+ avd_network_params:
33
+ id_bottle_size: 128
34
+ pose_bottle_size: 128
35
+
36
+
37
+ train_params:
38
+ visualize_model: False
39
+ num_epochs: 80
40
+ num_repeats: 10
41
+ # Higher LR seems to bring problems when finetuning
42
+ lr_generator: 3.0e-5
43
+ batch_size: 2
44
+ scales: [1, 0.5, 0.25, 0.125, 0.0625]
45
+ dataloader_workers: 8
46
+ checkpoint_freq: 2
47
+ dropout_epoch: 0
48
+ dropout_maxp: 0.3
49
+ dropout_startp: 0.1
50
+ dropout_inc_epoch: 10
51
+ bg_start: 81
52
+ freeze_kp_detector: True
53
+ freeze_bg_predictor: True
54
+ transform_params:
55
+ sigma_affine: 0.05
56
+ sigma_tps: 0.005
57
+ points_tps: 5
58
+ loss_weights:
59
+ perceptual: [10, 10, 10, 10, 10]
60
+ equivariance_value: 10
61
+ warp_loss: 10
62
+ bg: 10
63
+ optimizer: 'adamw'
64
+ optimizer_params:
65
+ betas: [ 0.9, 0.999 ]
66
+ weight_decay: 0.1
67
+
68
+ train_avd_params:
69
+ num_epochs: 200
70
+ num_repeats: 1
71
+ batch_size: 1
72
+ dataloader_workers: 6
73
+ checkpoint_freq: 1
74
+ epoch_milestones: [140, 180]
75
+ lr: 1.0e-3
76
+ lambda_shift: 1
77
+ random_scale: 0.25
78
+
79
+ visualizer_params:
80
+ kp_size: 5
81
+ draw_border: True
82
+ colormap: 'gist_rainbow'