Skip to content

Cherry-pick: Remove the Mimic failure cap for GR1 and G1 tutorials - #1802

Merged
peterd-NV merged 1 commit into
release/0.4.0from
peterd/cp-fix_mimix_max_num_failure
Dec 1, 2026
Merged

peterd-NV merged 1 commit into
release/0.4.0from
peterd/cp-fix_mimix_max_num_failure

Conversation

@peterd-NV

Copy link
Copy Markdown
Collaborator

Remove the 25-failure cap from the GR1 fridge and G1 locomotion and manipulation tasks so Mimic keeps generating demonstrations until it reaches the requested success count.

Why this change?

The GR1 tutorial stopped after 51 of the 100 requested demos and exited with code 0. The G1 tutorial uses the same failure cap and can also produce a partial dataset.

What changes?

Set max_num_failures = None for both tasks. Failed attempts no longer end generation early. Runs can keep retrying indefinitely if no attempts succeed.

Validation

  • GR1 reached 100 successes in 154 attempts. Verified that the exported HDF5 contains exactly 100 successful episodes.
  • Verified in Isaac Sim that the registered G1 tutorial configuration targets 100 successful demos with the failure cap disabled.

Cherry-pick: #1801

(cherry picked from commit 98d1b18)
@peterd-NV peterd-NV changed the title fix mimic max num tries Cherry-pick: Remove the Mimic failure cap for GR1 and G1 tutorials Dec 1, 2026
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes the 25-failure limit from GR1 fridge and G1 locomotion-and-manipulation demonstration generation.

  • GR1 and G1 demo runs keep retrying after failures.

Reviews (1) · Last reviewed commit: "fix mimic max num tries" · Reviewed by Greptile

for key, value in MIMIC_DATAGEN_CONFIG_DEFAULTS.items():
setattr(self.datagen_config, key, value)
# Keep retrying until the requested number of successful demos is saved.
self.datagen_config.max_num_failures = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Fix the shared default instead

The 25 comes from "max_num_failures": 25 in MIMIC_DATAGEN_CONFIG_DEFAULTS (isaaclab_arena/tasks/common/mimic_default_params.py:18). Isaac Lab only started reading that field with the #1481 submodule bump. Upstream removed the same = 25 from its own Mimic configs for this reason (isaaclab_mimic 2.0.7).

With only these two overrides, PickPlaceMimicEnvCfg, RotateDoorMimicEnvCfg, PlaceUprightMimicEnvCfg and CompositeTaskBase.get_mimic_env_cfg still stop after 25 failures and exit 0 with a partial dataset. Could we drop the entry from the defaults (in #1801 too) and remove this override?

# mimic_default_params.py
-    "max_num_failures": 25,

DataGenConfig.max_num_failures already defaults to None, and generate_dataset.py --max_num_failures N sets a cap when you want one. The new line in G1PickAndPlaceMimicEnvCfg (pick_and_place_task.py:365) could then go as well.

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This cherry-picks #1801 into release/0.4.0. It sets max_num_failures = None in the GR1 fridge and G1 loco-manipulation Mimic configs, so both tutorials keep generating until they have the 100 demos they asked for. That works for those two tasks. The 25-failure cap itself comes from the shared MIMIC_DATAGEN_CONFIG_DEFAULTS, though, so other Mimic tasks still hit it.

Design, Boundaries & Scope

"max_num_failures": 25 in isaaclab_arena/tasks/common/mimic_default_params.py:18 was added in #352. Isaac Lab declared the field back then but never read it. The Isaac Lab bump in #1481 (submodule e3f7d9f) is the first pinned version whose generation loop reads it. Since that bump, every config built from these defaults stops after 25 failed attempts and exits 0 with a partial dataset.

Isaac Lab ran into the same problem. Upstream removed its own max_num_failures = 25 lines (isaaclab_mimic 2.0.7 changelog) and kept DataGenConfig.max_num_failures = None as the default. To set a cap, you pass --max_num_failures to generate_dataset.py.

This PR overrides the value in two places. These configs still have the cap:

  • PickPlaceMimicEnvCfg
  • RotateDoorMimicEnvCfg
  • PlaceUprightMimicEnvCfg
  • CompositeTaskBase.get_mimic_env_cfg

Removing the entry from the defaults is a one-line change that fixes all of them. It also makes both overrides in this PR unnecessary. Ideally that change lands in #1801 and this cherry-pick follows it.

One side effect: test_sequential_task_mimic_data_generation.py runs franka_put_and_close_door with these defaults. Without the cap, a run that never succeeds would fail at the 900 s run_subprocess timeout. Today it exits 0 after 25 failures and the test passes. The failure becomes visible, but it takes longer to show up.

Findings

🟡 Warning: isaaclab_arena_environments/gr1_put_and_close_door_environment.py:121: These overrides fix two users of the shared default. Changing MIMIC_DATAGEN_CONFIG_DEFAULTS would fix all of them (see the inline comment).

CI: when this review ran, the pre-commit and uv-detection checks were still queued, so I couldn't confirm CI results.

Verdict

Minor fixes needed

@peterd-NV
peterd-NV merged commit 1cbded1 into release/0.4.0 Dec 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants