-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefaults.py
112 lines (75 loc) · 2.97 KB
/
defaults.py
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
from yacs.config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# -----------------------------------------------------------------------------
# Config definition
# -----------------------------------------------------------------------------
_C = CN()
_C.device = "cuda"
_C.rff_flag = True
_C.nolabel = False
_C.kernel_x = "RFFGaussian"
_C.kernel_x_options = CN()
_C.kernel_x_options.rff_dim = 1000
_C.kernel_x_options.sigma_numel_max = 4000
_C.kernel_s = "RFFGaussian"
_C.kernel_s_options = CN()
_C.kernel_z = "RFFGaussian"
_C.kernel_z_options = CN()
_C.kernel_z = "RFFGaussian"
_C.kernel_z_options = CN()
_C.kernel_z_options.rff_dim = 1000
_C.kernel_z_options.sigma_numel_max = 4000
_C.kernel_y = "RFFGaussian"
_C.kernel_y_options = CN()
# ---------------------------------------------------------#
# metric_control
# ---------------------------------------------------------#
_C.metric_control = CN()
_C.metric_control.HSIC = "NonParametricDependence"
_C.metric_control.KCC = "NonParametricDependence"
# ---------------------------------------------------------#
# metric_control_options
# ---------------------------------------------------------#
_C.metric_control_options = CN()
_C.metric_control_options.HSIC = CN()
_C.metric_control_options.KCC = CN()
_C.metric_control_options.HSIC.rff = 1
_C.metric_control_options.HSIC.score_list = CN()
_C.metric_control_options.HSIC.score_list.HSIC = CN()
_C.metric_control_options.HSIC.kernel_z = "RFFGaussian"
_C.metric_control_options.HSIC.kernel_z_opts = CN()
_C.metric_control_options.HSIC.kernel_z_opts.rff_dim = 1000
_C.metric_control_options.HSIC.kernel_z_opts.sigma_numel_max = 3000
_C.metric_control_options.HSIC.kernel_s = "RFFGaussian"
_C.metric_control_options.HSIC.kernel_s_opts = CN()
_C.metric_control_options.HSIC.kernel_s_opts.rff_dim = 1000
_C.metric_control_options.HSIC.kernel_s_opts.sigma_numel_max = 3000
_C.metric_control_options.KCC.rff = 1
_C.metric_control_options.KCC.score_list = CN()
_C.metric_control_options.KCC.score_list.KCC = CN()
_C.metric_control_options.KCC.score_list.KCC.lam = 0.001
_C.metric_control_options.KCC.kernel_z = "RFFGaussian"
_C.metric_control_options.KCC.kernel_z_opts = CN()
_C.metric_control_options.KCC.kernel_z_opts.rff_dim = 1000
_C.metric_control_options.KCC.kernel_z_opts.sigma_numel_max = 3000
_C.metric_control_options.KCC.kernel_s = "RFFGaussian"
_C.metric_control_options.KCC.kernel_s_opts = CN()
_C.metric_control_options.KCC.kernel_s_opts.rff_dim = 1000
_C.metric_control_options.KCC.kernel_s_opts.sigma_numel_max = 3000
_C.dim_z = 768
_C.seed = 2
_C.tau_i = 0.0
_C.tau_z_i = 0.0
_C.tau_t = 0.0
_C.tau_z_t = 0.0
_C.sample_ratio1 = 1.0
_C.sample_ratio2 = 1.0
_C.gamma_i =3e-6#5e-5#3e-6# celeba 5e-5
_C.gamma_t =3e-6#5e-5#3e-6# celeba 5e-5
_C.load_base_model = "clip_ViTL14"
_C.dataset = "waterbirds"
_C.debias = True
_C.bs_trn = 128
_C.bs_val = 128
_C.iters = 1