-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive rendering for SafetyGym #24
Comments
That might help. |
I'm just trying to render a gym env not pygame, any idea in which file I need to call env.render() in order for this to work? |
If I am not mistaken, you can still render the gym env as it is done here and get rid of all the pygame specific code... The render() function of line 22 should be the one you are interested in (the one from your gym env). Note: in the linked code, the extra callback to render the env is added to the |
I have instead added a call to the render() function in the from_gym.py step function, though it seems to only display the first frame and then goes black which is odd as the steps counter continues. Code below: def step(self, action):
Edit: I am using SafetyGym which uses Mujoco-py backend. |
You can move the env out of a subprocess/thread with In general, you can view videos in TensorBoard if your environment has an For mujoco specifically, you may want to check/change the env variable MUJOCO_PY, which I set to |
Hey @danijar excellent work with DreamerV3! Do you know is there any simple way to "play together" with the AI e.g. in Crafter? Meaning if I press a key, it takes an action in the game (while the AI is playing) |
Hi there,
Thanks for the codebase, an awesome algorithm to play around with. I'm trying to render the env to sanity check the agent and am wondering how this is done. I've tried calling the render function in the from_gym.py script but this is not working. Simply running env.render in the step function also is not working.
Any help appreciated, thanks.
The text was updated successfully, but these errors were encountered: