Skip to content

tbinetruy/CIL4SYS

Repository files navigation

Running

In order to build the container from the Dockerfile, we first need to build it. We associate it the flow tag:

sudo docker build -t flow .

In order to run the container, invoque the following instructions. The current directory ($(pwd) on Linux) will be bind mounted to /host allowing the user to modify the project from the host machine and run it from the docker. We also bind mount ./ray_results (host) to /root/ray_results (container) which allow to interact with the results (e.g. running Tensorboard) from the host. There is also some Linux display wizardry going on with X11 allowing to set the render flag to True in IssyExperimentParams and have the Sumo GUI appear on the host machine:

# allow connection to x11 server from docker
xhost +

# run sumo.py in dockerised sumo-gui
mkdir -p ray_results && sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --privileged -ti --mount src="$PWD/ray_results",target=/root/ray_results,type=bind --mount src="$(pwd)",target=/host,type=bind flow /bin/bash -c "source /root/.bashrc && python /host/src/flow/issy.py"

In order to open a shell inside the docker image with graphic support, run the following command.

xhost +
mkdir -p ray_results && sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --privileged -ti --mount src="$PWD/ray_results",target=/root/ray_results,type=bind --mount src="$(pwd)",target=/host,type=bind flow /bin/bash

Tensorboard

To see training results in Tensorboard, call it from the host after having ensured you have the appropriate permissions as follows:

sudo chmod -R +777 ray_results
tensorboard --logdir ray_results

État de l’art

Acquisition de données

Simulation de données

Traffic flow prediction

Keywords

Useful for google searches:

  • Traffic smoothing

About

Telecom Paristech projet fil rouge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published