Doesn't work with (non-atari) env
See original GitHub issueIt would be super useful for me to see an example of how to use a custom gym environment. Is there an example of this somewhere?
The problem with built-in atari environment is I’m not sure where rlpyt begins and environment ends.
One thing I find a bit confusing is the info_dict. It’s not clear to me at which point I have to wrap it (or does the env wrapper wrap it automatically)?
Let’s say we had a simple env like:
class DummyEnv(gym.Env):
def __init__(self):
self.action_space = spaces.Discrete(2)
self.observation_space = spaces.Discrete(10)
def reset(self):
return 0
def step(self, action):
obs, rew, done, info = 0, 1, True, {}
return obs, rew, done, info
what are the steps I would need to take to wrap it?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Error in importing environment OpenAI Gym - Stack Overflow
-pip install gym[atari] no longer distributes Atari ROMs that the ALE (the Atari emulator used) needs to run the various games.
Read more >Atari Environments - endtoend.ai
In No-op start setting, the agent selects the “do nothing” action for up to 30 times at the start of an episode. providing...
Read more >gym 0.6.0 - PyPI
OpenAI Gym is a toolkit for developing and comparing reinforcement learning algorithms. This is the gym open-source library, which gives you access to...
Read more >Need help with this error when trying to use openai gym for ...
When you use third party environments, make sure to explicitly import the module containing that environment. That is, before calling gym.make(" ...
Read more >Why does the Atari Gym Amidar environment only move after ...
I suggest creating a gym wrapper to change the reset function of the ... Since the initial 85 frames are not influenced by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem with a simple example based on one of the examples in the repo. It’d be good to have more documentation on how to do this (if it works). I’ve tried different other combinations of methods without success such as using
gym_make
directly.@frankie4fingers OK thanks for explaining the problem and the quick workaround. I’m still a bit surprised by this, because I’ve run gym envs in parallel before. And when the child process looks for
ntc=global().get(name)
and it’s not there, it should end up withntc=None
and build it within it’s own module globals…hmm OK i’ll giveexample3.py
a run and see…