-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
52 lines (40 loc) · 1.68 KB
/
Copy pathconfig.py
File metadata and controls
52 lines (40 loc) · 1.68 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
import argparse
def get_parser():
parser = argparse.ArgumentParser()
parser.add_argument('--log_info',
type=str,
help='info that will be displayed when logging',
default='DAE')
parser.add_argument('--lr',
type=float,
help='learning rate',
default=1e-4)
parser.add_argument('--weight_decay',
type=float,
help='L2 weight decay',
default=1e-5)
parser.add_argument('--temporal_aug',
type=int,
help='the maximum of random temporal shift, ranges from 0 to 6',
default=0)
parser.add_argument('--num_workers',
type=int,
help='number of subprocesses for dataloader',
default=6)
parser.add_argument('--gpu',
type=str,
help='id of gpu device(s) to be used',
default='1')
parser.add_argument('--train_batch_size',
type=int,
help='batch size for training phase',
default=2)
parser.add_argument('--test_batch_size',
type=int,
help='batch size for test phase',
default=2)
parser.add_argument('--num_epochs',
type=int,
help='number of training epochs',
default=100)
return parser