Skip to content

Commit

Permalink
Update howto/select_observations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
belerico committed Nov 24, 2023
1 parent 8fc25ee commit 1b15465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions howto/select_observations.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ python sheeprl.py exp=sac env=gym env.id=LunarLanderContinuous-v2 algo.mlp_keys.
It is possible to retrieve the observation space of a specific environment to easily select the observation keys you want to use in your training.

```bash
python examples/observation_space.py env=... env.id=... agent=dreamer_v3
python examples/observation_space.py env=... env.id=... agent=dreamer_v3 algo.cnn_keys.encoder=[...] algo.mlp_keys.encoder=[...]
```

or for *DIAMBRA* environments:
Expand All @@ -102,11 +102,11 @@ or for *DIAMBRA* environments:
diambra run python examples/observation_space.py env=diambra agent=dreamer_v3 env.id=doapp
```

The env argument is the same one you use for training your agent, so it refers to the config folder `sheeprl/configs/env`, more over you can override the environment id and modify its parameters, such as the frame stack or whether or not to use grayscale observations.
The env argument is the same one you use for training your agent, so it refers to the config folder `sheeprl/configs/env`, moreover you can override the environment id and modify its parameters, such as the frame stack or whether or not to use grayscale observations.
You can modify the parameters as usual by specifying them as cli arguments:

```bash
python examples/observation_space.py env=atari agent=dreamer_v3 env.id=MsPacmanNoFrameskip-v4 env.frame_stack=5 env.grayscale=True
python examples/observation_space.py env=atari agent=dreamer_v3 env.id=MsPacmanNoFrameskip-v4 env.frame_stack=5 env.grayscale=True algo.cnn_keys.encoder=[frame]
```

> **Note**
Expand Down

0 comments on commit 1b15465

Please sign in to comment.