Closed haudren closed 6 years ago
Hi @haudren , I think it is possible to use multiple wrappers. E.g. check out: https://github.com/dgriff777/rl_a3c_pytorch/blob/master/environment.py This guy uses about 5 wrappers. ;-)
You're right, it's actually impossible to wrap twice with the same wrapper an environment, not double-wrapping. It would help if the message was more informative (Basically, I had a bug and was flattening my GoalEnv twice).
I am trying to run a "new-style" gym, i.e. one that returns a dictionary of
observation, desired_goal, achieved_goal
in theddpg
baseline. If I attempt to use theevaluation
option, the program crashes because it's trying to wrap the original environment first inFlattenDictWrapper
and then inMonitor
.Why is it impossible to wrap an environment in multiple wrappers ? In this case, it would be very useful to both flatten and monitor.