Repository navigation
Cherry-pick: Remove the Mimic failure cap for GR1 and G1 tutorials - #1802
Conversation
(cherry picked from commit 98d1b18)
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryRemoves the 25-failure limit from GR1 fridge and G1 locomotion-and-manipulation demonstration generation.
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 |
There was a problem hiding this comment.
🟡 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.
🤖 Isaac Lab-Arena Review BotSummaryThis cherry-picks #1801 into Design, Boundaries & Scope
Isaac Lab ran into the same problem. Upstream removed its own This PR overrides the value in two places. These configs still have the cap:
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: Findings🟡 Warning: isaaclab_arena_environments/gr1_put_and_close_door_environment.py:121: These overrides fix two users of the shared default. Changing CI: when this review ran, the pre-commit and uv-detection checks were still queued, so I couldn't confirm CI results. VerdictMinor fixes needed |
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 = Nonefor both tasks. Failed attempts no longer end generation early. Runs can keep retrying indefinitely if no attempts succeed.Validation
Cherry-pick: #1801