-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
49 lines (42 loc) · 1.02 KB
/
constants.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
# constants.py
import pathlib
### Task parameters
DATA_DIR = './data' # データフォルダを指定
# ポートを指定
#LEADER0 = "COM4"
#FOLLOWER0 = "COM7"
LEADER0 = "/dev/ttyUSB0"
FOLLOWER0 = "/dev/ttyUSB1"
LEADER1 = "/dev/ttyUSB2"
FOLLOWER1 = "/dev/ttyUSB3"
BAUDRATE = 1000000
# アームのペア数とアームの関節数
PAIR = 2
STATE_DIM = 6
TASK_CONFIGS = {
'test1': {
'dataset_dir': DATA_DIR + '/test1',
'episode_len': 300,
'num_episodes': 30,
'camera_names': ['left','right','front','top'],
'camera_device_ids': [0,2,8,14],
'camera_formats': ["YUYV","YUYV","MJPG","MJPG"],
'camera_fps': [30,30,30,30],
'width': 320,
'height': 240,
},
}
TRAIN_CONFIG = {
'ckpt_dir': 'checkpoint',
'policy_class': 'ACT',
'kl_weight': 10,
'chunk_size': 100,
'hidden_dim': 512,
'batch_size': 8,
'dim_feedforward': 3200,
'lr': 1e-5,
'seed': 0,
'eval': False,
'onscreen_render': False,
'temporal_agg': False,
}