Skip to content

Commit 7c5f00e

Browse files
lcswillemsmaximecb
authored andcommitted
Added screenshots for KeyCorridor (#58)
* Added screenshots for KeyCorridor * Reordered level id and evaluate, and displayed level ids as list
1 parent 24eed32 commit 7c5f00e

8 files changed

+51
-24
lines changed

README.md

+44-17
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ A work-in-progress review of related work can be found [here](https://www.overle
128128

129129
- Environment: The agent is placed in a room with a door.
130130
- Instruction: Open the red door
131-
- Level id: `BabyAI-OpenRedDoor-v0`
132131
- Evaluate: image understanding
132+
- Level id: `BabyAI-OpenRedDoor-v0`
133133

134134
<p align="center"><img src="media/OpenRedDoor.png" width="250"></p>
135135

@@ -140,35 +140,43 @@ A work-in-progress review of related work can be found [here](https://www.overle
140140
- a given color or location in `OpenDoor`
141141
- a given color in `OpenDoorColor`
142142
- a given location in `OpenDoorLoc`
143-
- Level id: `BabyAI-OpenDoor-v0`, `BabyAI-OpenDoorDebug-v0`, `BabyAI-OpenDoorColor-v0`, `BabyAI-OpenDoorColorDebug-v0`, `BabyAI-OpenDoorLoc-v0`, `BabyAI-OpenDoorLocDebug-v0`
144143
- Evaluate: image & text understanding, memory in `OpenDoor` and `OpenDoorLoc`
144+
- Level id:
145+
- `BabyAI-OpenDoor-v0`
146+
- `BabyAI-OpenDoorDebug-v0`
147+
- `BabyAI-OpenDoorColor-v0`
148+
- `BabyAI-OpenDoorColorDebug-v0`
149+
- `BabyAI-OpenDoorLoc-v0`
150+
- `BabyAI-OpenDoorLocDebug-v0`
145151

146152
<p align="center"><img src="media/OpenDoor.png" width="250"></p>
147153

148154
### GoToObjDoor
149155

150156
- Environment: The agent is placed in a room with 4 different doors and 5 different objects.
151157
- Instruction: Go to an object or a door of a given type and color
152-
- Level id: `BabyAI-GoToObjDoor-v0`
153158
- Evaluate: image & text understanding
159+
- Level id: `BabyAI-GoToObjDoor-v0`
154160

155161
<p align="center"><img src="media/GoToObjDoor.png" width="250"></p>
156162

157163
### ActionObjDoor
158164

159165
- Environment: The agent is placed in a room with 4 different doors and 5 different objects.
160166
- Instruction: [Pick up an object] or [go to an object or door] or [open a door]
161-
- Level id: `BabyAI-ActionObjDoor-v0`
162167
- Evaluate: image & text understanding
168+
- Level id: `BabyAI-ActionObjDoor-v0`
163169

164170
<p align="center"><img src="media/ActionObjDoor.png" width="250"></p>
165171

166172
### Unlock
167173

168174
- Environment: The agent is placed in a room with a key and a locked door. The room has either no distractors in `Unlock` or 3 distractors in `UnlockDist`.
169175
- Instruction: Open the door
170-
- Level id: `BabyAI-Unlock-v0`, `BabyAI-UnlockDist-v0`
171176
- Evaluate: image understanding, memory in `UnlockDist`
177+
- Level id:
178+
- `BabyAI-Unlock-v0`
179+
- `BabyAI-UnlockDist-v0`
172180

173181
<p align="center">
174182
<img src="media/Unlock.png" width="250">
@@ -179,8 +187,8 @@ A work-in-progress review of related work can be found [here](https://www.overle
179187

180188
- Environment: The agent is placed in a room with a key and a locked door. The door opens onto a room with a box. Rooms have either no distractors in `UnlockPickup` or 4 distractors in `UnlockPickupDist`.
181189
- Instruction: Pick up an object of a given type and color
182-
- Level id: `BabyAI-UnlockPickup-v0`, `BabyAI-UnlockPickupDist-v0`
183190
- Evaluate: image understanding, memory in `UnlockPickupDist`
191+
- Level id: `BabyAI-UnlockPickup-v0`, `BabyAI-UnlockPickupDist-v0`
184192

185193
<p align="center">
186194
<img src="media/UnlockPickup.png" width="250">
@@ -191,71 +199,80 @@ A work-in-progress review of related work can be found [here](https://www.overle
191199

192200
- Environment: The agent is placed in a room with a key and a locked door. The door is blocked by a ball. The door opens onto a room with a box.
193201
- Instruction: Pick up the box
194-
- Level id: `BabyAI-BlockedUnlockPickup-v0`
195202
- Evaluate: image understanding
203+
- Level id: `BabyAI-BlockedUnlockPickup-v0`
196204

197205
<p align="center"><img src="media/BlockedUnlockPickup.png" width="250"></p>
198206

199207
### UnlockToUnlock
200208

201209
- Environment: The agent is placed in a room with a key of color A and two doors of color A and B. The door of color A opens onto a room with a key of color B. The door of color B opens onto a room with a ball.
202210
- Instruction: Pick up the ball
203-
- Level id: `BabyAI-UnlockToUnlock-v0`
204211
- Evaluate: image understanding
212+
- Level id: `BabyAI-UnlockToUnlock-v0`
205213

206214
<p align="center"><img src="media/UnlockToUnlock.png" width="250"></p>
207215

208216
### KeyInBox
209217

210218
- Environment: The agent is placed in a room with a box containing a key and a locked door.
211219
- Instruction: Open the door
212-
- Level id: `BabyAI-KeyInBox-v0`
213220
- Evaluate: image understanding
221+
- Level id: `BabyAI-KeyInBox-v0`
214222

215223
<p align="center"><img src="media/KeyInBox.png" width="250"></p>
216224

217225
### PickupDist
218226

219227
- Environment: The agent is placed in a room with 5 objects. The environment is done when the instruction is executed in the regular mode or when any object is picked in the `debug` mode.
220228
- Instruction: Pick up an object of a given type and color
221-
- Level id: `BabyAI-PickupDist-v0`, `BabyAI-PickupDistDebug-v0`
222229
- Evaluate: image & text understanding
230+
- Level id:
231+
- `BabyAI-PickupDist-v0`
232+
- `BabyAI-PickupDistDebug-v0`
223233

224234
<p align="center"><img src="media/PickupDist.png" width="250"></p>
225235

226236
### PickupAbove
227237

228238
- Environment: The agent is placed in the middle room. An object is placed in the top-middle room.
229239
- Instruction: Pick up an object of a given type and color
230-
- Level id: `BabyAI-PickupAbove-v0`
231240
- Evaluate: image & text understanding, memory
241+
- Level id: `BabyAI-PickupAbove-v0`
232242

233243
<p align="center"><img src="media/PickupAbove.png" width="250"></p>
234244

235245
### OpenRedBlueDoors
236246

237247
- Environment: The agent is placed in a room with a red door and a blue door facing each other. The environment is done when the instruction is executed in the regular mode or when the blue door is opened in the `debug` mode.
238248
- Instruction: Open the red door then open the blue door
239-
- Level id: `BabyAI-OpenRedBlueDoors-v0`, `BabyAI-OpenRedBlueDoorsDebug-v0`
240249
- Evaluate: image understanding, memory
250+
- Level id:
251+
- `BabyAI-OpenRedBlueDoors-v0`
252+
- `BabyAI-OpenRedBlueDoorsDebug-v0`
241253

242254
<p align="center"><img src="media/OpenRedBlueDoors.png" width="250"></p>
243255

244256
### OpenTwoDoors
245257

246258
- Environment: The agent is placed in a room with a red door and a blue door facing each other. The environment is done when the instruction is executed in the regular mode or when the second door is opened in the `debug` mode.
247259
- Instruction: Open the door of color X then open the door of color Y
248-
- Level id: `BabyAI-OpenTwoDoors-v0`, `BabyAI-OpenTwoDoorsDebug-v0`
249260
- Evaluate: image & text understanding, memory
261+
- Level id:
262+
- `BabyAI-OpenTwoDoors-v0`
263+
- `BabyAI-OpenTwoDoorsDebug-v0`
250264

251265
<p align="center"><img src="media/OpenTwoDoors.png" width="250"></p>
252266

253267
### FindObj
254268

255269
- Environment: The agent is placed in the middle room. An object is placed in one of the rooms. Rooms have a size of 5 in `FindObjS5`, 6 in `FindObjS6` or 7 in `FindObjS7`.
256270
- Instruction: Pick up an object of a given type and color
257-
- Level id: `BabyAI-FindObjS5-v0`, `BabyAI-FindObjS6-v0`, `BabyAI-FindObjS7-v0`
258271
- Evaluate: image understanding, memory
272+
- Level id:
273+
- `BabyAI-FindObjS5-v0`
274+
- `BabyAI-FindObjS6-v0`
275+
- `BabyAI-FindObjS7-v0`
259276

260277
<p align="center">
261278
<img src="media/FindObjS5.png" width="250">
@@ -267,8 +284,11 @@ A work-in-progress review of related work can be found [here](https://www.overle
267284

268285
- Environment: The agent is placed in the middle room. 4 different objects are placed in the adjacent rooms. Rooms have a size of 5 in `FourObjsS5`, 6 in `FourObjsS6` or 7 in `FourObjsS7`.
269286
- Instruction: Pick up an object of a given type and location
270-
- Level id: `BabyAI-FourObjsS5-v0`, `BabyAI-FourObjsS6-v0`, `BabyAI-FourObjsS7-v0`
271287
- Evaluate: image understanding, memory
288+
- Level id:
289+
- `BabyAI-FourObjsS5-v0`
290+
- `BabyAI-FourObjsS6-v0`
291+
- `BabyAI-FourObjsS7-v0`
272292

273293
<p align="center">
274294
<img src="media/FourObjsS5.png" width="250">
@@ -289,7 +309,14 @@ A work-in-progress review of related work can be found [here](https://www.overle
289309
- `BabyAI-KeyCorridorS5R3-v0`
290310
- `BabyAI-KeyCorridorS6R3-v0`
291311

292-
<p align="center"><img src="media/HiddenKeyCorridor.png" width="250"></p>
312+
<p align="center">
313+
<img src="media/KeyCorridorS3R1.png" width="250">
314+
<img src="media/KeyCorridorS3R2.png" width="250">
315+
<img src="media/KeyCorridorS3R3.png" width="250">
316+
<img src="media/KeyCorridorS4R3.png" width="250">
317+
<img src="media/KeyCorridorS5R3.png" width="250">
318+
<img src="media/KeyCorridorS6R3.png" width="250">
319+
</p>
293320

294321
### 1Room
295322

@@ -307,4 +334,4 @@ A work-in-progress review of related work can be found [here](https://www.overle
307334
<img src="media/1RoomS12.png" width="250">
308335
<img src="media/1RoomS16.png" width="250">
309336
<img src="media/1RoomS20.png" width="250">
310-
</p>
337+
</p>

babyai/levels/levels.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def __init__(self, seed=None):
698698
seed=seed
699699
)
700700

701-
class HiddenKeyCorridor(RoomGridLevel):
701+
class KeyCorridor(RoomGridLevel):
702702
"""
703703
A ball is behind a locked door, the key is placed in a
704704
random room.
@@ -743,47 +743,47 @@ def gen_mission(self):
743743

744744
self.instrs = [Instr(action="pickup", object=Object(obj.type))]
745745

746-
class Level_KeyCorridorS3R1(HiddenKeyCorridor):
746+
class Level_KeyCorridorS3R1(KeyCorridor):
747747
def __init__(self, seed=None):
748748
super().__init__(
749749
room_size=3,
750750
num_rows=1,
751751
seed=seed
752752
)
753753

754-
class Level_KeyCorridorS3R2(HiddenKeyCorridor):
754+
class Level_KeyCorridorS3R2(KeyCorridor):
755755
def __init__(self, seed=None):
756756
super().__init__(
757757
room_size=3,
758758
num_rows=2,
759759
seed=seed
760760
)
761761

762-
class Level_KeyCorridorS3R3(HiddenKeyCorridor):
762+
class Level_KeyCorridorS3R3(KeyCorridor):
763763
def __init__(self, seed=None):
764764
super().__init__(
765765
room_size=3,
766766
num_rows=3,
767767
seed=seed
768768
)
769769

770-
class Level_KeyCorridorS4R3(HiddenKeyCorridor):
770+
class Level_KeyCorridorS4R3(KeyCorridor):
771771
def __init__(self, seed=None):
772772
super().__init__(
773773
room_size=4,
774774
num_rows=3,
775775
seed=seed
776776
)
777777

778-
class Level_KeyCorridorS5R3(HiddenKeyCorridor):
778+
class Level_KeyCorridorS5R3(KeyCorridor):
779779
def __init__(self, seed=None):
780780
super().__init__(
781781
room_size=5,
782782
num_rows=3,
783783
seed=seed
784784
)
785785

786-
class Level_KeyCorridorS6R3(HiddenKeyCorridor):
786+
class Level_KeyCorridorS6R3(KeyCorridor):
787787
def __init__(self, seed=None):
788788
super().__init__(
789789
room_size=6,

media/KeyCorridorS3R1.png

840 Bytes
Loading

media/KeyCorridorS3R2.png

1.25 KB
Loading

media/KeyCorridorS3R3.png

1.57 KB
Loading

media/KeyCorridorS4R3.png

1.9 KB
Loading

media/KeyCorridorS5R3.png

2.68 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)