pip install git+https://github.com/carlosluis/stable-baselines3@fix_tests
- in line 329, change like ->
if observation[0][key].shape != subspace.shape:
C:\Users\anaconda3\envs\YOUR_VIRTUAL_ENV_NAME\Lib\site-packages\stable_baselines3\common\policies.py
- in line 250,251 change like ->
for key, subspace in self.observation_space.spaces.items():
observation = observation.reshape((-1, ) + subspace.shape)
observation_ = observation[0][0]
observation = obs_as_tensor(observation_, self.device)