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

IndexOutOfRangeException: Index was outside the bounds of the array. #29

Closed
anktplwl91 opened this issue Sep 22, 2017 · 6 comments
Closed
Labels
bug Issue describes a potential bug in ml-agents.

Comments

@anktplwl91
Copy link

While running the 3DBall example, I am getting IndexOutOfBounds exception for the Platform agent. Here's the snippet for the error
capture

I thought changing the value of Action Size parameter in Inspector window to 8 might solve the issue, but that just gives me another error
capture1

@eagleEggs
Copy link

eagleEggs commented Sep 22, 2017

While putting together custom agents, Im seeing the same issue reported only though the Jupyter training function though (PPO book). Would love to figure this out :D

No matter how many states or changing state total within the inspector - it's returning the same result.

edit: Actually I'll probably create another issue as it may be unrelated, but has to do with the state index.

@vincentpierre
Copy link
Contributor

@anktplwl91 It seems to me your brain has State Size set to 0 when it should be 8 and Action Size set to 0 when it should be 2. In the Inspector on your Brain component, what are the Brain Parameters set to?

@awjuliani awjuliani added the bug Issue describes a potential bug in ml-agents. label Sep 23, 2017
@anktplwl91
Copy link
Author

Hi @vincentpierre, the brain parameters State Size and Action Size were indeed set wrong. But now that I changed these to 8 and 2 respectively, I am still getting below NullPointerException.

capture

@vincentpierre
Copy link
Contributor

@anktplwl91 I think you must change your action space type from discrete to continuous in your brain parameters. Let me know if this helps.

@anktplwl91
Copy link
Author

Hi @vincentpierre, changing the action space to continuous has worked and the game is working fine now. Thanks a lot.

@lock
Copy link

lock bot commented Jan 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue describes a potential bug in ml-agents.
Projects
None yet
Development

No branches or pull requests

4 participants