-
Notifications
You must be signed in to change notification settings - Fork 3
/
config_seq.py
37 lines (28 loc) · 755 Bytes
/
config_seq.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
import os
class GlobalConfig:
""" base architecture configurations """
# Data
seq_len = 5 # input timesteps
pred_len = 4 # future waypoints predicted
data_root = './Dataset'#path to the dataset
n_views = 1 # no. of camera views
input_resolution = 256
scale = 1 # image pre-processing
crop = 256 # image pre-processing
lr = 1e-4 # learning rate
# Conv Encoder
vert_anchors = 8
horz_anchors = 8
anchors = vert_anchors * horz_anchors
# GPT Encoder
n_embd = 512
block_exp = 4
n_layer = 8
n_head = 4
n_scale = 4
embd_pdrop = 0.1
resid_pdrop = 0.1
attn_pdrop = 0.1
def __init__(self, **kwargs):
for k,v in kwargs.items():
setattr(self, k, v)