-
Notifications
You must be signed in to change notification settings - Fork 22
/
config.py
executable file
·44 lines (33 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
"""Configuration file for the project."""
__author__ = "Likith Reddy, Vamsi Kumar"
__version__ = "1.0.0"
__email__ = "[email protected], [email protected]"
import os
import torch
class Config(object):
def __init__(self, wandb=None) -> None:
# path
self.src_path = os.path.join(os.getcwd(), "data")
self.wandb = wandb
# augmentation
self.degree = 0.05
self.mask_max_points = 200
self.mask_min_points = 50
# time domain
self.tc_hidden_dim = 128
self.input_channels = 1
# loss
self.temperature = 1
self.intra_temperature = 10
self.use_cosine_similarity = True
# optimizer
self.optimizer = "adam"
self.beta1 = 0.9
self.beta2 = 0.99
self.lr = 0.0003
# training and evaluation
self.num_epoch = 200
self.batch_size = 256
self.num_ft_epoch = 100
self.device = "cuda" if torch.cuda.is_available() else "cpu"
self.drop_last = True