add eval.py with metrics

This commit is contained in:
Sen Liang committed 2022-04-01 11:30:24 +08:00
1 parent 11277e478f
commit baed1fffe3
53 files changed
+5844 -378

No files matched your search

@@ -1,4 +1,4 @@
GPUS: '9'
GPUS: '5'
WORKERS: 4
OUTPUT_DIR: 'experiments/audio2mesh'
@@ -6,10 +6,16 @@ DEBUG: False
verbose: False
isTrain: False
FREQ:
epoch_save: 5
epoch_valid: 1
batch_print: 20
epoch_test: 5
MODEL:
# name: 'audio2mesh'
name: 'audio2mesh_specific'
name: 'audio2mesh2'
name_netG: "audio2mesh"
dim_motion: 53 # 68*2
@@ -17,17 +23,50 @@ MODEL:
num_vertices: 5023
pretrain: True
path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220315-16H55M15S"
load_epoch: 35
# path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220315-16H55M15S"
# load_epoch: 35
# 2h, 1:10, epoch 105
path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220313-13H26M47S"
load_epoch: 100
# 1h, 1:10, epoch 105
# path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220315-16H46M54S"
# load_epoch: 75
# path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220321-15H11M43S"
# load_epoch: 65
# 5h, 1:10, epoch 25
# path_checkpoint: "experiments/audio2mesh/train_audio2mesh_CN_20220312/20220321-15H10M14S"
# load_epoch: 25
DATASET:
fps: 50
sr: 16000
# name: "motion_live"
name: "motion_eval"
flip: False
shifting_speed: True
# root: './data/Actor2/Actor2-raw-7h' # obama-deca-3-5-08-mini
root: './data/Actor2/Actor2-raw-2h' # obama-deca-3-5-08-mini
root_raw: '/yrfs/lsen/DATA/Actor2/processing'
path_mean_dict: './data/Actor2/DECA_Actor2_mean.npy'
filter: 'savgol'
speech_extractor: 'wav2vec'
nwind_second_train: 3
nwind_second_valid: 3
nwind_second_test: 15
TRAIN:
apply_testing: True
apply_validation: True
LOSS:
names: ["rec_geo", "vel_geo", "rec_ldmk", "closure_x", "closure_y"]