Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ignore all pyc files.
*.pyc

*.venv
*/.venv
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This project follows the description of the Deep Q Learning algorithm described

## Installation Dependencies:
* Python 2.7 or 3
* TensorFlow 0.7
* TensorFlow >= 1.15.0
* pygame
* OpenCV-Python

Expand Down
6 changes: 3 additions & 3 deletions deep_q_network.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python
from __future__ import print_function

import tensorflow as tf
import tensorflow.compat.v1 as tf # type: ignore
tf.disable_v2_behavior() # Changed: Preserves the latest TensorFlow (old-legacy) features
import cv2
import sys
sys.path.append("game/")
import wrapped_flappy_bird as game
import wrapped_flappy_bird as game # type: ignore
import random
import numpy as np
from collections import deque
Expand Down