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

Receiving "KeyError: 'done'" #14

Open
mattgallivan opened this issue Mar 1, 2022 · 2 comments
Open

Receiving "KeyError: 'done'" #14

mattgallivan opened this issue Mar 1, 2022 · 2 comments

Comments

@mattgallivan
Copy link

mattgallivan commented Mar 1, 2022

I'm trying to integrate this project into UE5, Preview 1. It's all going well so far and thank you for releasing this! I am running into an issue, though, after calling the Launch Mind Maker node but before the receive actions or receive observations are called:

Traceback (most recent call last):
  File "threading.py", line 926, in _bootstrap_inner
  File "threading.py", line 870, in run
  File "site-packages\socketio\server.py", line 679, in _handle_event_internal
  File "site-packages\socketio\server.py", line 708, in _trigger_event
  File "mindmaker.py", line 271, in recieve
KeyError: 'done'

It seems to have something to do with how I package my parameter structure. I've tried to keep this as close to the cartpole example as possible but I may have missed something vital. I tried to look for the mindmaker.py source code but as it seems to be unavailable I'm posting here.

Any help is much appreciated!

@mattgallivan
Copy link
Author

I found the solution to this, of course, minutes after posting. I'm missing the Boolean done in my structure. Thanks!

@mattgallivan
Copy link
Author

Just to update with a similar issue. Everything is running fine (training a-okay) but if I use custom parameters for A2C (or any of the algorithms), the max_grad_norm key is serialized only as max and causes an error.

@mattgallivan mattgallivan reopened this Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant