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: