elvisyjlin / gym-chrome-dino Goto Github PK
View Code? Open in Web Editor NEWAn OpenAI Gym environment for Chrome Dino / T-Rex Runner Game
License: MIT License
An OpenAI Gym environment for Chrome Dino / T-Rex Runner Game
License: MIT License
As
env = gym.make('CartPole-v0').unwrapped
env.reset()
Returns
array([ 0.0286644 , -0.0473783 , -0.01396534, 0.03493663])
Your agent returns memory location, why that?
This package does instasll completely fine in my normal python environment. But, when I tried to install this package in colab the installation go stuck for 37 minutes until I cancelled it, I tried again but it always got stuck.
So, is there any solution to this? Am I missing a dependency?
I looked into the game file, it says 2 acts for crouch movement. But when I create the environment, it does not crouch - just stand still. Also, 0 make the dino jump instead of just running.
env = gym.make('ChromeDino-v0')
env = make_dino(env, timer=True, frame_stack=True)
state = env.reset()
done = False
score = 0
while True:
# action = np.random.choice(np.arange(1,4))
action = 2
state, reward, done, _ = env.step(action)
score += reward
if done:
state = env.reset()
It fails to run on Colab with the following error. Could someone help me out here?
WebDriverException Traceback (most recent call last)
in ()
----> 1 env = gym.make('ChromeDinoNoBrowser-v0')
2 #env = make_dino(env, timer=True, frame_stack=True)
7 frames
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
109 raise WebDriverException(
110 'Service %s unexpectedly exited. Status code was: %s'
--> 111 % (self.path, return_code)
112 )
113
WebDriverException: Message: Service ./chromedriver unexpectedly exited. Status code was: -6
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.