Code Monkey home page Code Monkey logo

crowdwalk-gym's Introduction

CrowdWalk Gym

CrowdWalk Gym provides a simple interface to instantiate Reinforcement Learning environments with CrowdWalk for crowd route guidance.
CrowdWalk is a multi-agent crowd movement simulator.

overview

Install

Install CrowdWalk

Please follow a documentation (https://github.com/crest-cassia/CrowdWalk).

Install CrowdWalk-Gym

git clone [email protected]:ryonsd/crowdwalk-gym.git
cd crowdwalk-gym
pip install -e .
$ cp -rp sample/* <path-to-your-CrowdWalk-dir>/crowdwalk/sample/

Environments

two_routes moji
Two routes Real map (moji port)

When you try learning on "moji" environment, I recommend to use "moji_small" from the perspective of calculation time.

"moji" represents a real map and a generation of pedestrians, but it takes a long time to calculate a congestion degree from all pedestrian locations.

"moji_small" is a low-fidelity version of "moji", and the routes width and number of pedestrians are 1/10.

Its reduction makes the calculation time is shorter, 1 episode is 1 min.

If you test your algorithm tentatively, using "two_routes" is best because 1 episode is 12 seconds.

python dqn.py --simulator_dir <path-to-your-CrowdWalk-dir> --env_name two_routes --gui

Examples

The result of learning route guidance with DQN that minimizes congestion degree in "two_routes" and "moji" environment.

result result
Two routes Real map (moji port)

crowdwalk-gym's People

Contributors

ryonsd avatar

Watchers

 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.