andywu0913 / openai-gym-carracing-dqn Goto Github PK
View Code? Open in Web Editor NEWTrain a DQN Agent to play CarRacing 2d using TensorFlow and Keras.
Train a DQN Agent to play CarRacing 2d using TensorFlow and Keras.
This is really awesome work! Can you possibly add either a pip
requirements.txt
file or a conda
environment.yml
file with the dependencies and version numbers you used so that I can more easily replicate your work?
when I run "python play_car_racing_with_keyboard.py", it freshed a window then closed, jump out this error
Env: macos big sur
PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
result = entry_point.load(False)
Track generation: 1165..1460 -> 295-tiles track
Traceback (most recent call last):
File "play_car_racing_with_keyboard.py", line 91, in
state = env.reset()
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/core.py", line 104, in reset
return self._reset()
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/wrappers/time_limit.py", line 49, in _reset
return self.env.reset()
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/core.py", line 104, in reset
return self._reset()
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/envs/box2d/car_racing.py", line 292, in _reset
return self._step(None)[0]
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/envs/box2d/car_racing.py", line 304, in _step
self.state = self._render("state_pixels")
File "/Users/steveniiv/config/anaconda3/envs/DRL/lib/python3.7/site-packages/gym/envs/box2d/car_racing.py", line 380, in _render
arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
AttributeError: 'ImageData' object has no attribute 'data'
Hello. Congratulations on the development of DQN.
I am an engineering student and would like to do your coding.
I'm having trouble running play_car_racing_by_the_model.py
I am not understanding the parameters to initialize the code:
play_car_racing_by_the_model.py [-h] -m 'save / trial_300.h5' [-e 1]
-m is a string? I am putting the save folder path though it is giving invalid syntax.
Please, could you help me ??
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.