Skip to content

Reinforcement Learning environments for crowd route guidance with CrowdWalk.

License

Notifications You must be signed in to change notification settings

ryonsd/crowdwalk-gym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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)

About

Reinforcement Learning environments for crowd route guidance with CrowdWalk.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages