Closed prinshul closed 10 months ago
You can see the available tasks here https://benchmarl.readthedocs.io/en/latest/generated/benchmarl.environments.VmasTask.html#benchmarl.environments.VmasTask .
In theory all scenarios are supported so if you are interested in a vmas scenario that is not there, we can add it
Actually when I ran 'give_way' (for example)
python fine_tuned/vmas/vmas_run.py algorithm=mappo task=vmas/give_way
I am getting the below error:
File "/home/iitdpc/miniconda3/envs/marl_bench/lib/python3.9/site-packages/hydra/_internal/utils.py", line 458, in
Available options in 'task': pettingzoo_multiwalker_config pettingzoo_simple_adversary_config pettingzoo_simple_crypto_config pettingzoo_simple_push_config pettingzoo_simple_reference_config pettingzoo_simple_speaker_listener_config pettingzoo_simple_spread_config pettingzoo_simple_tag_config pettingzoo_simple_world_comm_config pettingzoo_waterworld_config vmas_balance_config vmas_navigation_config vmas_sampling_config vmas_simple_adversary_config vmas_simple_crypto_config vmas_simple_push_config vmas_simple_reference_config vmas_simple_speaker_listener_config vmas_simple_spread_config vmas_simple_tag_config vmas_simple_world_comm_config vmas_transport_config vmas_wheel_config Config search path: provider=hydra, path=pkg://hydra.conf provider=main, path=file:///hdd3/marl_new/BenchMARL/fine_tuned/vmas/conf provider=hydra.searchpath in main, path=pkg://benchmarl.conf provider=schema, path=structured://
Am I doing something wrong?
If it's possible for me I can can add. Can you suggest how? I need debug tasks as well like asym_joint, het_mass, diff_drive, Kinematic bicycle And main tasks like windflocking are needed for my work.
You need to install benchmarl from github (pull the latest) since some tasks were added after 1.0.0
to add new vmas tasks just follow this guide https://github.com/facebookresearch/BenchMARL/tree/main/examples/extending/task
You need to install benchmarl from github (pull the latest) since some tasks were added after 1.0.0
to add new vmas tasks just follow this guide https://github.com/facebookresearch/BenchMARL/tree/main/examples/extending/task
And the new tasks will run with default hyperparameters?
To see how you can add more vmas scenarios, for example you can look at this PR I just made where i integrated more of them #48. Essentially you will need:
environemnts/vmas/common.py
environments/vmas/<your_task>.py
conf/task/vmas/<your_task>.yaml
environments/__init__.py
Regarding hyperparameters, you can use the ones you want. The default task parameters that you chose are in conf/task/vmas/<your_task>.yaml
. For the training parameters, you can use the ones in the fine_tuned
folder for inspiration, but you might want to change some stuff depending on the task.
Thank you for all your prompt responses.
So the hyperparameters in the fine_tuned vmas folder may not apply to say wheel with MADDPG (off-policy algorithm)? As with fine-tuned vmas hyperparameters I am getting below curve [wheel + MADDPG]:
You may need to give it more time, but in general no.
Some VMAS task can be hard to solve. That is also why they exist, cause if you were able to solve all of them with vanilla algos, they would not be useful.
Hi,
Only the below tasks supported from the vmas?