intelligent-environments-lab / CityLearn

Official reinforcement learning environment for demand response and load shaping
MIT License
462 stars 167 forks source link

Error while running citylearn_sb3.py #28

Closed anujshah1003 closed 1 year ago

anujshah1003 commented 2 years ago

on running the line env = ss.pettingzoo_env_to_vec_env_v1(citylearn_pettingzoo_env)

I get the error as AssertionError: observation spaces not consistent. Perhaps you should wrap with supersuit.aec_wrappers.pad_observations?

when i change to env = ss.pad_observations_v0(citylearn_pettingzoo_env)

creating env does not throws any error

but on calling the model, it throws error as

File "C:\Users\anuj\Anaconda3\envs\city_challenge\lib\site-packages\stable_baselines3\common\vec_env\util.py", line 74, in obs_space_info shapes[key] = box.shape

AttributeError: 'function' object has no attribute 'shape'

Anyone knows how we can train models from sb3 for citylearn

kingsleynweye commented 1 year ago

@anujshah1003 Please refer to this previous issue fo questions concerning citylearn_sb3.py.