https://github.com/vietnh1009/flappy-bird-deep-q-learning-pytorch
Deep Q-learning for playing flappy bird game
https://github.com/vietnh1009/flappy-bird-deep-q-learning-pytorch
deep-q-learning deep-q-network pygame pytorch reinforcement-learning
Last synced: 5 months ago
JSON representation
Deep Q-learning for playing flappy bird game
- Host: GitHub
- URL: https://github.com/vietnh1009/flappy-bird-deep-q-learning-pytorch
- Owner: vietnh1009
- License: mit
- Created: 2019-04-15T16:43:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-07T10:15:54.000Z (about 4 years ago)
- Last Synced: 2024-12-20T16:16:34.670Z (10 months ago)
- Topics: deep-q-learning, deep-q-network, pygame, pytorch, reinforcement-learning
- Language: Python
- Homepage:
- Size: 25.6 MB
- Stars: 513
- Watchers: 19
- Forks: 133
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [PYTORCH] Deep Q-learning for playing Flappy Bird
## 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## 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/flappy_bird**
## Requirements* **python 3.6**
* **pygame**
* **cv2**
* **pytorch**
* **numpy**