fix(action): handle action_normalization=None in ActionBaseDataset._b…#52
Open
lfengad wants to merge 1 commit into
Open
fix(action): handle action_normalization=None in ActionBaseDataset._b…#52lfengad wants to merge 1 commit into
lfengad wants to merge 1 commit into
Conversation
…uild_result joint_pos DROID actions are raw/un-normalized: DROIDLeRobotDataset forces action_normalization=None for action_space="joint_pos", and the parameter is typed str | None across all action datasets. But _build_result always called normalize_action(action, None, ...), which only accepts quantile|meanstd|minmax and raises "ValueError: Unknown normalization method: None" — so the shipped action_policy_droid_nano recipe crashed at dataloader start (no 8-D joint_pos stats exist to normalize against anyway). Guard the None case: pass actions through untouched and skip stats loading. The fix lives at the dataset layer (where the str | None contract lives); normalize_action's strict method validation is left intact. Adds base_dataset_test.py covering both the None pass-through and the method-set normalization paths. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 tasks
Collaborator
|
It is already fixed on #37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…uild_result
joint_pos DROID actions are raw/un-normalized: DROIDLeRobotDataset forces action_normalization=None for action_space="joint_pos", and the parameter is typed str | None across all action datasets. But _build_result always called normalize_action(action, None, ...), which only accepts quantile|meanstd|minmax and raises "ValueError: Unknown normalization method: None" — so the shipped action_policy_droid_nano recipe crashed at dataloader start (no 8-D joint_pos stats exist to normalize against anyway).
Guard the None case: pass actions through untouched and skip stats loading. The fix lives at the dataset layer (where the str | None contract lives); normalize_action's strict method validation is left intact.
Adds base_dataset_test.py covering both the None pass-through and the method-set normalization paths.