danijar / dreamerv3

Mastering Diverse Domains through World Models
https://danijar.com/dreamerv3
MIT License
1.28k stars 219 forks source link

list index out of range error #76

Closed jadkins99 closed 1 year ago

jadkins99 commented 1 year ago

Hi, when I attempt to run basic gym envs from the example script, there is a list index out of range error. Screenshots are from an attempt to run Pendulum-v1.

Screenshot 2023-07-31 at 6 51 34 PM Screenshot 2023-07-31 at 6 51 31 PM
danijar commented 1 year ago

Hi, thanks for opening an issue about this. Curious what caused it and how you fixed it?

jesuspc commented 11 months ago

I had the same problem when trying to reuse example.py with a non-image custom env. It went away after commenting out the following lines:

  #'encoder.mlp_keys': '$^',
  #'decoder.mlp_keys': '$^',
  #'encoder.cnn_keys': 'image',
  #'decoder.cnn_keys': 'image',