Closed zfwang615 closed 1 year ago
Hey! Sounds like something has gone off with the changes for Gym support. Make sure you are using the newest code when trying things out (clone from the github), but beyond that I do not have bandwidth to debug what could have gone wrong :(.
Hey, stable baselines 3 doesn't support current versions of gym/gymnasium, but has publicly promised to soon. You can either use their beta fork with support for newer versions, wait for them to update, use an older version of this package with an older version of gym, or try cleanrl or another library instead of sb3
I'm trying to use examples/python/learning_stable_baselines.py. This example has some questions. By the way,
learning_pytorch.py
works well.MY ENV INFO:
First, the env is using 'screen' instead 'rgb' now.
After that, I got followed error:
in SB3
dummy_vec_env.py
, the error occurredself.buf_obs[key][env_idx]=obs
obs_space
is a Box(0, 255, (60, 80, 3), uint8)self.keys
is Noneself.buf_obs[key][env_idx]
is a np.ndarrayobs
is a tupleCould you give me some advice? Thanks in advance for any help.