-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.py
50 lines (36 loc) · 1.02 KB
/
config.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
class params:
def __init__(self):
#General Parameters
self.cat = "all"
#DGCNN parameters
self.emb_dims = 256
self.dropout = 0.5
self.k = 20
#EdgePooling parameters
self.k_pool1 = 16
self.k_pool2 = 6
self.pool1_points = 512
self.pool2_points = 128
self.scoring_fun = "tanh"
#Decoder parameters
self.num_branch = 8
self.K1 = 64
self.K2 = 64
self.N = 128
self.method = "integrated"
self.alpha = 0.01
#Multi-head Attention parameters
self.d_attn = 256
self.num_heads = 4
#Training parameters
self.batch_size = 128
self.nThreads = 1
self.lr = 0.001
self.dataroot = "/datapath"
self.n_epochs = 160
self.ckp_dir = "./checkpoints_path"
self.ckp_epoch = 5
self.eval_epoch = 5
self.resume = ''
self.loss_print = 500
self.vis_step = 1