openai / spinningup

An educational resource to help anyone learn deep reinforcement learning.
https://spinningup.openai.com/
MIT License
10.18k stars 2.23k forks source link

DDPG tuple index out of range for cartpole #374

Closed Hodginson closed 2 years ago

Hodginson commented 2 years ago

I get the following error when trying to run cart pole in DDPG, it seems to think there is no action space and was working fine yesterday but trying to run it now gives me the error.

Traceback (most recent call last): File "/mnt/c/Users/rawso/Downloads/spinningup/spinup/utils/run_entrypoint.py", line 11, in thunk() File "/mnt/c/Users/rawso/Downloads/spinningup/spinup/utils/run_utils.py", line 162, in thunk_plus thunk(**kwargs) File "/mnt/c/Users/rawso/Downloads/spinningup/spinup/algos/pytorch/ddpg/ddpg.py", line 142, in ddpg act_dim = env.action_space.shape[0] IndexError: tuple index out of range