From abcc16b8c1ddb90cb179a145fb4adb492c0fdfbc Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 10:23:23 -0600 Subject: [PATCH 01/10] fix: write the result file with the process umask The result file was created with mode 0600 under any umask. Another user could read the dataset and the attempt log of a run, but the metrics report refused the run. The result file now follows the umask, like the dataset and the attempt log, and the write stays atomic. Signed-off-by: Billy Okal --- .../utils/test_generation_result.py | 23 ++++++++++++------- autodata_tests/utils/utils.py | 1 - autodata_utils/generation_result.py | 12 +++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/autodata_tests/utils/test_generation_result.py b/autodata_tests/utils/test_generation_result.py index d34b761..4120213 100644 --- a/autodata_tests/utils/test_generation_result.py +++ b/autodata_tests/utils/test_generation_result.py @@ -4,21 +4,28 @@ """Tests for structured data-generation result files.""" import json +import os +import stat from pathlib import Path from autodata_utils.generation_result import AttemptLog, attempts_file_for, code_revision, write_generation_result -def test_write_generation_result_writes_completed_stats_atomically(tmp_path): +def test_write_generation_result_writes_completed_stats_atomically_with_the_umask_mode(tmp_path): result_file = tmp_path / "results" / "generation_result.json" - write_generation_result( - result_file=str(result_file), - algorithm="mimicgen", - requested_trials=10, - stats={"num_success": 8, "num_failures": 2, "num_attempts": 10}, - ) - + umask = os.umask(0o007) + try: + write_generation_result( + result_file=str(result_file), + algorithm="mimicgen", + requested_trials=10, + stats={"num_success": 8, "num_failures": 2, "num_attempts": 10}, + ) + finally: + os.umask(umask) + + assert stat.S_IMODE(result_file.stat().st_mode) == 0o660 with result_file.open(encoding="utf-8") as result_handle: result = json.load(result_handle) assert result == { diff --git a/autodata_tests/utils/utils.py b/autodata_tests/utils/utils.py index 49bf718..9fe5260 100644 --- a/autodata_tests/utils/utils.py +++ b/autodata_tests/utils/utils.py @@ -173,7 +173,6 @@ def _export_benchmark_files(source_dir: str, name: str) -> None: for file_name in os.listdir(source_dir): path = os.path.join(source_dir, file_name) if os.path.isfile(path) and not file_name.endswith(".hdf5"): - # copyfile, not copy2: the result file is written 0600, and another user may upload the copy. shutil.copyfile(path, os.path.join(export_dir, file_name)) diff --git a/autodata_utils/generation_result.py b/autodata_utils/generation_result.py index a79fe79..0fd097e 100644 --- a/autodata_utils/generation_result.py +++ b/autodata_utils/generation_result.py @@ -11,7 +11,7 @@ import os import shutil import subprocess -import tempfile +import uuid from collections.abc import Mapping from pathlib import Path from typing import Any @@ -60,19 +60,19 @@ def write_generation_result( if run_metadata is not None: result["run"] = dict(run_metadata) - file_descriptor, temporary_file_name = tempfile.mkstemp( - prefix=f".{result_path.name}.", suffix=".tmp", dir=result_path.parent, text=True - ) + # The result follows the umask, like the dataset and the attempt log, so that other users can read it. + temporary_path = result_path.with_name(f".{result_path.name}.{uuid.uuid4().hex}.tmp") + file_descriptor = os.open(temporary_path, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o666) try: with os.fdopen(file_descriptor, "w", encoding="utf-8") as result_handle: json.dump(result, result_handle, indent=2, sort_keys=True) result_handle.write("\n") result_handle.flush() os.fsync(result_handle.fileno()) - os.replace(temporary_file_name, result_path) + os.replace(temporary_path, result_path) finally: with contextlib.suppress(FileNotFoundError): - os.unlink(temporary_file_name) + os.unlink(temporary_path) def attempts_file_for(result_file: str, run_id: str) -> str: From 67bd472dcc9dfa7217486fe637c08430ef34cf28 Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 10:23:23 -0600 Subject: [PATCH 02/10] fix(metrics): warn about a missing attempt log, make the report folder When the attempt log of a run is missing, the report now warns. For a dataset with a run id, the run metrics then say that they need the attempt log or the result file of a completed run, not --record_metric_inputs. --report_file creates its directory, so the gate verdict still prints. Signed-off-by: Billy Okal --- autodata_metrics/report.py | 10 ++++++++-- autodata_tests/metrics/test_report.py | 16 +++++++++++++++- autodata_tests/utils/test_validate_dataset.py | 3 +++ scripts/validate_dataset.py | 1 + 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/autodata_metrics/report.py b/autodata_metrics/report.py index 82153dc..0ca22df 100644 --- a/autodata_metrics/report.py +++ b/autodata_metrics/report.py @@ -55,7 +55,9 @@ def read_run( return result, None, warnings text = _read_text(attempts_path) attempts = None - if text is not None: + if text is None: + warnings.append(f"{attempts_path} does not exist") + else: attempts = [ parse(_json(line, attempts_path), ATTEMPT, f"{attempts_path} line {number}") for number, line in enumerate(text.splitlines(), start=1) @@ -497,7 +499,11 @@ def _not_computed_because(row: Mapping[str, Any], inputs: Mapping[str, Any]) -> if missing.startswith("source."): return "needs a --source annotated with --record_metric_inputs" if missing == "attempts" or missing.startswith("run."): - return "needs --result_file" if inputs["result_file"] is None else "needs --record_metric_inputs" + if inputs["result_file"] is None: + return "needs --result_file" + if inputs["run_id"] is None: + return "needs --record_metric_inputs" + return "needs the run's attempt log" if missing == "attempts" else "needs the result file of a completed run" if missing.startswith("attempts.extras."): return "not reported by this algorithm" if missing.startswith(_METRIC_INPUT_KEYS): diff --git a/autodata_tests/metrics/test_report.py b/autodata_tests/metrics/test_report.py index 88c2a92..98f026c 100644 --- a/autodata_tests/metrics/test_report.py +++ b/autodata_tests/metrics/test_report.py @@ -197,6 +197,7 @@ def test_console_summary_marks_the_gate_and_says_how_to_compute_the_rest(tmp_pat "rate": _spec("rate", lambda ev: Value(0.25, n=4)), "held": _spec("held", lambda ev: Value(1.0, n=1), ("step_success",)), "planned": _spec("planned", lambda ev: Value(1.0, n=1), ("attempts.extras.planning_time_s",)), + "timed": _spec("timed", lambda ev: Value(1.0, n=1), ("run.generation_time_s",)), } report = build_report(_dataset(tmp_path / "d.hdf5"), metrics=metrics) gate = tmp_path / "gate.yaml" @@ -207,7 +208,20 @@ def test_console_summary_marks_the_gate_and_says_how_to_compute_the_rest(tmp_pat assert "gate failed on 1 of 1" in summary assert re.search(r"✗ rate +25% +4 samples", summary) assert "needs --record_metric_inputs: held" in summary - assert "needs --result_file: planned" in summary + assert "needs --result_file: planned, timed" in summary + + plain_result = tmp_path / "plain.json" + plain_result.write_text(json.dumps({"num_success": 1, "num_attempts": 1})) + summary = format_report(build_report(str(tmp_path / "d.hdf5"), result_file=str(plain_result), metrics=metrics)) + + assert "needs --record_metric_inputs: held, planned, timed" in summary + + dataset = _dataset(tmp_path / "run.hdf5", entry={"run_id": "run-b", "exported_episodes": 1}) + summary = format_report(build_report(dataset, result_file=_run(tmp_path, "run-a"), metrics=metrics)) + + assert "needs the run's attempt log: planned" in summary + assert "needs the result file of a completed run: timed" in summary + assert "result.run-b.attempts.jsonl does not exist" in summary def test_degenerate_inputs_are_reported_without_breaking_the_summary_or_json(tmp_path): diff --git a/autodata_tests/utils/test_validate_dataset.py b/autodata_tests/utils/test_validate_dataset.py index e9599a5..602708f 100644 --- a/autodata_tests/utils/test_validate_dataset.py +++ b/autodata_tests/utils/test_validate_dataset.py @@ -30,9 +30,12 @@ def test_main_returns_zero_for_valid_dataset(tmp_path: Path) -> None: dataset_path = tmp_path / "valid.hdf5" _create_dataset(dataset_path) + report_file = tmp_path / "reports" / "report.json" assert validate_dataset.main([str(dataset_path)]) == 0 assert validate_dataset.main([str(dataset_path), "--report"]) == 0 + assert validate_dataset.main([str(dataset_path), "--report", "--report_file", str(report_file)]) == 0 + assert report_file.is_file() def test_main_returns_nonzero_for_invalid_dataset_by_default(tmp_path: Path) -> None: diff --git a/scripts/validate_dataset.py b/scripts/validate_dataset.py index 81dfbbc..2d6e82e 100644 --- a/scripts/validate_dataset.py +++ b/scripts/validate_dataset.py @@ -212,6 +212,7 @@ def main(argv: list[str] | None = None) -> int: print() print(format_report(report, results)) if args.report_file: + os.makedirs(os.path.dirname(args.report_file) or ".", exist_ok=True) with open(args.report_file, "w", encoding="utf-8") as report_handle: json.dump(report, report_handle, indent=2, default=_json_value) report_handle.write("\n") From 59d768afd6579eeb9cf8b975084aadea86aba37f Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 10:23:23 -0600 Subject: [PATCH 03/10] docs(metrics): show complete metric definitions and document the report The metrics table shows the first paragraph of each docstring with the values of its thresholds, and it fits the page from 1024 to 1920 px wide. The metrics page tells where the attempt log must be, how to report without the simulation environment, which entry of a metric the summary and a gate use, how the success rates are stop-corrected, and what time_to_dataset, demos_per_gpu_hour and a start layout spread near zero mean. The support matrix gives what the report alone needs. Signed-off-by: Billy Okal --- autodata_metrics/validity.py | 11 +++-- autodata_metrics/viability.py | 2 +- docs/_ext/autodata_doc_tools.py | 47 ++++++++++++++---- docs/_static/custom.css | 6 +++ docs/pages/quickstart/support_matrix.rst | 3 ++ docs/pages/references/metrics.rst | 62 +++++++++++++++++++++--- 6 files changed, 109 insertions(+), 22 deletions(-) diff --git a/autodata_metrics/validity.py b/autodata_metrics/validity.py index e6dd237..313a33b 100644 --- a/autodata_metrics/validity.py +++ b/autodata_metrics/validity.py @@ -85,8 +85,9 @@ def _rotation_errors(poses: np.ndarray) -> np.ndarray: @check("valid_rotations") def valid_rotations(episode: Episode, ev: Evidence) -> str | None: - """Fails an episode with an observed pose rotation that is not a proper rotation, a root quaternion that is not - unit, or a pose array not shaped ``(steps, 4, 4)`` or ``(steps, 7)``. + """Fails an episode with an observed pose array not shaped ``(steps, 4, 4)`` or a root pose array not shaped + ``(steps, 7)``. Also fails an episode with an observed pose rotation that is not proper, or a root quaternion + that is not unit, by more than :data:`ROTATION_TOLERANCE`. Both tests hold for either quaternion order, so the check needs no convention. """ @@ -147,7 +148,7 @@ def one_frame_per_step(episode: Episode, ev: Evidence) -> str | None: @check("no_black_frames", group="image") def no_black_frames(episode: Episode, ev: Evidence) -> str | None: - """Fails an episode with a camera frame whose mean pixel value is below :data:`BLACK_FRAME_MEAN`.""" + """Fails an episode with a camera frame whose mean pixel value, from 0 to 255, is below :data:`BLACK_FRAME_MEAN`.""" for path, dataset in _image_streams(episode, ev).items(): for start in range(0, len(dataset), FRAME_CHUNK): means = dataset[start : start + FRAME_CHUNK].mean(axis=(1, 2, 3)) @@ -158,7 +159,7 @@ def no_black_frames(episode: Episode, ev: Evidence) -> str | None: @check("no_frozen_frames", group="image", requires=["env_args.sim_args.dt", "env_args.sim_args.decimation"]) def no_frozen_frames(episode: Episode, ev: Evidence) -> str | None: - """Fails an episode whose camera repeats one frame for :data:`FROZEN_SECONDS`; needs the recorded control step.""" + """Fails an episode whose camera repeats one frame for :data:`FROZEN_SECONDS` seconds; needs the control step.""" streams = _image_streams(episode, ev) step = ev.env_args["sim_args"]["dt"] * ev.env_args["sim_args"]["decimation"] frozen_frames = max(2, math.ceil(FROZEN_SECONDS / step)) @@ -344,7 +345,7 @@ def motion_smoothness(ev: Evidence) -> Value: baseline=True, ) def joint_limit_ratio(ev: Evidence) -> Value: - """Share of episodes that reach ``NEAR_LIMIT`` of a datasheet velocity or acceleration limit.""" + """Share of episodes in which a joint reaches :data:`NEAR_LIMIT` of its datasheet limit, for each kind of limit.""" joints, datasheet = ev.entry["joints"], ev.entry.get("hardware_limits", {}) limits = {kind: _datasheet(joints["names"], datasheet.get(kind, {})) for kind in ("velocity", "acceleration")} limits = {kind: limit for kind, limit in limits.items() if np.isfinite(limit).any()} diff --git a/autodata_metrics/viability.py b/autodata_metrics/viability.py index 25dc0a0..d19ea75 100644 --- a/autodata_metrics/viability.py +++ b/autodata_metrics/viability.py @@ -104,7 +104,7 @@ def demos_per_gpu_hour(ev: Evidence) -> Value: version=2, ) def time_to_dataset(ev: Evidence) -> Value: - """Wall time of the automated steps, each process timed from its start: annotating the source and generating. + """Wall time of generating and, when ``--source`` records it, of annotating the source, each timed from its start. Annotation that was manual, or recorded without its mode, is reported in ``uncounted_annotation_s`` instead. """ diff --git a/docs/_ext/autodata_doc_tools.py b/docs/_ext/autodata_doc_tools.py index 109a2ef..8d8b6df 100644 --- a/docs/_ext/autodata_doc_tools.py +++ b/docs/_ext/autodata_doc_tools.py @@ -5,6 +5,7 @@ import ast import re +from contextlib import suppress from pathlib import Path from textwrap import indent from typing import Any @@ -120,29 +121,54 @@ def run(self) -> list[nodes.Node]: return self.parse_text_to_nodes(_runtime_tabs(docker, uv)) +def _module_constants(module: ast.Module) -> dict[str, Any]: + """Each module-level name that a plain assignment gives a literal value, with that value.""" + constants = {} + for node in module.body: + if isinstance(node, ast.Assign) and len(node.targets) == 1 and isinstance(node.targets[0], ast.Name): + with suppress(ValueError): + constants[node.targets[0].id] = ast.literal_eval(node.value) + return constants + + +def _role_as_literal(constants: dict[str, Any], match: re.Match) -> str: + role, target = match.group("role"), match.group("target") + if role == "data" and target in constants: + return f"``{target} = {constants[target]!r}``" + return f"``{target}``" + + def _declarations(app: Sphinx, decorator: str) -> list[tuple[str, dict[str, Any], str]]: - """Name, options and summary line of every function in ``autodata_metrics/`` registered with ``decorator``. + """Name, options and summary of every function in ``autodata_metrics/`` registered with ``decorator``. The declarations are parsed instead of imported, so the docs build needs none of the metrics' dependencies and - the tables cannot drift from the code. In the summary, Sphinx roles become literals that need no reference - target, and pipes are escaped so they do not read as substitutions. + the tables cannot drift from the code. The summary is the first paragraph of the docstring. In it, a ``:data:`` + role that names a literal constant of the same module shows the constant's value, other Sphinx roles become + literals that need no reference target, and pipes are escaped so they do not read as substitutions. """ found = [] for path in sorted((Path(app.confdir).parent / "autodata_metrics").glob("*.py")): - for node in ast.walk(ast.parse(path.read_text(encoding="utf-8"))): + module = ast.parse(path.read_text(encoding="utf-8")) + constants = _module_constants(module) + for node in ast.walk(module): if not isinstance(node, ast.FunctionDef): continue for call in node.decorator_list: if isinstance(call, ast.Call) and getattr(call.func, "id", None) == decorator: options = {keyword.arg: ast.literal_eval(keyword.value) for keyword in call.keywords} - summary = (ast.get_docstring(node) or "").split("\n")[0] - summary = re.sub(r":\w+:`~?([^`]+)`", r"``\1``", summary).replace("|", "\\|") + summary = " ".join((ast.get_docstring(node) or "").split("\n\n")[0].split()) + summary = re.sub( + r":(?P\w+):`~?(?P[^`]+)`", + lambda match: _role_as_literal(constants, match), + summary, + ).replace("|", "\\|") found.append((ast.literal_eval(call.args[0]), options, summary)) return found -def _list_table(widths: str, header: tuple[str, ...], rows: list[tuple[str, ...]]) -> str: - lines = [".. list-table::", " :header-rows: 1", f" :widths: {widths}", ""] +def _list_table(widths: str, header: tuple[str, ...], rows: list[tuple[str, ...]], css_class: str = "") -> str: + lines = [".. list-table::", " :header-rows: 1", f" :widths: {widths}"] + lines += [f" :class: {css_class}", ""] if css_class else [""] lines += [" * - " + "\n - ".join(row) for row in [header, *rows]] return "\n".join(lines) + "\n" @@ -156,12 +182,13 @@ def autodata_metrics_table(app: Sphinx, _: Any, source: list[str]) -> None: f"``{name}``", options["area"], options["unit"].replace("|", "\\|"), - ", ".join(f"``{key}``" for key in options.get("requires", ())) or "none", summary, + ", ".join(f"``{key}``" for key in options.get("requires", ())) or "none", ) for name, options, summary in sorted(_declarations(app, "metric"), key=lambda item: (item[1]["area"], item[0])) ] - table = _list_table("20 12 14 26 28", ("Metric", "Area", "Unit", "Requires", "Definition"), rows) + header = ("Metric", "Area", "Unit", "Definition", "Requires") + table = _list_table("20 12 14 28 26", header, rows, css_class="autodata-metrics") source[0] = source[0].replace(":autodata_metrics_table:", table) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index a3ba115..225fe49 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -16,6 +16,12 @@ table.gallery img { border-radius: 4px; } +/* Metric names and evidence keys are long literals. Let them wrap so that the definitions stay in view. */ +table.autodata-metrics code.literal span.pre { + white-space: normal; + overflow-wrap: anywhere; +} + /* Remove border and box-shadow from gallery table */ table.gallery, table.gallery td, diff --git a/docs/pages/quickstart/support_matrix.rst b/docs/pages/quickstart/support_matrix.rst index 659b7ee..cb03ca1 100644 --- a/docs/pages/quickstart/support_matrix.rst +++ b/docs/pages/quickstart/support_matrix.rst @@ -41,6 +41,9 @@ Isaac Lab or Isaac Lab-Arena revisions. * - Conda installation - Optional: Python 3.12, conda, uv >= 0.12.21, CMake, and a C++ compiler; ``conda_installer.sh`` installs Arena's locked environment. See :doc:`installation`. + * - Metrics only + - Python 3.12 with h5py, NumPy, and PyYAML; no GPU, Isaac Sim, or submodules. + See :doc:`../references/metrics`. * - Isaac Sim - ``isaacsim==6.1.0.0`` for native installs; Docker reuses Sim from ``nvcr.io/nvidia/isaac-sim:6.1.0``. * - Isaac Lab diff --git a/docs/pages/references/metrics.rst b/docs/pages/references/metrics.rst index 1f2889f..b8aecad 100644 --- a/docs/pages/references/metrics.rst +++ b/docs/pages/references/metrics.rst @@ -3,8 +3,9 @@ Metrics ``scripts/validate_dataset.py --report`` computes the metrics of a dataset and, given its result file, of the generation run that produced it. Metrics are computed from recorded files and need no -simulator. Generate, annotate or retarget with ``--record_metric_inputs`` to record what they read; -without it, most metrics report that their inputs are missing. +simulator. Generate, annotate or retarget with ``--record_metric_inputs`` to record what they read, and +generate with ``--result_file`` to record the run. Without them, most metrics report that their inputs are +missing, and only making the dataset again records them. .. autodata-runtime:: @@ -48,10 +49,13 @@ warnings and metric results. - The second line is the verdict: valid episodes, how many metrics were computed, and, with ``--gate``, the gate, whose metrics are marked ✓ or ✗. -- **Value** is the metric's value; a metric with percentiles shows the one a gate checks by default. - **Source** is the same metric on the ``--source`` dataset's valid episodes. **Based on** is the sample - count, with a rate's 95% interval and, when some checks did not apply, how many checks a pass rate rests - on. +- **Value** is the metric's value. A metric with several entries, such as the ``p50`` and ``p95`` + percentiles of ``motion_smoothness`` or the ``velocity`` and ``acceleration`` shares of + ``joint_limit_ratio``, shows its primary entry, which a gate checks by default. The ✓ or ✗ mark gives the + result for the entry that the gate checks. The JSON report gives every entry. **Source** is the same metric + on the ``--source`` dataset's valid episodes. **Based on** is the sample count, with the 95% interval of a + metric that has one, such as ``generation_success_rate``, and, when some checks did not apply, how many + checks a pass rate rests on. - **Not computed** groups the metrics that do not apply by what would make them apply. A metric that fails is listed under **Errors**; the other metrics are still computed. @@ -61,6 +65,24 @@ attempt log. The report refuses a dataset, result file and attempt log whose epi counts disagree, as they do after datasets are merged. When the result file records the run's source, the report also refuses a different ``--source``; without that record, the source is not verified. +The report reads the attempt log from the directory of the result file, by the name that the result file +records, or as ``..attempts.jsonl`` when the result file is missing or comes from +another run. To report a run on another computer, copy the dataset, its result file and its attempt log, and +keep the result file and the attempt log together. Without the attempt log, the report warns that the log +does not exist, and ``generation_success_rate`` and the planning metrics are not computed. + +Without the simulation environment +---------------------------------- + +The report needs only Python 3.12 with h5py, NumPy and PyYAML, and the ``scripts``, ``autodata_metrics`` and +``autodata_utils`` folders of an AutoData clone. A clone without submodules is enough. Run this command from +the repository root. It does not use or change the repository's uv environment. + +.. code-block:: bash + + PYTHONPATH=. uv run --isolated --no-project --python 3.12 --with h5py --with numpy --with pyyaml \ + python scripts/validate_dataset.py datasets/generated.hdf5 --report --result_file datasets/generated.json + What the report trusts ---------------------- @@ -100,6 +122,31 @@ Built-in metrics :autodata_metrics_table: +``joint_limit_ratio`` counts an episode when a joint reaches ``NEAR_LIMIT`` times its datasheet limit at a +recorded step. It reads ``states/articulation//joint_velocity``, and the acceleration is the change of +velocity between two recorded steps, divided by the control step (``dt`` × ``decimation``). The metric has one +entry for each kind of limit that the embodiment gives, ``velocity`` and ``acceleration``. The summary shows +``velocity`` when the embodiment gives it, and a gate without ``key`` checks it. Set ``key: acceleration`` to +gate the other entry. + +``generation_success_rate`` and ``planning_failure_rate`` are stop-corrected. When generation reaches its +target, it cancels the attempts that are still running, and the attempt log does not record them. Longer +attempts are more likely to be canceled, so a rate over the logged attempts can be biased. A stop-corrected +rate counts only the attempts that started before the earliest time at which an environment finished its last +logged attempt. Thus, it can count fewer attempts than ``num_attempts`` in the result file. The correction +applies when the result file gives the number of environments and every environment logged at least three +attempts. Otherwise, the rates count every logged attempt. In the JSON report, ``details.stop_corrected`` +tells whether the correction applied. + +``time_to_dataset`` counts the annotation only when ``--source`` was annotated with +``--record_metric_inputs``, and the shipped annotated datasets do not record it. For a manual annotation, it +adds only the setup time of the annotation process, and ``details.uncounted_annotation_s`` gives the +annotation time. With a source that does not record its annotation, the value is the setup time and the +generation time of ``generate_dataset.py``, and the setup time includes the start of the simulator. +``demos_per_gpu_hour`` divides the exported demonstrations by the generation time in GPU-hours, +without setup. A run that finds a CUDA GPU counts one GPU, also when physics runs on the CPU +(``--device cpu``). + Diversity metrics ----------------- @@ -132,6 +179,9 @@ object-relative behaviors. Use the values as context or scoped regression diagno acceptance scores. Coverage requires a declared target distribution and task-relevant tolerances; these metrics do not use a target or identify uncovered conditions. +A ``start_layout_spread`` near zero means that the episodes start from the same scene layout, for example +because the environment does not randomize it at reset. + Comparing datasets ~~~~~~~~~~~~~~~~~~ From 1e872677763ce657050914407cce065116990fbd Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 10:23:23 -0600 Subject: [PATCH 04/10] docs: record metric inputs in each workflow Each generation step tells how to record the metric inputs, and each validation step reports the metrics. The humanoid page says that the G1 environment does not move the object at reset. Signed-off-by: Billy Okal --- .../step_3_generate_dataset.rst | 15 ++++++++-- .../step_3_generate_dataset.rst | 6 ++++ .../step_4_validate_dataset.rst | 27 ++++++++++++++++++ .../step_3_generate_dataset.rst | 17 +++++++---- .../step_4_validate_dataset.rst | 28 +++++++++++++++++++ docs/pages/workflows/skillgen/index.rst | 22 ++++++++++++++- docs/pages/workflows/skillgen/preflight.rst | 4 ++- 7 files changed, 109 insertions(+), 10 deletions(-) diff --git a/docs/pages/workflows/franka_cube_stack_mimicgen/step_3_generate_dataset.rst b/docs/pages/workflows/franka_cube_stack_mimicgen/step_3_generate_dataset.rst index 905d640..27066d0 100644 --- a/docs/pages/workflows/franka_cube_stack_mimicgen/step_3_generate_dataset.rst +++ b/docs/pages/workflows/franka_cube_stack_mimicgen/step_3_generate_dataset.rst @@ -69,12 +69,15 @@ For dataset-scale generation, run headless (``--viz none``) with parallel enviro --task_descriptor autodata_examples/tasks/franka_cube_stack.yaml \ --embodiment autodata_examples/embodiments/franka_ik_rel.yaml \ --input_file ./datasets/annotated_datasets/dataset_franka_annotated.hdf5 \ - --output_file ./datasets/generated_dataset_mimicgen_franka.hdf5 + --output_file ./datasets/generated_dataset_mimicgen_franka.hdf5 \ + --record_metric_inputs \ + --result_file ./datasets/generated_dataset_mimicgen_franka.json Progress is printed after every attempt (successful demonstrations, attempts, and the running success rate). -To report the run's :doc:`metrics <../../references/metrics>` in the next step, add -``--record_metric_inputs`` and ``--result_file ./datasets/generated_dataset_mimicgen_franka.json``. +The last two options record what the :doc:`metrics <../../references/metrics>` of Step 4 read. +If you do not need metrics, remove them. Without them, the report cannot compute most metrics, and +only a new generation run can record these inputs. .. note:: @@ -101,6 +104,12 @@ Key Parameters - Overrides the task descriptor's ``generation_policy.num_trials``. * - ``--num_envs`` - Number of parallel environments, each generating independently. + * - ``--record_metric_inputs`` + - Record what the metrics read: per-step end-effector and target poses, task success, and run + metadata. Off by default. + * - ``--result_file`` + - Path of the result file (JSON) of the run. With ``--record_metric_inputs``, generation also + writes an attempt log next to it. * - ``--viz`` - Visualization mode (``kit`` opens a Kit window; ``none`` runs headless). diff --git a/docs/pages/workflows/franka_rope_softmimicgen/step_3_generate_dataset.rst b/docs/pages/workflows/franka_rope_softmimicgen/step_3_generate_dataset.rst index fd4154c..dea83db 100644 --- a/docs/pages/workflows/franka_rope_softmimicgen/step_3_generate_dataset.rst +++ b/docs/pages/workflows/franka_rope_softmimicgen/step_3_generate_dataset.rst @@ -136,6 +136,12 @@ and observed throughput. Deformable simulation and camera recording can be expen To generate state-only datasets, omit ``--enable_cameras``. ``--viz none`` alone does not disable image recording. +To report the run's :doc:`metrics <../../references/metrics>` in the next step, add +``--record_metric_inputs`` and +``--result_file ./datasets/generated_dataset_softmimicgen_franka_rope_newton.json`` (Newton) or +``--result_file ./datasets/generated_dataset_softmimicgen_franka_rope_physx.json`` (PhysX). Only a +new generation run can record these inputs. + Key Parameters ^^^^^^^^^^^^^^ diff --git a/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst b/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst index e1f2aa7..49f752b 100644 --- a/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst +++ b/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst @@ -35,6 +35,33 @@ Structural validation does not check rope geometry, grasp quality, or whether ac reproduce the original outcome. Inspect the generated motions as well. +Metrics +^^^^^^^ + +For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, report its metrics: + +.. tabs:: + + .. group-tab:: Newton + + .. autodata-python:: + + scripts/validate_dataset.py ./datasets/generated_dataset_softmimicgen_franka_rope_newton.hdf5 \ + --report \ + --result_file ./datasets/generated_dataset_softmimicgen_franka_rope_newton.json \ + --source ./datasets/annotated_datasets/dataset_franka_rope_newton_annotated.hdf5 + + .. group-tab:: PhysX + + .. autodata-python:: + + scripts/validate_dataset.py ./datasets/generated_dataset_softmimicgen_franka_rope_physx.hdf5 \ + --report \ + --result_file ./datasets/generated_dataset_softmimicgen_franka_rope_physx.json + +See :doc:`../../references/metrics` for what each metric means and how to gate on it. + + Visual Validation ^^^^^^^^^^^^^^^^^ diff --git a/docs/pages/workflows/humanoid_dexmimicgen/step_3_generate_dataset.rst b/docs/pages/workflows/humanoid_dexmimicgen/step_3_generate_dataset.rst index 45d74bd..a3a69bd 100644 --- a/docs/pages/workflows/humanoid_dexmimicgen/step_3_generate_dataset.rst +++ b/docs/pages/workflows/humanoid_dexmimicgen/step_3_generate_dataset.rst @@ -2,9 +2,10 @@ Step 3: Generate the Dataset ---------------------------- With annotated source demonstrations in hand, DexMimicGen can synthesize new ones. For each attempt, -the scene is randomized, a source segment is selected per arm for each subtask, and each arm's -end-effector trajectory is transformed to the new object poses and replayed. By default both arms -reuse the source demonstration chosen by the first arm, keeping their motions mutually consistent. +the environment resets the scene and applies any reset randomization that it defines. Then a source +segment is selected per arm for each subtask, and each arm's end-effector trajectory is transformed +to the current object poses and replayed. By default both arms reuse the source demonstration chosen +by the first arm, keeping their motions mutually consistent. .. list-table:: :widths: 50 50 @@ -69,8 +70,9 @@ Start with a small run in a Kit window (``--viz kit``) to sanity-check the setup --input_file ./datasets/annotated_datasets/dataset_g1_annotated.hdf5 \ --output_file ./datasets/generated_dataset_dexmimicgen_g1_small.hdf5 -You will see the humanoid repeatedly attempt the task under new object placements. Failed attempts -are normal and are not exported. +You will see the humanoid repeatedly attempt the task. At each reset, the GR-1 environment moves the +object by up to 1 cm along each horizontal axis. The G1 environment does not move it, so every G1 +attempt starts from the same object pose. Failed attempts are normal and are not exported. While it runs, the console reports the number of source episodes loaded into the pool and a running tally after every attempt to generate a new demonstration: @@ -132,6 +134,11 @@ For dataset-scale generation, run headless (``--viz none``) with parallel enviro Progress is printed after every attempt (successful demonstrations, attempts, and the running success rate). +To report the run's :doc:`metrics <../../references/metrics>` in the next step, add +``--record_metric_inputs`` and ``--result_file ./datasets/generated_dataset_dexmimicgen_gr1.json`` +(GR-1) or ``--result_file ./datasets/generated_dataset_dexmimicgen_g1.json`` (G1). Only a new +generation run can record these inputs. + .. note:: **Upgrade validation:** the 100-environment CPU benchmarks achieved 74.7% for GR1 diff --git a/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst b/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst index 961af3d..a273862 100644 --- a/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst +++ b/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst @@ -29,6 +29,34 @@ required fields (``actions``, ``initial_state``, ``obs``). For unreadable, invalid, or truncated files, see :ref:`troubleshooting-hdf5`. +Metrics +^^^^^^^ + +For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, report its metrics: + +.. tabs:: + + .. group-tab:: GR-1 + + .. autodata-python:: + + scripts/validate_dataset.py ./datasets/generated_dataset_dexmimicgen_gr1.hdf5 \ + --report \ + --result_file ./datasets/generated_dataset_dexmimicgen_gr1.json \ + --source ./datasets/annotated_datasets/dataset_gr1_annotated.hdf5 + + .. group-tab:: G1 + + .. autodata-python:: + + scripts/validate_dataset.py ./datasets/generated_dataset_dexmimicgen_g1.hdf5 \ + --report \ + --result_file ./datasets/generated_dataset_dexmimicgen_g1.json \ + --source ./datasets/annotated_datasets/dataset_g1_annotated.hdf5 + +See :doc:`../../references/metrics` for what each metric means and how to gate on it. + + Visual Validation ^^^^^^^^^^^^^^^^^ diff --git a/docs/pages/workflows/skillgen/index.rst b/docs/pages/workflows/skillgen/index.rst index 04796b9..251cba4 100644 --- a/docs/pages/workflows/skillgen/index.rst +++ b/docs/pages/workflows/skillgen/index.rst @@ -246,12 +246,30 @@ problem. For a full-scale run, raise ``--generation_num_trials`` (hundreds to thousands for policy training) and keep ``--viz none`` — rendering slows generation considerably. +To report the run's :doc:`metrics <../../references/metrics>`, add ``--record_metric_inputs`` and +``--result_file ./datasets/generated_dataset_skillgen_franka.json`` to the generation command. Only +a new generation run can record these inputs. + Validate the generated dataset the same way as any other: .. autodata-python:: scripts/validate_dataset.py ./datasets/generated_dataset_skillgen_franka.hdf5 +Metrics +^^^^^^^ + +For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, report its metrics: + +.. autodata-python:: + + scripts/validate_dataset.py ./datasets/generated_dataset_skillgen_franka.hdf5 \ + --report \ + --result_file ./datasets/generated_dataset_skillgen_franka.json \ + --source ./datasets/annotated_datasets/dataset_franka_skillgen_annotated.hdf5 + +See :doc:`../../references/metrics` for what each metric means and how to gate on it. + Task 2: Cube Stacking in a Bin (Environment Profile) ---------------------------------------------------- @@ -337,7 +355,9 @@ change: --viz none The generation-result JSON (``--result_file``) records the applied profile, since the output -dataset itself only stores the base env id. +dataset itself only stores the base env id. To report the run's +:doc:`metrics <../../references/metrics>`, add ``--record_metric_inputs`` and +``--result_file ./datasets/generated_dataset_skillgen_franka_bin.json``, as in Task 1. .. warning:: diff --git a/docs/pages/workflows/skillgen/preflight.rst b/docs/pages/workflows/skillgen/preflight.rst index e72d9fd..239ad0c 100644 --- a/docs/pages/workflows/skillgen/preflight.rst +++ b/docs/pages/workflows/skillgen/preflight.rst @@ -137,7 +137,9 @@ scene, and retries until it records the requested number of successful demonstra - Response * - An occasional attempt reports no collision-free path, then generation continues. - Yes - - No action is required. Monitor the overall success rate. + - No action is required. Monitor the overall success rate. With ``--record_metric_inputs`` + and ``--result_file``, the :doc:`metrics report <../../references/metrics>` also shows + ``planning_failure_rate``. * - Bin stacking rejects more attempts and runs longer than plain cube stacking. - Yes - Narrow bin clearances make planning harder. From 5e6cacfbac8dc05bf13f1f6950e78fb60ed82415 Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 10:23:23 -0600 Subject: [PATCH 05/10] docs: clone over HTTPS without an SSH key The README, the installation page and .gitmodules use HTTPS, and a release build of the docs no longer shows UNDECIDED. Isaac Lab-Arena uses SSH URLs for its own submodules, so the pages tell users without an SSH key how to make Git use HTTPS for GitHub URLs. Signed-off-by: Billy Okal --- .gitmodules | 2 +- README.md | 9 +++++++-- docs/conf.py | 6 +++--- docs/pages/quickstart/installation.rst | 7 ++++++- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4a10d26..0789aa3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "submodules/IsaacLab-Arena"] path = submodules/IsaacLab-Arena - url = git@github.com:isaac-sim/IsaacLab-Arena.git + url = https://github.com/isaac-sim/IsaacLab-Arena.git branch = main diff --git a/README.md b/README.md index 1d1c614..4f8d6db 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,15 @@ Choose **one** installation method: [Docker (recommended)](#docker-installation- ### Installation -Clone the repository with its nested Isaac Lab-Arena and Isaac Lab submodules, then pull the example datasets: +Clone the repository with its nested Isaac Lab-Arena and Isaac Lab submodules, then pull the example datasets. +Isaac Lab-Arena uses SSH URLs for its own submodules. If you do not use an SSH key with GitHub, first run +`git config --global url."https://github.com/".insteadOf git@github.com:`. Git then uses HTTPS for every GitHub SSH +URL, also in later `git submodule update` commands. To keep your global Git configuration unchanged, put +`-c url."https://github.com/".insteadOf=git@github.com:` after `git` in the clone command and in each +`git submodule update` command instead. ```bash -git clone --recurse-submodules git@github.com:isaac-sim/AutoData.git +git clone --recurse-submodules https://github.com/isaac-sim/AutoData.git cd AutoData git lfs install git lfs pull diff --git a/docs/conf.py b/docs/conf.py index b63422c..deba63b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -103,8 +103,8 @@ autodata_docs_config = { "released": released, - "internal_git_url": "git@github.com:isaac-sim/AutoData.git", - "external_git_url": "UNDECIDED", + "internal_git_url": "https://github.com/isaac-sim/AutoData.git", + "external_git_url": "https://github.com/isaac-sim/AutoData.git", "internal_code_link_base_url": "https://github.com/isaac-sim/AutoData/blob/main", - "external_code_link_base_url": "UNDECIDED", + "external_code_link_base_url": "https://github.com/isaac-sim/AutoData/blob/main", } diff --git a/docs/pages/quickstart/installation.rst b/docs/pages/quickstart/installation.rst index a681f3f..789fa19 100644 --- a/docs/pages/quickstart/installation.rst +++ b/docs/pages/quickstart/installation.rst @@ -30,7 +30,12 @@ On the host you need: Cloning the Repository ---------------------- -Isaac Lab and Isaac Lab-Arena are nested git submodules, so clone recursively: +Isaac Lab and Isaac Lab-Arena are nested git submodules, so clone recursively. Isaac Lab-Arena uses SSH URLs for +its own submodules. If you do not use an SSH key with GitHub, first run +``git config --global url."https://github.com/".insteadOf git@github.com:``. Git then uses HTTPS for every GitHub +SSH URL, also in later ``git submodule update`` commands. To keep your global Git configuration unchanged, put +``-c url."https://github.com/".insteadOf=git@github.com:`` after ``git`` in the clone command and in each +``git submodule update`` command instead. :autodata_git_clone_code_block: From b8f2d8c9468230eb652f94692fef29350fc661bb Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 11:23:12 -0600 Subject: [PATCH 06/10] docs: remove the clone note for users without an SSH key The README and the installation page give only the HTTPS clone command. Signed-off-by: Billy Okal --- README.md | 7 +------ docs/pages/quickstart/installation.rst | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4f8d6db..b6a0de9 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,7 @@ Choose **one** installation method: [Docker (recommended)](#docker-installation- ### Installation -Clone the repository with its nested Isaac Lab-Arena and Isaac Lab submodules, then pull the example datasets. -Isaac Lab-Arena uses SSH URLs for its own submodules. If you do not use an SSH key with GitHub, first run -`git config --global url."https://github.com/".insteadOf git@github.com:`. Git then uses HTTPS for every GitHub SSH -URL, also in later `git submodule update` commands. To keep your global Git configuration unchanged, put -`-c url."https://github.com/".insteadOf=git@github.com:` after `git` in the clone command and in each -`git submodule update` command instead. +Clone the repository with its nested Isaac Lab-Arena and Isaac Lab submodules, then pull the example datasets: ```bash git clone --recurse-submodules https://github.com/isaac-sim/AutoData.git diff --git a/docs/pages/quickstart/installation.rst b/docs/pages/quickstart/installation.rst index 789fa19..a681f3f 100644 --- a/docs/pages/quickstart/installation.rst +++ b/docs/pages/quickstart/installation.rst @@ -30,12 +30,7 @@ On the host you need: Cloning the Repository ---------------------- -Isaac Lab and Isaac Lab-Arena are nested git submodules, so clone recursively. Isaac Lab-Arena uses SSH URLs for -its own submodules. If you do not use an SSH key with GitHub, first run -``git config --global url."https://github.com/".insteadOf git@github.com:``. Git then uses HTTPS for every GitHub -SSH URL, also in later ``git submodule update`` commands. To keep your global Git configuration unchanged, put -``-c url."https://github.com/".insteadOf=git@github.com:`` after ``git`` in the clone command and in each -``git submodule update`` command instead. +Isaac Lab and Isaac Lab-Arena are nested git submodules, so clone recursively: :autodata_git_clone_code_block: From 211be4aea9b2dc7dbcfc62d79f9eca8141250e4f Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 11:30:16 -0600 Subject: [PATCH 07/10] docs(metrics): say what a start layout spread near zero measures The metric reads the horizontal start positions of the objects, so a value near zero means the same positions in every episode, not the same scene layout. Signed-off-by: Billy Okal --- docs/pages/references/metrics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/references/metrics.rst b/docs/pages/references/metrics.rst index b8aecad..201a495 100644 --- a/docs/pages/references/metrics.rst +++ b/docs/pages/references/metrics.rst @@ -179,8 +179,8 @@ object-relative behaviors. Use the values as context or scoped regression diagno acceptance scores. Coverage requires a declared target distribution and task-relevant tolerances; these metrics do not use a target or identify uncovered conditions. -A ``start_layout_spread`` near zero means that the episodes start from the same scene layout, for example -because the environment does not randomize it at reset. +A ``start_layout_spread`` near zero means that the objects start at the same horizontal positions in every +episode, for example because the environment does not randomize them at reset. Comparing datasets ~~~~~~~~~~~~~~~~~~ From 631fe4d49b9a85c9637f0a97660aeb140b58a0f0 Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 11:31:03 -0600 Subject: [PATCH 08/10] docs: tell users which source to give the metrics report The report refuses a --source other than the dataset that the run started from. Each Metrics step now says to give one's own annotated dataset when generation read it. Signed-off-by: Billy Okal --- .../franka_cube_stack_mimicgen/step_4_validate_dataset.rst | 1 + .../franka_rope_softmimicgen/step_4_validate_dataset.rst | 1 + .../workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst | 1 + docs/pages/workflows/skillgen/index.rst | 1 + 4 files changed, 4 insertions(+) diff --git a/docs/pages/workflows/franka_cube_stack_mimicgen/step_4_validate_dataset.rst b/docs/pages/workflows/franka_cube_stack_mimicgen/step_4_validate_dataset.rst index 4b5de46..8d27a8a 100644 --- a/docs/pages/workflows/franka_cube_stack_mimicgen/step_4_validate_dataset.rst +++ b/docs/pages/workflows/franka_cube_stack_mimicgen/step_4_validate_dataset.rst @@ -31,6 +31,7 @@ For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, r --result_file ./datasets/generated_dataset_mimicgen_franka.json \ --source ./datasets/annotated_datasets/dataset_franka_annotated.hdf5 +If you generated from your own annotated dataset, set ``--source`` to that file. See :doc:`../../references/metrics` for what each metric means and how to gate on it. diff --git a/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst b/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst index 49f752b..08c7d61 100644 --- a/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst +++ b/docs/pages/workflows/franka_rope_softmimicgen/step_4_validate_dataset.rst @@ -59,6 +59,7 @@ For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, r --report \ --result_file ./datasets/generated_dataset_softmimicgen_franka_rope_physx.json +If you generated from your own annotated dataset, set ``--source`` to that file. See :doc:`../../references/metrics` for what each metric means and how to gate on it. diff --git a/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst b/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst index a273862..1300800 100644 --- a/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst +++ b/docs/pages/workflows/humanoid_dexmimicgen/step_4_validate_dataset.rst @@ -54,6 +54,7 @@ For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, r --result_file ./datasets/generated_dataset_dexmimicgen_g1.json \ --source ./datasets/annotated_datasets/dataset_g1_annotated.hdf5 +If you generated from your own annotated dataset, set ``--source`` to that file. See :doc:`../../references/metrics` for what each metric means and how to gate on it. diff --git a/docs/pages/workflows/skillgen/index.rst b/docs/pages/workflows/skillgen/index.rst index 251cba4..56d1e52 100644 --- a/docs/pages/workflows/skillgen/index.rst +++ b/docs/pages/workflows/skillgen/index.rst @@ -268,6 +268,7 @@ For a dataset generated with ``--record_metric_inputs`` and ``--result_file``, r --result_file ./datasets/generated_dataset_skillgen_franka.json \ --source ./datasets/annotated_datasets/dataset_franka_skillgen_annotated.hdf5 +If you generated from your own annotated dataset, set ``--source`` to that file. See :doc:`../../references/metrics` for what each metric means and how to gate on it. Task 2: Cube Stacking in a Bin (Environment Profile) From 47d3f1e54a9d670e9b69dbe6f9e26a29b4596e4c Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 11:44:51 -0600 Subject: [PATCH 09/10] docs(metrics): do not claim the same positions in every episode The spreads read at most 1,000 episodes, so a value near zero describes the episodes that the metric reads. Signed-off-by: Billy Okal --- docs/pages/references/metrics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/references/metrics.rst b/docs/pages/references/metrics.rst index 201a495..6437109 100644 --- a/docs/pages/references/metrics.rst +++ b/docs/pages/references/metrics.rst @@ -179,8 +179,8 @@ object-relative behaviors. Use the values as context or scoped regression diagno acceptance scores. Coverage requires a declared target distribution and task-relevant tolerances; these metrics do not use a target or identify uncovered conditions. -A ``start_layout_spread`` near zero means that the objects start at the same horizontal positions in every -episode, for example because the environment does not randomize them at reset. +A ``start_layout_spread`` near zero means that the objects start at the same horizontal positions, for example +because the environment does not randomize them at reset. Comparing datasets ~~~~~~~~~~~~~~~~~~ From dbff16fd029458f226de56464ba392d55eb696e1 Mon Sep 17 00:00:00 2001 From: Billy Okal Date: Tue, 1 Dec 2026 11:48:19 -0600 Subject: [PATCH 10/10] docs: say that the recursive clone needs an SSH key The own submodules of Isaac Lab-Arena use SSH URLs, so a clone with --recurse-submodules needs an SSH key for GitHub. Signed-off-by: Billy Okal --- README.md | 2 ++ docs/pages/quickstart/installation.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index b6a0de9..cd2eba1 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ git lfs install git lfs pull ``` +Isaac Lab-Arena's own submodules use SSH URLs, so the recursive clone needs an SSH key for GitHub. + #### Docker installation (recommended) This method requires [Docker](https://docs.docker.com/engine/install/), the diff --git a/docs/pages/quickstart/installation.rst b/docs/pages/quickstart/installation.rst index a681f3f..47debfb 100644 --- a/docs/pages/quickstart/installation.rst +++ b/docs/pages/quickstart/installation.rst @@ -34,6 +34,8 @@ Isaac Lab and Isaac Lab-Arena are nested git submodules, so clone recursively: :autodata_git_clone_code_block: +Isaac Lab-Arena's own submodules use SSH URLs, so the recursive clone needs an SSH key for GitHub. + If you already cloned without ``--recurse-submodules``, run: .. code-block:: bash