ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Issues with training (not responsive after 10 min)

Open fast8wild opened this issue 8 years ago • 6 comments

As the title suggest, after attempting to train the AI for about 10 min, the program becomes irresponsive, slowing down my pc in the process with no more updates being registered in the Jupyter notebook. I have no idea what is causing this issue, but im willing to provide any necessary information in order to get a solid answer.

fast8wild avatar Jan 07 '18 19:01 fast8wild

Hi @fast8wild,

Can you try training with a new build of your environment that has the Time Scale property of Training Configuration under the Academy's inspector window set to something less than 100, such as 5 or 10?

awjuliani avatar Jan 07 '18 19:01 awjuliani

Hi @awjuliani, I actually have the Time Scale property set to 1 so I don't think that's what is causing the issue. I'll try 5 or 10 right now though just to be sure.

fast8wild avatar Jan 08 '18 05:01 fast8wild

It could be a bug in the environment. Do you see the same behavior on the balance ball ? I would recommend playing in the editor with a player brain for a while an have an eye on the profiler to make sure there are no issues.

vincentpierre avatar Jan 08 '18 10:01 vincentpierre

So after a lot of tinkering I found out that the problem does indeed lie with the environment. It is actually a puzzle game clone, and as a result there are a lot of object instating and destroying, which caused the performance issues I described earlier. Due to the nature of this game object pooling is not an option, so I will be looking into how to properly optimize this situation.

fast8wild avatar Jan 08 '18 20:01 fast8wild

Glad you were able to track down the issue. Hopefully you are able to find a fix. I am going to close the issue for now, since it seems to not be ML-Agents specific.

awjuliani avatar Jan 08 '18 20:01 awjuliani

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[bot] avatar Jan 04 '20 20:01 lock[bot]