LAMDA-RL / ODIS

The implementation of ICLR-2023 paper "Discovering Generalizable Multi-agent Coordination Skills from Multi-task Offline Data".
Apache License 2.0
34 stars 5 forks source link

cannot find '4m, 5m' map information for toy example #3

Open flammingRaven opened 6 months ago

flammingRaven commented 6 months ago

Hi, when I run the toy example, some problems occurs, here is the bug information, could you help me with it? It seems that it cannot find correct information for the map '4m' and '5m.' [DEBUG 11:05:15] MOCO Stopping Heartbeat [ERROR 11:05:15] MOCO Failed after 0:00:00! Traceback (most recent calls WITHOUT Sacred internals): File "/home/ghz/PycharmProjects/ODIS-main/src/main.py", line 39, in my_main mto(_run, config, _log) File "/home/ghz/PycharmProjects/ODIS-main/src/mto.py", line 60, in run run_sequential(args=args, logger=logger) File "/home/ghz/PycharmProjects/ODIS-main/src/mto.py", line 274, in run_sequential logger) File "/home/ghz/PycharmProjects/ODIS-main/src/mto.py", line 104, in init_tasks task_runner = r_REGISTRY[main_args.runner](args=task_args, logger=logger, task=task) File "/home/ghz/PycharmProjects/ODIS-main/src/runners/multi_task/episode_runner.py", line 16, in init self.env = env_REGISTRYself.args.env File "/home/ghz/PycharmProjects/ODIS-main/src/envs/init.py", line 5, in env_fn return env(**kwargs) File "/home/ghz/Downloads/smac/smac/env/starcraft2/starcraft2.py", line 198, in init map_params = get_map_params(self.map_name) File "/home/ghz/Downloads/smac/smac/env/starcraft2/maps/init.py", line 10, in get_map_params return map_param_registry[map_name] KeyError: '4m'

Process finished with exit code 1

mansicer commented 6 months ago

It seems that the SMAC package lacks the additional map information. Please check whether you have patched the SMAC package as stated in the readme:

git clone https://github.com/oxwhirl/smac.git
pip install -e smac/
bash install_smac_patch.sh