浏览代码

Update Timeout error messages (#1750)

/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
a84dccab
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3
      ml-agents/mlagents/envs/rpc_communicator.py
  2. 3
      ml-agents/mlagents/envs/socket_communicator.py

3
ml-agents/mlagents/envs/rpc_communicator.py


raise UnityTimeOutException(
"The Unity environment took too long to respond. Make sure that :\n"
"\t The environment does not need user interaction to launch\n"
"\t The Academy and the External Brain(s) are attached to objects in the Scene\n"
"\t The Academy's Broadcast Hub is configured correctly\n"
"\t The Agents are linked to the appropriate Brains\n"
"\t The environment and the Python interface have compatible versions.")
aca_param = self.unity_to_external.parent_conn.recv().unity_output
message = UnityMessage()

3
ml-agents/mlagents/envs/socket_communicator.py


raise UnityTimeOutException(
"The Unity environment took too long to respond. Make sure that :\n"
"\t The environment does not need user interaction to launch\n"
"\t The Academy and the External Brain(s) are attached to objects in the Scene\n"
"\t The Academy's Broadcast Hub is configured correctly\n"
"\t The Agents are linked to the appropriate Brains\n"
"\t The environment and the Python interface have compatible versions.")
message = UnityMessage()
message.header.status = 200

正在加载...
取消
保存