ソースを参照

Added list of environments to README

Maxime Chevalier-Boisvert 7 年 前
コミット
cacb438c76
2 ファイル変更35 行追加5 行削除
  1. 33 3
      README.md
  2. 2 2
      gym_minigrid/envs/simple_envs.py

+ 33 - 3
README.md

@@ -37,7 +37,7 @@ pip install -r requirements.txt
 Note: the basicrl code is a custom fork of [this repository](https://github.com/ikostrikov/pytorch-a2c-ppo-acktr),
 which was modified to work with this environment.
 
-## Usage
+## Basic Usage
 
 To run the standalone UI application, which allows you to manually control the agent with the arrow keys:
 
@@ -51,8 +51,6 @@ The environment being run can be selected with the `--env-name` option, eg:
 ./standalone.py --env-name MiniGrid-Fetch-8x8-v0
 ```
 
-To see available environments and their implementation, look at [simple_envs.py](gym_minigrid/envs/simple_envs.py).
-
 Basic reinforcement learning code is provided in the `basicrl` subdirectory.
 You can perform training using the ACKTR algorithm with:
 
@@ -65,3 +63,35 @@ You can view the result of training using the `enjoy.py` script:
 ```
 python3 basicrl/enjoy.py --env-name MiniGrid-Empty-8x8-v0 --load-dir ./trained_models/acktr
 ```
+
+## Included Environments
+
+The environments listed below are implemented and registered in [simple_envs.py](gym_minigrid/envs/simple_envs.py).
+
+### Empty environment
+
+Registered configurations:
+- MiniGrid-Empty-8x8-v0
+- MiniGrid-Empty-6x6-v0
+
+### Door & key environment
+
+Registered configurations:
+- MiniGrid-Door-Key-8x8-v0
+- MiniGrid-Door-Key-16x16-v0
+- MiniGrid-Multi-Room-N6-v0
+- MiniGrid-Fetch-8x8-v0
+
+### Multi-room environment
+
+Registered configurations:
+- MiniGrid-Multi-Room-N6-v0
+
+TODO: curriculum learning, include gif
+
+### Fetch Environment
+
+Registered configurations:
+- MiniGrid-Fetch-8x8-v0
+
+Natural language observation ("mission").

+ 2 - 2
gym_minigrid/envs/simple_envs.py

@@ -59,13 +59,13 @@ class DoorKeyEnv16x16(DoorKeyEnv):
         super(DoorKeyEnv16x16, self).__init__(size=16)
 
 register(
-    id='-Door-Key-8x8-v0',
+    id='MiniGrid-Door-Key-8x8-v0',
     entry_point='gym_minigrid.envs:DoorKeyEnv',
     reward_threshold=1000.0
 )
 
 register(
-    id='-Door-Key-16x16-v0',
+    id='MiniGrid-Door-Key-16x16-v0',
     entry_point='gym_minigrid.envs:DoorKeyEnv16x16',
     reward_threshold=1000.0
 )