All Projects → uvipen → Chrome-dino-deep-Q-learning-pytorch

uvipen / Chrome-dino-deep-Q-learning-pytorch

Licence: other
Deep Q-learning for playing chrome dino game

Programming Languages

python
139335 projects - #7 most used programming language

[PYTORCH] Deep Q-learning for playing Chrome Dino

Introduction

Here is my python source code for training an agent to play flappy bird. It could be seen as a very basic example of Reinforcement Learning's application.


Result

The corresponding output video will also be generated and stored by default at output/chrome_dino.mp4


Output video

How to use my code

With my code, you can:

  • Train your model from scratch by running python train.py
  • Test your trained model by running python test.py

Trained models

You could find my trained model at trained_models/chrome_dino.pth

Requirements

  • python 3.6
  • pygame
  • cv2
  • pytorch
  • numpy

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].