浏览代码

New error when using In Editor Training with a non-zero worker-id (#1012)

/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
e60272f2
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      python/unityagents/environment.py

6
python/unityagents/environment.py


self.proc1 = None # The process that is started. If None, no process was started
self.communicator = self.get_communicator(worker_id, base_port)
# If the environment name is 'editor', a new environment will not be launched
# If the environment name is None, a new environment will not be launched
# If the worker-id is not 0 and the environment name is None, an error is thrown
if file_name is None and worker_id!=0:
raise UnityEnvironmentException(
"If the environment name is None, the worker-id must be 0 in order to connect with the Editor.")
if file_name is not None:
self.executable_launcher(file_name, docker_training, no_graphics)
else:

正在加载...
取消
保存