Skip to content

Moonbohoon/Undergraduate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Undergraduate

Stable Baseline3

pip install git+https://github.com/carlosluis/stable-baselines3@fix_tests

After install SB3, To work in my custion Env, have to revise SB3 modules like thoses:

C:\Users\anaconda3\envs\YOUR_VIRTUAL_ENV_NAME\Lib\site-packages\stable_baselines3\common\utils.py

  • 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)

now error is

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages