schola.scripts.common.ScriptArgs
- class schola.scripts.common.ScriptArgs(enable_checkpoints=False, checkpoint_dir=‘./ckpt’, save_freq=100000, name_prefix_override=None, export_onnx=False, save_final_policy=False, launch_unreal=False, port=None, unreal_path=None, headless=False, map=None, fps=None, disable_script=False)[source]
-
Bases:
object
Arguments for included scripts
Methods
__init__
([enable_checkpoints, …])Create an Unreal Engine connection based on the script arguments.
Attributes
Enable saving checkpoints.
Flag indicating if the autolaunch script setting in the Unreal Engine Schola Plugin should be disabled.
Enable saving checkpoints
Whether to export the model to ONNX format instead of just saving a checkpoint.
Fixed FPS to use when running standalone, if None no fixed timestep is used
Flag indicating if the standalone Unreal Engine process should run in headless mode
Flag indicating if the script should launch a standalone Unreal Engine process
Map to load when launching a standalone Unreal Engine process
Override the name prefix for the checkpoint files (e.g. SAC, PPO, etc.).
Port to connect to the Unreal Engine process, if None an open port will be automatically selected when running standalone.
Whether to save the final policy after training is complete.
Frequency with which to save checkpoints.
Path to the Unreal Engine executable, when launching a standalone Unreal Engine process
- Parameters:
- __init__(enable_checkpoints=False, checkpoint_dir=‘./ckpt’, save_freq=100000, name_prefix_override=None, export_onnx=False, save_final_policy=False, launch_unreal=False, port=None, unreal_path=None, headless=False, map=None, fps=None, disable_script=False)
-
- Parameters:
- Return type:
-
None
- checkpoint_dir: str = ‘./ckpt’
-
Enable saving checkpoints.
- disable_script: bool = False
-
Flag indicating if the autolaunch script setting in the Unreal Engine Schola Plugin should be disabled. Useful for testing.
- enable_checkpoints: bool = False
-
Enable saving checkpoints
- export_onnx: bool = False
-
Whether to export the model to ONNX format instead of just saving a checkpoint.
- headless: bool = False
-
Flag indicating if the standalone Unreal Engine process should run in headless mode
- launch_unreal: bool = False
-
Flag indicating if the script should launch a standalone Unreal Engine process
- make_unreal_connection()[source]
-
Create an Unreal Engine connection based on the script arguments.
- Returns:
-
The Unreal Engine connection to use for the script.
- Return type:
- name_prefix_override: str = None
-
Override the name prefix for the checkpoint files (e.g. SAC, PPO, etc.)
- port: int | None = None
-
Port to connect to the Unreal Engine process, if None an open port will be automatically selected when running standalone. Port is required if connecting to an existing Unreal Engine process.
- save_final_policy: bool = False
-
Whether to save the final policy after training is complete.
- save_freq: int = 100000
-
Frequency with which to save checkpoints.