Skip to content

fix(action): handle action_normalization=None in ActionBaseDataset._b…#52

Open
lfengad wants to merge 1 commit into
mainfrom
liangf/fix-action-normalization-none
Open

fix(action): handle action_normalization=None in ActionBaseDataset._b…#52
lfengad wants to merge 1 commit into
mainfrom
liangf/fix-action-normalization-none

Conversation

@lfengad

@lfengad lfengad commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

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

…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>
@fwd4

fwd4 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

It is already fixed on #37

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