-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy patheval_runner_cli.py
More file actions
78 lines (75 loc) · 2.73 KB
/
Copy patheval_runner_cli.py
File metadata and controls
78 lines (75 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (c) 2025-2026, The Isaac Lab Arena Project Developers (https://github.com/isaac-sim/IsaacLab-Arena/blob/main/CONTRIBUTORS.md).
# All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
import argparse
def add_eval_runner_arguments(parser: argparse.ArgumentParser) -> None:
"""Add eval runner specific arguments to the parser."""
parser.add_argument(
"--eval_jobs_config",
type=str,
default="isaaclab_arena_environments/eval_jobs_configs/zero_action_jobs_config.json",
help="Path to the eval jobs config file.",
)
parser.add_argument(
"--record_viewport_video",
action="store_true",
default=False,
help="Record viewport videos for each eval job.",
)
parser.add_argument(
"--record_camera_video",
action="store_true",
default=False,
help="Record one mp4 per (env, camera, episode) from obs['camera_obs'] for each eval job.",
)
parser.add_argument(
"--output_base_dir",
type=str,
default="/eval/output",
help=(
"Base directory for evaluation outputs (videos, per-episode results, report); a"
" reverse-dated run subdirectory and per-job subdirectory are added."
),
)
parser.add_argument(
"--serve_evaluation_report",
action="store_true",
default=False,
help="After all jobs finish, serve the evaluation report over HTTP.",
)
parser.add_argument(
"--evaluation_report_port",
type=int,
default=8000,
help="Port to serve the evaluation report on when --serve_evaluation_report is set. Defaults to 8000.",
)
parser.add_argument(
"--serve_evaluation_report",
action="store_true",
default=False,
help="After all jobs finish, serve the evaluation report over HTTP.",
)
parser.add_argument(
"--evaluation_report_port",
type=int,
default=8000,
help="Port to serve the evaluation report on when --serve_evaluation_report is set. Defaults to 8000.",
)
parser.add_argument(
"--continue_on_error",
action="store_true",
default=False,
help="Continue evaluation with remaining jobs when a job fails instead of stopping immediately.",
)
parser.add_argument(
"--chunk_size",
type=int,
default=None,
help=(
"Run jobs in chunks of at most this many, one fresh subprocess per chunk."
" Each restart lets the OS reclaim accumulated memory, avoiding OOM on"
" long sweeps. Default unset — single process. Leave unset for normal runs;"
" set only if a long sweep grows in host memory or gets OOM-killed."
),
)