feat(action): publish action stats utility - #243
Open
zichen0116 wants to merge 1 commit into
Open
Conversation
Signed-off-by: zzcn <zzcn.leo@qq.com>
zichen0116
force-pushed
the
feat/publish-action-stats-tool
branch
from
September 8, 2026 11:30
fc1324d to
c27cfeb
Compare
zichen0116
marked this pull request as ready for review
September 8, 2026 11:33
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.
Fixes #168.
Summary
This PR adds a public utility for generating action normalization statistics from local LeRobot-compatible datasets.
Cosmos action-policy recipes consume precomputed statistics files, but the generation script is not included in the public repository. This makes it difficult to recompute statistics for a new robot embodiment or after changing dataset preprocessing.
Changes
tools/compute_action_stats.py.min,max,mean,std,q01, andq99.Usage
For multiple compatible datasets, pass multiple paths after
--dataset-root.Non-goals
Testing
pytest -o addopts= --confcutdir=tools tools/compute_action_stats_test.py— 6 passedruff check --isolated tools/compute_action_stats.py tools/compute_action_stats_test.pyruff format --check --isolated tools/compute_action_stats.py tools/compute_action_stats_test.pypython -m compileall -q tools/compute_action_stats.py tools/compute_action_stats_test.py