首先说明,该篇博客是在ubuntu16.04+gtx1060+cuda8.0+tensorflow源码安装、测试经历基础上进行实验,gtx 1060显卡驱动、cuda、cudnn和tensorflow安装这里不再赘述。
打个广告:目前博主正在字节跳动奋斗,欢迎各位一起来共事
【内推码】:HVWUV6Y
【投递地址】:https://job.bytedance.com/
废话不多说,上车吧,少年
一、Flappy Bird
-
载入源码,终端输入
git clone https://github.com/yenchenlin/DeepLearningFlappyBird.git
-
安装依赖,终端输入
sudo pip install pygame
sudo pip install OpenCV-Python
-
直接实验,终端输入
cd ~/DeepLearningFlappyBird/
python deep_q_network.py
-
实验结果