forked from tonyzhaozh/act
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
52 lines (47 loc) · 1.37 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
50
51
52
import pathlib
### Task parameters
DATA_DIR = 'data'
SIM_TASK_CONFIGS = {
'sim_transfer_cube_scripted':{
'dataset_dir': DATA_DIR + '/sim_transfer_cube_scripted',
'num_episodes': 50,
'episode_len': 400,
'camera_names': ['top']
},
'sim_transfer_cube_human':{
'dataset_dir': DATA_DIR + '/sim_transfer_cube_human',
'num_episodes': 50,
'episode_len': 400,
'camera_names': ['top']
},
'sim_insertion_scripted': {
'dataset_dir': DATA_DIR + '/sim_insertion_scripted',
'num_episodes': 50,
'episode_len': 400,
'camera_names': ['top']
},
'sim_insertion_human': {
'dataset_dir': DATA_DIR + '/sim_insertion_human',
'num_episodes': 50,
'episode_len': 500,
'camera_names': ['top']
},
'sim_pickup_task': {
'dataset_dir': DATA_DIR + '\\excavator_qpos_oct2',
'num_episodes': 36,
'episode_len': 230,
'camera_names': ['top', 'angle'],
'action_len': 5,
'kl_weight': 10,
'hidden_dim': 256,
'batch_size': 8,#4096,
'dim_feedforward': 32,
'num_epochs': 24000,
'lr': 1e-5,
'seed': 42,
'temporal_agg': False,
'mujoco_xml': 'excavator_scene.xml',
},
}
DT = 0.02
XML_DIR = str(pathlib.Path(__file__).parent.resolve()) + '/assets/' # note: absolute path