ravi72munde / chrome-dino-reinforcement-learning Goto Github PK
View Code? Open in Web Editor NEWAn RL implementation in Keras
Home Page: https://medium.com/acing-ai/how-i-build-an-ai-to-play-dino-run-e37f37bdf153
License: MIT License
An RL implementation in Keras
Home Page: https://medium.com/acing-ai/how-i-build-an-ai-to-play-dino-run-e37f37bdf153
License: MIT License
/usr/local/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Now we build the model
We finish building the model
Traceback (most recent call last):
File "Chrome-dino.py", line 444, in
playGame(observe=False);
File "Chrome-dino.py", line 373, in playGame
trainNetwork(model,game_state,observe=observe)
File "Chrome-dino.py", line 223, in trainNetwork
D = load_obj("D") #deque()
File "Chrome-dino.py", line 155, in load_obj
with open('objects/' + name + '.pkl', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'objects/D.pkl'
The above is my terminal log, I am trying to run it in mac, looking forward if someone can help me resolve this issue.
FileNotFoundError Traceback (most recent call last)
in ()
----> 1 playGame(observe=True);
in playGame(observe)
5 model = buildmodel()
6 try:
----> 7 trainNetwork(model,game_state,observe=observe)
8 except StopIteration:
9 game.end()
in trainNetwork(model, game_state, observe)
9 last_time = time.time()
10 # store the previous observations in replay memory
---> 11 D = load_obj("D") #load from file system
12 # get the first state by doing nothing
13 do_nothing = np.zeros(ACTIONS)
in load_obj(name)
4
5 def load_obj(name ):
----> 6 with open('objects/' + name + '.pkl', 'rb') as f:
7 return pickle.load(f)
8 def grab_screen(_driver = None):
FileNotFoundError: [Errno 2] No such file or directory: 'objects/D.pkl'
Thanks for this article. I didn’t understand how did you know Runner
is for checking the state like current score, gamer running or not, crashed or not, resume, start, …
Is that present in every canvas game? Mean did it work only for chrome://dino ? How can I find out Runner
kind of variable to check the game state in other websites?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.