Skip to content

Flappy Bird hack using Deep Reinforcement Learning (Deep Q-learning) with Pytorch

License

Notifications You must be signed in to change notification settings

adamz799/DeepLearningFlappyBird

 
 

Repository files navigation

Overview

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.

Installation Dependencies:

  • Python 3.5
  • Pytorch 0.4.1
  • pygame
  • OpenCV-Python
  • Numpy

How to Run?

git clone https://github.com/adamz799/DeepLearningFlappyBird.git
cd DeepLearningFlappyBird
python deep_q_network-pytorch.py

How to reproduce?

  1. Comment out this line and comment this line.

  2. Modify deep_q_network-pytorch.py's parameter as follow:

OBSERVE = 10000
EXPLORE = 3000000
FINAL_EPSILON = 0.0001
INITIAL_EPSILON = 0.1

References

[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

Disclaimer

This work is highly based on the following repos:

  1. sourabhv/FlapPyBird
  2. asrivat1/DeepLearningVideoGames
  3. yenchenlin/DeepLearningFlappyBird

About

Flappy Bird hack using Deep Reinforcement Learning (Deep Q-learning) with Pytorch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%