Awesome Open Source
Awesome Open Source

Reinforcement Learning - Learning how to play Flappy Bird in PyTorch

This sample is published as part of the corresponding blog article at https://www.toptal.com/deep-learning/pytorch-reinforcement-learning-tutorial

Visit https://www.toptal.com/blog and subscribe to our newsletter to read great posts!

Dependencies:
  • Python 3.6.5
  • Run pip3 install -r requirements.txt to install dependencies.
How to run:
  • Run python dqn.py test to run pretrained neural network model.
  • Run python dqn.py train to train the model from the beginning. You can also increase FPS in game/flappy_bird.py script for faster training.

References:


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (888,878
Learning (75,671
Reinforcement Learning (4,866
Dqn (1,425
Flappy Bird (493