Last active
March 19, 2021 03:27
-
-
Save KuanYuChang/3c365b35f056a8a285401c6eddf78054 to your computer and use it in GitHub Desktop.
Tested on Giselle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Cause the script to exit on any errors | |
# Reference: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | |
set -eo pipefail | |
WORKSPACE=$(pwd) | |
git clone https://github.com/pathak22/noreward-rl | |
git clone https://github.com/openai/go-vncdriver | |
git clone https://github.com/openai/doom-py | |
virtualenv -p python env_27 | |
source ${WORKSPACE}/env_27/bin/activate | |
pip install setuptools==44 | |
cd ${WORKSPACE}/doom-py | |
python setup.py build | |
pip install -e . | |
cd ${WORKSPACE}/go-vncdriver | |
python setup.py build | |
pip install -e . | |
cd ${WORKSPACE}/noreward-rl | |
sed -i s/tensorflow==0.12.0rc1/tensorflow-gpu==0.12.0/ src/requirements.txt | |
sed -i /numpy/d src/requirements.txt | |
sed -i /docker/d src/requirements.txt | |
sed -i /doom-py/d src/requirements.txt | |
sed -i /go-vncdriver/d src/requirements.txt | |
pip install -r src/requirements.txt | |
# test the installation | |
# $ chcuda 8.0 | |
# $ cd ${WORKSPACE}/noreward-rl/src | |
# $ python train.py --default --env-id doom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment