rstrivedi/Melting-Pot-Contest-2023

Error in Clean Up Human Player Mode

DemoreXTess opened this issue · 2 comments

Running an episode with 7 players: ['1', '2', '3', '4', '5', '6', '7'].
Traceback (most recent call last):
File "/home/tess/Desktop/MARL/contest/meltingpot/human_players/play_clean_up.py", line 91, in
main()
File "/home/tess/Desktop/MARL/contest/meltingpot/human_players/play_clean_up.py", line 83, in main
level_playing_utils.run_episode(
File "/home/tess/Desktop/MARL/contest/meltingpot/human_players/level_playing_utils.py", line 344, in run_episode
verbose_fn(timestep, i, player_index)
File "/home/tess/Desktop/MARL/contest/meltingpot/human_players/play_clean_up.py", line 44, in verbose_fn
cleaned = env_timestep.observation[f'{lua_index}.PLAYER_CLEANED']
KeyError: '1.PLAYER_CLEANED'

it's only appear when verbose=True

duenez commented

You need to also enable debug observations on the clean_up.py config. Unfortunately we don't provide a way to enable these from command line arguments. The reason is because debug observations are expensive, and we don't want to accidentally have them turned on.

Okay then not problem I am closing