Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.19k stars 4.16k forks source link

The Unity environment took too long to respond #2343

Closed KarimHabashy closed 5 years ago

KarimHabashy commented 5 years ago

I am using Pycharm (with the same code in this link: https://github.com/Unity-Technologies/ml-agents/blob/master/notebooks/getting-started.ipynb) to connect to the toy enviroment from this link (https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Learning-Environment-Create-New.md)

Everything works fine until I lunch the script and I get a black screen then after few seconds I get this error:

"The Unity environment took too long to respond. Make sure that :\n" mlagents.envs.exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that : The environment does not need user interaction to launch The Academy's Broadcast Hub is configured correctly The Agents are linked to the appropriate Brains The environment and the Python interface have compatible versions.

This happens to the editor and built versions. I am using python 3.6, I am using the Anaconda environment as set by the tutorial. I am correctly configured the Academy. This enviroment works perfectly if I use "mlagents-learn" instead to train the agent. But some how when I use an external python API it freezes

Windows 10, version 1803 ML 0.8.2 This env: (https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Learning-Environment-Create-New.md

It is my first time posting, If I am missing something please let me know I have read many previous posts but nothing helps me

github-actions[bot] commented 3 years ago

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.