This project is a pytorch implementation of "Playing Flappy Bird with DQN". The network architecture is built following the readme file, which is a bit different to the tensorflow version.
- Python 3.5
- Pytorch 0.4.1
- pygame
- OpenCV-Python
- Numpy
git clone https://github.com/adamz799/DeepLearningFlappyBird.git
cd DeepLearningFlappyBird
python deep_q_network-pytorch.py
-
Modify
deep_q_network-pytorch.py
's parameter as follow:
OBSERVE = 10000
EXPLORE = 3000000
FINAL_EPSILON = 0.0001
INITIAL_EPSILON = 0.1
[1] Mnih Volodymyr, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level Control through Deep Reinforcement Learning. Nature, 529-33, 2015.
[2] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing Atari with Deep Reinforcement Learning. NIPS, Deep Learning workshop
[3] Kevin Chen. Deep Reinforcement Learning for Flappy Bird Report | Youtube result
This work is highly based on the following repos: