Using Keras and Deep Deterministic Policy Gradient to play TORCS
Clone or download
Latest commit 455fade Oct 11, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ActorNetwork.py First commit Oct 11, 2016
CriticNetwork.py First commit Oct 11, 2016
OU.py First commit Oct 11, 2016
README.md add readme Oct 11, 2016
ReplayBuffer.py First commit Oct 11, 2016
actormodel.h5 First commit Oct 11, 2016
actormodel.json First commit Oct 11, 2016
autostart.sh First commit Oct 11, 2016
criticmodel.h5 First commit Oct 11, 2016
criticmodel.json First commit Oct 11, 2016
ddpg.py typo Oct 11, 2016
fast.gif Add README Oct 11, 2016
gym_torcs.py First commit Oct 11, 2016
snakeoil3_gym.py First commit Oct 11, 2016

README.md

Using Keras and Deep Deterministic Policy Gradient to play TORCS

300 lines of python code to demonstrate DDPG with Keras

Please read the following blog for details

https://yanpanlau.github.io/2016/10/11/Torcs-Keras.html

Installation Dependencies:

  • Python 2.7
  • Keras 1.1.0
  • Tensorflow r0.10
  • gym_torcs

How to Run?

git clone https://github.com/yanpanlau/DDPG-Keras-Torcs.git
cd DDPG-Keras-Torcs
cp *.* ~/gym_torcs
cd ~/gym_torcs
python ddpg.py 

(Change the flag train_indicator=1 in ddpg.py if you want to train the network)