Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'obs_shape' #812

Closed
Tracked by #548
WangJuan6 opened this issue Jul 1, 2024 · 2 comments
Closed
Tracked by #548

KeyError: 'obs_shape' #812

WangJuan6 opened this issue Jul 1, 2024 · 2 comments
Labels
bug Something isn't working config Update config

Comments

@WangJuan6
Copy link

Dear Author,
I run the code by python ding/example/mappo.py, but I got an error:

Traceback (most recent call last):
  File "/data/projects/20240701/DI-engine/ding/example/mappo.py", line 45, in <module>
    main()
  File "/data/projects/20240701/DI-engine/ding/example/mappo.py", line 36, in main
    task.use(gae_estimator(cfg, policy.collect_mode))
  File "/home/wj/anaconda3/envs/di/lib/python3.9/site-packages/ding/framework/middleware/functional/advantage_estimator.py", line 35, in gae_estimator
    obs_shape = cfg['policy']['model']['obs_shape']
KeyError: 'obs_shape'

Can you help me to solve this problem?
Thanks

@PaParaZz1 PaParaZz1 added bug Something isn't working config Update config labels Jul 1, 2024
@PaParaZz1
Copy link
Member

Thanks for your feedback! We have fixed this problem in the latest commit.

@WangJuan6
Copy link
Author

It works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working config Update config
Projects
None yet
Development

No branches or pull requests

2 participants