From 24da1c29bc21545a7d965f94ba6a9436c6edf99d Mon Sep 17 00:00:00 2001 From: Praveen Palanisamy <4770482+praveen-palanisamy@users.noreply.github.com> Date: Fri, 26 Feb 2021 23:49:59 -0800 Subject: [PATCH] Add instructions to run without Docker --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4fd428b..e4b3207 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Multi-Agent algorithms for Multi-Agent Connected Autonomous Driving using [MACAD 0. `git clone https://github.com/praveen-palanisamy/macad-agents` -1. Build the MACAD-Agents Docker container: `docker build --rm -f macad-agents/Dockerfile -t macad-agents:latest .` +1. Build the MACAD-Agents Docker container: `docker build --rm -f macad-agents/Dockerfile -t macad-agents:latest .` If you want to avoid building and running the Docker container, you can follow the instructions in "Running MACAD-Agents witout Docker" section below. 2. Run the MACAD-Agents training container: `bash run.sh` @@ -22,6 +22,16 @@ Multi-Agent algorithms for Multi-Agent Connected Autonomous Driving using [MACAD `macad-agents:latest python -m macad_agents.rllib.impala_multiagent_shared_weights.py` +##### Running MACAD-Agents without Docker + If you have all the necessary dependencies installed an configured on your host machine, you can run the agent script like shown below: +`cd macad-agents/src && python -m macad_agents.rllib.ppo_multiagent_shared_weights` + +A brief gist of what you need to setup on your host machine is listed below: + +https://github.com/praveen-palanisamy/macad-agents/blob/5e0bf86e4175ffd3aabf52ac32016d4050da9cff/run.sh#L8-L12 + +Where `-e` is equivalent to `export` using the `bash` terminal. + #### Citing If you find this work or [MACAD-Gym](https://github.com/praveen-palanisamy/macad-gym) useful in your research, please cite: