add ffaceformer code
This commit is contained in:
1 parent
5fcb839ad4
commit
b6567d5902
17 files changed
+2013
-114
No files matched your search
@@ -0,0 +1,54 @@
|
||||
GPUS: '1'
|
||||
WORKERS: 4
|
||||
OUTPUT_DIR: 'experiments/audio2motion'
|
||||
|
||||
DEBUG: False
|
||||
verbose: False
|
||||
isTrain: False
|
||||
|
||||
# RENDER:
|
||||
# rasterizer_type:
|
||||
|
||||
|
||||
MODEL:
|
||||
name: 'faceformer'
|
||||
name_netG: "faceformer"
|
||||
|
||||
dim_motion: 53 # 68*2
|
||||
dim_speech: 1024
|
||||
num_vertices: 5023
|
||||
dim_hidden: 128
|
||||
|
||||
pretrain: True
|
||||
# 1h,
|
||||
path_checkpoint: "experiments/audio2motion/train_audio2motion_CN_actor6_20220715/20220715-18H14M10S"
|
||||
load_epoch: 40
|
||||
|
||||
DATASET:
|
||||
fps: 50
|
||||
sr: 16000
|
||||
name_train: "motion_live"
|
||||
name_valid: "motion_eval"
|
||||
|
||||
|
||||
# root: './data/Actor2/Actor2-raw-7h'
|
||||
# root: './data/Actor7/Actor7-raw-processing-2h'
|
||||
# root: "./data/Actor7/Actor7-raw-processing-2h"
|
||||
root: './data/Actor6/Actor6-raw-bg-30m-processing2-2h'
|
||||
path_mean_dict: './data/Actor6/mean_deca_coeff_Actor6_processing2.npy'
|
||||
|
||||
|
||||
|
||||
filter: 'savgol'
|
||||
nwind_second_train: 3
|
||||
nwind_second_valid: 3
|
||||
nwind_second_test: 15
|
||||
|
||||
|
||||
TRAIN:
|
||||
apply_testing: True
|
||||
apply_validation: True
|
||||
|
||||
|
||||
LOSS:
|
||||
names: ["rec_exp","rec_pos", "rec_geo", "vel_exp","vel_pos", "vel_geo", "all"]
|
||||
@@ -5,6 +5,9 @@ OUTPUT_DIR: 'experiments/audio2motion'
|
||||
DEBUG: False
|
||||
verbose: False
|
||||
|
||||
RENDER:
|
||||
rasterizer_type: standard
|
||||
|
||||
FREQ:
|
||||
epoch_save: 5
|
||||
epoch_valid: 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
GPUS: '3'
|
||||
GPUS: '1'
|
||||
WORKERS: 8
|
||||
OUTPUT_DIR: 'experiments/audio2motion'
|
||||
|
||||
@@ -9,24 +9,29 @@ RENDER:
|
||||
rasterizer_type: standard
|
||||
|
||||
FREQ:
|
||||
epoch_save: 5
|
||||
epoch_save: 2
|
||||
epoch_valid: 1
|
||||
batch_print: 20
|
||||
epoch_test: 5
|
||||
epoch_test: 5000
|
||||
|
||||
MODEL:
|
||||
name: 'faceformer'
|
||||
name_netG: "faceformer"
|
||||
name: 'faceformer2'
|
||||
name_netG: "faceformer2"
|
||||
|
||||
dim_motion: 53 # 68*2
|
||||
dim_speech: 1024
|
||||
num_vertices: 5023
|
||||
dim_hidden: 128
|
||||
|
||||
# Transformer
|
||||
n_head: 4
|
||||
n_layers: 4
|
||||
d_inner: 512
|
||||
d_model: 128
|
||||
max_position: 1000 # 50fps * 20s = 1000
|
||||
|
||||
pretrain: False
|
||||
path_checkpoint: "experiments/audio2motion/train_audio2motion_CN_20220525/20220602-11H29M18S"
|
||||
load_epoch: 15
|
||||
|
||||
path_checkpoint: "experiments/audio2motion/train_audio2motion_CN_actor6_20220715/20220715-10H58M15S"
|
||||
load_epoch: 8
|
||||
|
||||
|
||||
DATASET:
|
||||
@@ -34,10 +39,13 @@ DATASET:
|
||||
sr: 16000
|
||||
name_train: "motion_live"
|
||||
name_valid: "motion_eval"
|
||||
num_train_items: 5000
|
||||
|
||||
flip: False
|
||||
shifting_speed: True
|
||||
|
||||
root: './data/Actor6/Actor6-raw-bg-30m-processing2-2h'
|
||||
# root: './data/Actor6/Actor6-raw-bg-30m-processing2-2h'
|
||||
root: './data/Actor6/Actor6-raw-processing2-2h'
|
||||
path_mean_dict: './data/Actor6/mean_deca_coeff_Actor6_processing2.npy'
|
||||
|
||||
filter: 'savgol'
|
||||
@@ -47,17 +55,16 @@ DATASET:
|
||||
nwind_second_valid: 3
|
||||
nwind_second_test: 15
|
||||
|
||||
|
||||
TEST:
|
||||
batch_size: 2
|
||||
|
||||
|
||||
TRAIN:
|
||||
lr: 0.01 #0.0001
|
||||
batch_size: 64
|
||||
lr: 0.001 # 0.0001
|
||||
batch_size: 20
|
||||
shuffle: True
|
||||
|
||||
apply_testing: True
|
||||
apply_testing: False
|
||||
apply_validation: True
|
||||
apply_lr_scheduler: True
|
||||
apply_update_parameters: True
|
||||
@@ -70,11 +77,11 @@ TRAIN:
|
||||
|
||||
nesterov: True
|
||||
lr_policy: 'plateau'
|
||||
|
||||
# lr_step_gamma: 0.5
|
||||
# lr_policy: 'multistep'
|
||||
# lr_step_gamma: 0.5
|
||||
# lr_milestones: [10, 50, 100]
|
||||
|
||||
|
||||
resume: False
|
||||
reset_lr: True
|
||||
resume_suffix: "20220524-21H54M38S"
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
GPUS: '6'
|
||||
WORKERS: 8
|
||||
OUTPUT_DIR: 'experiments/audio2motion'
|
||||
|
||||
DEBUG: False
|
||||
verbose: False
|
||||
|
||||
RENDER:
|
||||
rasterizer_type: standard
|
||||
|
||||
FREQ:
|
||||
epoch_save: 2
|
||||
epoch_valid: 1
|
||||
batch_print: 20
|
||||
epoch_test: 5000
|
||||
|
||||
MODEL:
|
||||
name: 'faceformer2'
|
||||
name_netG: "faceformer2"
|
||||
|
||||
dim_motion: 53 # 68*2
|
||||
dim_speech: 1024
|
||||
num_vertices: 5023
|
||||
|
||||
# Transformer
|
||||
n_head: 4
|
||||
n_layers: 4
|
||||
d_inner: 512
|
||||
d_model: 128
|
||||
max_position: 1000 # 50fps * 20s = 1000
|
||||
|
||||
pretrain: False
|
||||
path_checkpoint: "experiments/audio2motion/train_audio2motion_CN_actor6_20220715/20220715-10H58M15S"
|
||||
load_epoch: 8
|
||||
|
||||
|
||||
DATASET:
|
||||
fps: 50
|
||||
sr: 16000
|
||||
name_train: "motion_live"
|
||||
name_valid: "motion_eval"
|
||||
num_train_items: 5000
|
||||
|
||||
flip: False
|
||||
shifting_speed: True
|
||||
|
||||
root: './data/Actor7/Actor7-raw-processing-2h'
|
||||
path_mean_dict: './data/Actor7/mean_deca_coeff_Actor7_processing.npy'
|
||||
|
||||
filter: 'savgol'
|
||||
speech_extractor: 'wav2vec'
|
||||
|
||||
nwind_second_train: 3
|
||||
nwind_second_valid: 3
|
||||
nwind_second_test: 15
|
||||
|
||||
TEST:
|
||||
batch_size: 2
|
||||
|
||||
|
||||
TRAIN:
|
||||
lr: 0.001 # 0.0001
|
||||
batch_size: 16
|
||||
shuffle: True
|
||||
|
||||
apply_testing: False
|
||||
apply_validation: True
|
||||
apply_lr_scheduler: True
|
||||
apply_update_parameters: True
|
||||
|
||||
optimizer: 'Adam'
|
||||
momentum: 0.9
|
||||
beta1: 0.5
|
||||
beta2: 0.999
|
||||
weight_decay: 0.0001
|
||||
|
||||
nesterov: True
|
||||
lr_policy: 'plateau'
|
||||
# lr_policy: 'multistep'
|
||||
# lr_step_gamma: 0.5
|
||||
# lr_milestones: [10, 50, 100]
|
||||
|
||||
|
||||
resume: False
|
||||
reset_lr: True
|
||||
resume_suffix: "20220524-21H54M38S"
|
||||
epoch_begin: 0 # 5000 # 2300 # 2600
|
||||
epoch_end: 300
|
||||
|
||||
|
||||
LOSS:
|
||||
names: ["rec_exp","rec_pos", "rec_geo", "vel_exp","vel_pos", "vel_geo", "all"]
|
||||
lambda_rec_exp: 1
|
||||
lambda_rec_pos: 1
|
||||
lambda_rec_geo: 10
|
||||
lambda_vel_exp: 10
|
||||
lambda_vel_pos: 10
|
||||
lambda_vel_geo: 100
|
||||
|
||||
Reference in new issue
Block a user