tristandeleu / pytorch-maml-rl

Reinforcement Learning with Model-Agnostic Meta-Learning in Pytorch
MIT License
827 stars 158 forks source link

AttributeError: 'Box' object has no attribute 'n' #10

Closed dragen1860 closed 6 years ago

dragen1860 commented 6 years ago

Dear author: When I try to run some experiements such as "Hopper-v2", it occures:

Traceback (most recent call last):
  File "main.py", line 151, in <module>
    main(args)
  File "main.py", line 52, in main
    sampler.envs.action_space.n,
AttributeError: 'Box' object has no attribute 'n'

Why?

tristandeleu commented 6 years ago

The only environments working with this implementation right now are the ones provided in envs, which are the environment defined in the two papers I am referencing in the README. MAML needs a gym environment where one can define different tasks. If you want to make something similar for Hopper, I suggest you have a look at the MuJoCo environments to adapt Hopper with a similar API. PR would be really appreciated if you make it work!