资源算法FlappyBird DQN

FlappyBird DQN

2019-09-16 | |  98 |   0 |   0

|

Keras-FlappyBird

A single 200 lines of python code to demostrate DQN with Keras

Please read the following blog for details

https://yanpanlau.github.io/2016/07/10/FlappyBird-Keras.html

animation1.gif

Installation Dependencies:

  • Python 2.7

  • Keras 1.0

  • pygame

  • scikit-image

How to Run?

CPU only

git clone https://github.com/yanpanlau/Keras-FlappyBird.git
cd Keras-FlappyBird
python qlearn.py -m "Run"

GPU version (Theano)

git clone https://github.com/yanpanlau/Keras-FlappyBird.git
cd Keras-FlappyBird
THEANO_FLAGS=device=gpu,floatX=float32,lib.cnmem=0.2 python qlearn.py -m "Run"

If you want to train the network from beginning, delete the model.h5 and run qlearn.py -m "Train"

上一篇:deformable-convolution-pytorch

下一篇:A Structured Self-Attentive Sentence Embedding

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...