Skip to content

Conversation

@cpa2001
Copy link

@cpa2001 cpa2001 commented Jul 17, 2025

Description

Fixes the TypeError in compute_norm_stats.py caused by incompatibility with latest Huggingface datasets version 4.0.0.

Problem

  • torch.stack(hf_dataset["timestamp"]) fails with TypeError when using datasets>=4.0.0
  • hf_dataset["timestamp"] now returns a datasets.Column instead of tensor list/tuple
  • This breaks the compute_norm_stats.py script

Solution

  • Pin datasets==3.6.0 to maintain compatibility

Testing

  • Verified compute_norm_stats.py runs successfully with pinned versions
  • No breaking changes to existing functionality

Closes #561

Fix Huggingface datasets dependency compatibility issue (Physical-Intelligence#561)
@jimmyt857 jimmyt857 removed their request for review July 17, 2025 14:46
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.

TypeError in compute_norm_stats.py with latest torch / HF Hub / lerobot versions

1 participant