From 1e5bf1cca08889b26869f89b04189af70df48095 Mon Sep 17 00:00:00 2001 From: Miguel Alonso Jr Date: Tue, 21 Nov 2023 22:44:09 -0500 Subject: [PATCH] Fixed precommit issues. --- docs/Python-LLAPI-Documentation.md | 3 ++- ml-agents/mlagents/trainers/cli_utils.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Python-LLAPI-Documentation.md b/docs/Python-LLAPI-Documentation.md index dfd868ca05f..896550e4ad6 100644 --- a/docs/Python-LLAPI-Documentation.md +++ b/docs/Python-LLAPI-Documentation.md @@ -634,7 +634,7 @@ class UnityEnvironment(BaseEnv) #### \_\_init\_\_ ```python - | __init__(file_name: Optional[str] = None, worker_id: int = 0, base_port: Optional[int] = None, seed: int = 0, no_graphics: bool = False, timeout_wait: int = 60, additional_args: Optional[List[str]] = None, side_channels: Optional[List[SideChannel]] = None, log_folder: Optional[str] = None, num_areas: int = 1) + | __init__(file_name: Optional[str] = None, worker_id: int = 0, base_port: Optional[int] = None, seed: int = 0, no_graphics: bool = False, no_graphics_monitor: bool = False, timeout_wait: int = 60, additional_args: Optional[List[str]] = None, side_channels: Optional[List[SideChannel]] = None, log_folder: Optional[str] = None, num_areas: int = 1) ``` Starts a new unity environment and establishes a connection with the environment. @@ -646,6 +646,7 @@ Ensure that the network where training takes place is secure. If no environment is specified (i.e. file_name is None), the DEFAULT_EDITOR_PORT will be used. :int worker_id: Offset from base_port. Used for training multiple environments simultaneously. :bool no_graphics: Whether to run the Unity simulator in no-graphics mode +:bool no_graphics_monitor: Whether to run the main worker in graphics mode, with the remaining in no-graphics mode :int timeout_wait: Time (in seconds) to wait for connection from environment. :list args: Addition Unity command line arguments :list side_channels: Additional side channel for no-rl communication with Unity diff --git a/ml-agents/mlagents/trainers/cli_utils.py b/ml-agents/mlagents/trainers/cli_utils.py index 104e4b47b5b..30066717a7e 100644 --- a/ml-agents/mlagents/trainers/cli_utils.py +++ b/ml-agents/mlagents/trainers/cli_utils.py @@ -302,8 +302,8 @@ def _create_parser() -> argparse.ArgumentParser: default=False, action=DetectDefaultStoreTrue, help="Whether to run the main Unity worker in graphics mode with the remaining workers in no graphics mode" - "(i.e. without initializing the graphics driver. Use this only if your agents don't use visual " - "observations.", + "(i.e. without initializing the graphics driver. Use this only if your agents don't use visual " + "observations.", ) torch_conf = argparser.add_argument_group(title="Torch Configuration")