Skip to content
Proyectos

xuehy/pytorch-maddpg

Ver en GitHub

xuehy/pytorch-maddpg has 692 GitHub stars and 126 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-21 21:00 UTC. Last push 2018-06-05.

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

Acerca de

A pytorch implementation of MADDPG (multi-agent deep deterministic policy gradient)

Aprendizaje automático

README.md

Original

An implementation of MADDPG

1. Introduction

This is a pytorch implementation of multi-agent deep deterministic policy gradient algorithm.

The experimental environment is a modified version of Waterworld based on MADRL.

2. Environment

The main features (different from MADRL) of the modified Waterworld environment are:

  • evaders and poisons now bounce at the wall obeying physical rules
  • sizes of the evaders, pursuers and poisons are now the same so that random actions will lead to average rewards around 0.
  • need exactly n_coop agents to catch food.

3. Dependency

  • pytorch
  • visdom
  • python==3.6.1 (recommend using the anaconda/miniconda)
  • if you need to render the environments, opencv is required

4. Install

  • Install MADRL.
  • Replace the madrl_environments/pursuit directory with the one in this repo.
  • python main.py

if scene rendering is enabled, recommend to install opencv through conda-forge.

5. Results

two agents, cooperation = 2

The two agents need to cooperate to achieve the food for reward 10.

PNG/demo.gif

PNG/3.png

the average

PNG/4.png

one agent, cooperation = 1

PNG/newplot.png

6. TODO

  • reproduce the experiments in the paper with competitive environments.

Explorar proyectos relacionados

Cargando…