xtma / ray-maddpg

MADDPG implementation with Ray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MADDPG in Ray

Status: developing

MADDPG implementation with Ray. Models are written in PyTorch. Tricks proposed in TD3 are added to the original method.

Installation

Install the dependencies first.

pip install -r requirements.txt

You need to install the multiagent-particle-envs.

git clone https://github.com/openai/multiagent-particle-envs.git
cd multiagent-particle-envs
pip install -e .

To use the sction space continuous and make it suitable for MADDPG, you need to modify line 29 in multiagent-particle-envs/multiagent/environment.py manually (waiting for better way...):

        self.discrete_action_space = False  # Continuous Action Space

You can run the code with python main.py --scenario_name simple_push.

Reference

About

MADDPG implementation with Ray

License:MIT License


Languages

Language:Python 100.0%