-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.py
More file actions
81 lines (68 loc) · 2.55 KB
/
Copy pathparams.py
File metadata and controls
81 lines (68 loc) · 2.55 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import os
class params():
bpm_flag = False
k_fold_flag = False
model_save_flag = False
log_flag = True
wandb_flag = True
random_seed = 0
save_img_flag = True
__TIME__ = 0 # 1: print time, 0: not print time
__PREPROCESSING__ = 0 # 1: preprocessing, 0: not preprocessing
__MODEL_SUMMARY__ = 0 # 1: print model summary, 0: not print model summary
multi_model = False
number_of_model = 3
model = "TEST"
model_list = ["DeepPhys", "DeepPhys_DA", "PhysNet", "PhysNet_LSTM", "PPNet", "GCN", "AxisNet", "RhythmNet","TEST"]
# preprocessing parameters
# dataset
dataset_name = "UBFC"
# UBFC / PURE / V4V / VIPL_HR
save_root_path = os.getenv("SAVE_ROOT_PATH", "/media/hdd1/dy/dataset/")
dataset_date = os.getenv("DATASET_DATE", "2023-01-20")
data_root_path = os.getenv("DATA_ROOT_PATH", "/media/hdd1/")
model_root_path = os.getenv("MODEL_ROOT_PATH", "/media/hdd1/dy/model/")
train_ratio = 0.8
face_detect_algorithm = 5
divide_flag = 1 # 1 : divide by number 0: divide by subject
fixed_position = 1 # 1 : fixed position 0: not fixed position
time_length = 64 # The number of frames in dataset.__GetItem__
chunk_size = 4 # The number of subjects processed at one time
# train paramaters
train_ratio = 0.8
val_ratio = 0.1
test_ratio = 0.1
batch_size = 32
train_shuffle = 1
test_shuffle = 1
img_size = 128
loss_fn = "Total_BVPVelocityLoss"
'''
"mse","L1","neg_pearson","multi_margin","bce","huber","cosine_embedding",
"cross_entropy","ctc","bce_with_logits","gaussian_nll","hinge_embedding",
"KLDiv","margin_ranking","multi_label_margin","multi_label_soft_margin",
"nll","nll2d","pairwise","poisson_nll","smooth_l1","soft_margin",
"triplet_margin","triplet_margin_distance",
"PPNET : MSE", BVPVelocityLoss, Total_BVPVelocityLoss
'''
optimizer = "adam"
'''
"adam","sgd","rms_prop","ada_delta","ada_grad","ada_max",
"ada_mw","a_sgd","lbfgs","n_adam","r_adam","rprop","sparse_adam",
"PPNET : adam"
'''
lr = 1e-4
warmup_iteration = 10
initial_lr = 1e-8
warmup_initial_lr = 1e-4
'''
"DeepPhys : lr = 1",
"PhysNet : lr = 0.001",
"PPNet : lr = 0.001",
"GCN : lr = 0.003"
'''
epoch = 1000
#wandb params
wandb_project_name = os.getenv("WANDB_PROJECT_NAME", "torch_2023ICCV")
wandb_entity = os.getenv("WANDB_ENTITY", "daeyeolkim")
params = params()