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

mujuco_ppo_hl_multi,py #1235

Open
weizeqi opened this issue Jan 17, 2025 · 1 comment
Open

mujuco_ppo_hl_multi,py #1235

weizeqi opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@weizeqi
Copy link

weizeqi commented Jan 17, 2025

In tianshou/examples/mujoco
/mujoco_ppo_hl_multi.py
i met a problem:
File "/data1/wzq/PPO/multi.py", line 140, in main
rliable_result = RLiableExperimentResult.load_from_disk(persistence_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wzq25/tianshou/tianshou/evaluation/rliable_evaluation_hl.py", line 147, in load_from_disk
test_data = LoggedCollectStats.from_data_dict(restored_test_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wzq25/tianshou/tianshou/evaluation/rliable_evaluation_hl.py", line 52, in from_data_dict
data[k] = LoggedSummaryData(**v)
^^^^^^^^^^^^^^^^^^^^^^
TypeError: LoggedSummaryData.init() got an unexpected keyword argument '0'

In debugger, the v was:

{'0': {'max': [0.60653067 0.60536045], 'mean': [0.60653067 0.60536051], 'min': [0.60653067 0.60536045], 'std': [0.00000000e+00 5.96046448e-08]}, '1': {'max': [0.60653067 0.60372454], 'mean': [0.60653067 0.60372448], 'min': [0.60653067 0.60372454], 'std': [0.00000000e+00 5.96046448e-08]}, '2': {'max': [0.60653067 0.6062029 ], 'mean': [0.60653067 0.60620296], 'min': [0.60653067 0.6062029 ], 'std': [0.00000000e+00 5.96046448e-08]}}

so it is a multi-dimension dict, how to solve it?

@MischaPanch
Copy link
Collaborator

Thanks for reporting, I will have a look tomorrow and will get back to you.

@MischaPanch MischaPanch self-assigned this Jan 26, 2025
@MischaPanch MischaPanch added the bug Something isn't working label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants