Coder Social home page Coder Social logo

Multi-Commander

Traffic Signal Control based on Multi & Single Agent Reinforcement learning Algorithms

This is a project for Deecamp 2019 which cooperated with APEX Lib of Shanghai Jiaotong University and Tianrang Intelligence Company

DQN | DDQN | DuelingDQN | RayDQN

Documentation for PG based Method

PPO | DDPG | TD3 | SAC

Documentation for Distributed Method

IMPALA | A3C | APPO | Ape-X

Multi-Agent Method

QMIX | Gamma-Reward | PressLight

Docker image

this is a complete Docker image,you can start work quickly with it.
environment:ubuntu16.04 python3.6 Cityflow tensorflow1.14.0 Ray Gym
you need run your docker container keep port 8080,6006,8265 connected.

docker pull 957001934/road-commander

Demo video : bilibli

Installation

you can also built your environment,please follow these steps. This project is based on CityFlow which is a multi-agent reinforcement learning environment for large scale city traffic scenario, the algorithms are bases on Ray which is a fast and simple framework for building and running distributed applications.

This guide is based on Ubuntu 16.04.

CityFlow has little dependencies, so building from source is not scary.

  1. Check that you have python 3.6 installed. Other version of python might work, however, we only tested on python with version >= 3.6.
  2. Install cpp dependencies
apt update && apt-get install -y build-essential libboost-all-dev cmake
  1. Clone CityFlow project from github.
git clone --recursive https://github.com/cityflow-project/CityFlow.git

Notice that CityFlow uses pybind11 to integrate C++ code with python, the repo has pybind11 as a submodule, please use --recursive to clone all codes.

  1. Go to CityFlow project’s root directory and run
pip install .
  1. Wait for installation to complete and CityFlow should be successfully installed.
import cityflow
eng = cityflow.Engine
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U ray  # also recommended: ray[debug]
git clone https://github.com/openai/gym
cd gym
pip install -e .

multi-commander's Projects

multi-commander icon multi-commander

Multi & Single Agent Reinforcement Learning for Traffic Signal Control Problem

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.