Skip to content

Commit

Permalink
Merge pull request #13 from praveen-palanisamy/add-instructions-to-ru…
Browse files Browse the repository at this point in the history
…n-without-docker

Add instructions to run without Docker
  • Loading branch information
praveen-palanisamy committed Feb 27, 2021
2 parents 486cf3c + 24da1c2 commit 35c06f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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:
Expand Down

0 comments on commit 35c06f5

Please sign in to comment.