GithubHelp home page GithubHelp logo

wwxfromtju / mackrl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schroederdewitt/mackrl

0.0 0.0 0.0 1.99 MB

Code for Multi-Agent Common Knowledge Reinforcement Learning (NeurIPS 2019)

License: Apache License 2.0

Dockerfile 0.96% Shell 2.19% Python 96.85%

mackrl's Introduction

Fast MVC-style deep MARL framework

Includes implementations of algorithms:

  • MACKRL
  • CENTRAL-V

Installation instructions

Build the Dockerfile:

$ ./build.sh

StarCraft II

Set up StarCraft II. Download this specific version here: (SC2.3.16.1)[http://blzdistsc2-a.akamaihd.net/Linux/SC2.3.16.1.zip] move to

coma/3rdparty/StarCraftII

(and unzip of course using password iagreetotheeula)

and then copy

/src/envs/starcraft2/maps

to the

3rdparty/StarCraftII/Maps/Melee maps folder (which you will have to create first).

Run an experiment

Run one of the EXPERIMENTs from the folder src/config/experiments on a specific GPU using some special PARAMETERS:

cd fastmarl/src
../run.sh <GPU> python3 main.py --exp_name=<EXPERIMENT> with <PARAMETERS>

Keep an eye on your docker containers, they will be named <USER>_fastmarl_GPU_<GPU>_<RANDOM>:

docker ps

If you do not want them anymore, kill a container named NAME with

docker kill <NAME>
docker rm <NAME>

If you want to get rid of all your containers, execute

fastmarl/kill.sh

Run SC2 baselines

Run

exp_scripts/coma_baselines/run.sh <Number of runs per scenario, e.g. 5>

Results are automatically logged to both tensorboard

tensorboard --logdir=./results/tb_logs

and, if MongoDB has been set up (see main.py for config details), a database will be created.

If MongoDB is not available, then Sacred will produce output files under

./results/sacred

mackrl's People

Contributors

schroederdewitt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.