martinseilair / dm_control2gym Goto Github PK
View Code? Open in Web Editor NEWOpenAI Gym Wrapper for DeepMind Control Suite
OpenAI Gym Wrapper for DeepMind Control Suite
Hi @martinseilair ,
When I use your package, I encounter this error "pyglet.gl.lib.GLException: b'invalid operation'" which occurs in "
File "/dm_control2gym/viewer.py", line 20, in update
self.window.clear(). "
Do you know the solution? Thanks.
hi,when I execute the following test code,will report the following error. Looking forward to your reply
import gym
import dm_control2gym
env = dm_control2gym.make(domain_name="cartpole", task_name="balance")
/env/lib/python3.7/site-packages/glfw/init.py:906: GLFWError: (65544) b'X11: Failed to open display :0'
warnings.warn(message, GLFWError)
Traceback (most recent call last):
File "test-dm2gym.py", line 2, in
import dm_control2gym
File "/env/lib/python3.7/site-packages/dm_control2gym-0.0.4-py3.7.egg/dm_control2gym/init.py", line 3, in
File "/env/lib/python3.7/site-packages/dm_control2gym-0.0.4-py3.7.egg/dm_control2gym/wrapper.py", line 3, in
ImportError: cannot import name 'specs' from 'dm_control.rl' (/env/lib/python3.7/site-packages/dm_control/rl/init.py)
I got this error "TypeError: slice indices must be integers or None or have an index method".
This was because np.prod
function used in dm_control2gym/wrapper.py
line 62, 63 returned float value.
Converted them to int using int
function and it worked.
Didn't notice this before writing my own wrapper. Possibly of interest:
https://github.com/rejuvyesh/gym-dmcontrol
Reasons for template based approach?
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.