浏览代码

activate environment from executable

/bug-failed-api-check
Anupam Bhatnagar 4 年前
当前提交
e62f4c03
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 14
      ml-agents-envs/mlagents_envs/environment.py

14
ml-agents-envs/mlagents_envs/environment.py


"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, args)
# else:
# logger.info(
# f"Listening on port {self.port}. "
# f"Start training by pressing the Play button in the Unity Editor."
# )
if file_name is not None:
self.executable_launcher(file_name, docker_training, no_graphics, args)
else:
logger.info(
f"Listening on port {self.port}. "
f"Start training by pressing the Play button in the Unity Editor."
)
self._loaded = True
rl_init_parameters_in = UnityRLInitializationInputProto(

正在加载...
取消
保存