-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.py
56 lines (51 loc) · 1.36 KB
/
variables.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
53
54
55
56
procgen_envs = ["caveflyer", "dodgeball", "miner", "jumper", "maze", "heist"]
avalon_templates = [
'a screenshot of {}',
'a screenshot of a {}',
'a screenshot of many {}',
'a biome containing {}',
'a biome containing a {}',
'a biome containing many {}',
'a biome full of {}'
]
dmlab_templates = [
"a render of {}",
"a render of a {}",
"a screenshot of a {}",
"a screenshot of {}",
"a screen showing {}",
"a screen showing a {}"
]
dmlab_envs = {
'psychlab_continuous_recognition': 'contributed/psychlab/continuous_recognition'
}
_ACTION_MAP = {
0: (0, 0, 0, 1, 0, 0, 0),
1: (0, 0, 0, -1, 0, 0, 0),
2: (0, 0, -1, 0, 0, 0, 0),
3: (0, 0, 1, 0, 0, 0, 0),
4: (-10, 0, 0, 0, 0, 0, 0),
5: (10, 0, 0, 0, 0, 0, 0),
6: (-60, 0, 0, 0, 0, 0, 0),
7: (60, 0, 0, 0, 0, 0, 0),
8: (0, 10, 0, 0, 0, 0, 0),
9: (0, -10, 0, 0, 0, 0, 0),
10: (-10, 0, 0, 1, 0, 0, 0),
11: (10, 0, 0, 1, 0, 0, 0),
12: (-60, 0, 0, 1, 0, 0, 0),
13: (60, 0, 0, 1, 0, 0, 0),
14: (0, 0, 0, 0, 1, 0, 0),
}
ACTIONS = [
[-20, 0, 0, 0, 0, 0, 0],
[20, 0, 0, 0, 0, 0, 0],
[0, 10, 0, 0, 0, 0, 0],
[0, -10, 0, 0, 0, 0, 0],
[0, 0, -1, 0, 0, 0, 0],
[0, 0, 1, 0, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0],
[0, 0, 0, -1, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 1]
]