浏览代码

Fixing name of MLAgentsSDK logfile.

/develop-generalizationTraining-TrainerController
Deric Pang 6 年前
当前提交
06695919
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      MLAgentsSDK/Assets/ML-Agents/Scripts/Academy.cs
  2. 2
      mlagents/envs/exception.py

2
MLAgentsSDK/Assets/ML-Agents/Scripts/Academy.cs


var pythonParameters = brainBatcher.SendAcademyParameters(academyParameters);
Random.InitState(pythonParameters.Seed);
Application.logMessageReceived += HandleLog;
logPath = Path.GetFullPath(".") + "/unity-environment.log";
logPath = Path.GetFullPath(".") + "/MLAgentsSDK.log";
logWriter = new StreamWriter(logPath, false);
logWriter.WriteLine(System.DateTime.Now.ToString());
logWriter.WriteLine(" ");

2
mlagents/envs/exception.py


"You can check the logfile for more information at {}".format(log_file_path))
except:
logger.error("An error might have occured in the environment. "
"No unity-environment.log file could be found.")
"No MLAgentsSDK.log file could be found.")
super(UnityTimeOutException, self).__init__(message)
正在加载...
取消
保存