Skip to content

[Bug] ImportError: cannot import name 'compute_stats' from 'lerobot.common.datasets.compute_stats' #881

Closed
@yizt

Description

@yizt

System Info

ubuntu linux
python 3.10.x

Information

  • One of the scripts in the examples/ folder of LeRobot
  • My own task or dataset (give details below)

Reproduction

python lerobot/scripts/push_dataset_to_hub.py
--raw-dir /path/to/raw dir
--raw-format rm_pickle
--push-to-hub 0
--local-dir /path/to/my local dir
--repo-id lerobot/data set name

an import error occur

Traceback (most recent call last):
  File "/mnt/disk2/yizt/lerobot/lerobot/scripts/push_dataset_to_hub.py", line 56, in <module>
    from lerobot.common.datasets.compute_stats import compute_stats
ImportError: cannot import name 'compute_stats' from 'lerobot.common.datasets.compute_stats' (/mnt/disk2/yizt/lerobot/lerobot/common/datasets/compute_stats.py)

Expected behavior

can you fix this bug,ths

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working correctlydatasetIssues regarding data inputs, processing, or datasets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions