Skip to content

Commit 1e5bf1c

Browse files
Fixed precommit issues.
1 parent 81e0baa commit 1e5bf1c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/Python-LLAPI-Documentation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ class UnityEnvironment(BaseEnv)
634634
#### \_\_init\_\_
635635

636636
```python
637-
| __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)
637+
| __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)
638638
```
639639

640640
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.
646646
If no environment is specified (i.e. file_name is None), the DEFAULT_EDITOR_PORT will be used.
647647
:int worker_id: Offset from base_port. Used for training multiple environments simultaneously.
648648
:bool no_graphics: Whether to run the Unity simulator in no-graphics mode
649+
:bool no_graphics_monitor: Whether to run the main worker in graphics mode, with the remaining in no-graphics mode
649650
:int timeout_wait: Time (in seconds) to wait for connection from environment.
650651
:list args: Addition Unity command line arguments
651652
:list side_channels: Additional side channel for no-rl communication with Unity

ml-agents/mlagents/trainers/cli_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def _create_parser() -> argparse.ArgumentParser:
302302
default=False,
303303
action=DetectDefaultStoreTrue,
304304
help="Whether to run the main Unity worker in graphics mode with the remaining workers in no graphics mode"
305-
"(i.e. without initializing the graphics driver. Use this only if your agents don't use visual "
306-
"observations.",
305+
"(i.e. without initializing the graphics driver. Use this only if your agents don't use visual "
306+
"observations.",
307307
)
308308

309309
torch_conf = argparser.add_argument_group(title="Torch Configuration")

0 commit comments

Comments
 (0)