Skip to content

Remove the Mimic failure cap for GR1 and G1 tutorials - #1801

Merged
peterd-NV merged 1 commit into
mainfrom
peterd/fix_mimic_max_num_failure
Dec 1, 2026
Merged

peterd-NV merged 1 commit into
mainfrom
peterd/fix_mimic_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.

@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 cap from the GR1 fridge and G1 locomotion-and-manipulation configurations.

  • G1 pick-and-place generation retries until it reaches its success target.
  • GR1 fridge generation retries until it reaches its success target.

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

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR sets datagen_config.max_num_failures = None in G1PickAndPlaceMimicEnvCfg and in the GR1 PutAndCloseDoorTaskMimicEnvCfg, so Mimic keeps generating until it reaches generation_num_trials successes. That fixes both tutorials. The 25-failure cap itself comes from the shared MIMIC_DATAGEN_CONFIG_DEFAULTS, though, so other Arena Mimic tasks still have the same problem.

Design, Boundaries & Scope

MIMIC_DATAGEN_CONFIG_DEFAULTS (isaaclab_arena/tasks/common/mimic_default_params.py:18) has set "max_num_failures": 25 since #352, but the cap only started to take effect with the Isaac Lab bump in #1481:

  • At the old pin (91a0906), env_loop in isaaclab_mimic/datagen/generation.py never read max_num_failures.
  • At the current pin (e3f7d9f), env_loop stops after that many failures when generation_guarantee is on, and generate_dataset.py still exits with code 0.

So since #1481, every config that applies the shared defaults can save a partial dataset without reporting an error:

  • PickPlaceMimicEnvCfg
  • RotateDoorMimicEnvCfg
  • PlaceUprightMimicEnvCfg
  • CompositeTaskBase.get_mimic_env_cfg, which franka_put_and_close_door uses

Isaac Lab's DataGenConfig default for max_num_failures is None, and the cap is available per run through --max_num_failures. Removing the key from the shared dict would restore the pre-#1481 behavior for all Arena tasks in one place, and the GR1 override would no longer be needed. Details are in the inline comments.

Findings

🟡 Warning: isaaclab_arena_environments/gr1_put_and_close_door_environment.py:120: This works around the shared default for one environment. Could we remove max_num_failures from MIMIC_DATAGEN_CONFIG_DEFAULTS instead?
🔵 Improvement: isaaclab_arena/tasks/pick_and_place_task.py:369: G1PickAndPlaceMimicEnvCfg copies the shared defaults value by value, which is why this fix needs a second edit. Applying the dict would leave only the G1-specific use_navigation_controller.

Verdict

Minor fixes needed

@peterd-NV
peterd-NV merged commit 2c76a30 into main Dec 1, 2026
11 checks passed
peterd-NV added a commit that referenced this pull request Dec 1, 2026
…1802)

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
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