Skip to content

Commit

Permalink
Add huggingface-hub patch for offline snapshot_download with local_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Oct 11, 2024
1 parent 6d2bc11 commit 7f68088
Show file tree
Hide file tree
Showing 3 changed files with 827 additions and 695 deletions.
3 changes: 0 additions & 3 deletions lerobot/common/datasets/lerobot_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ def download_episodes(self) -> None:
will only download those episodes (selected by their episode_index). If 'episodes' is None, the whole
dataset will be downloaded. Thanks to the behavior of snapshot_download, if the files are already present
in 'local_dir', they won't be downloaded again.
Note: Currently, if you're running this code offline but you already have the files in 'local_dir',
snapshot_download will still fail. This behavior will be fixed in an upcoming update of huggingface_hub.
"""
# TODO(rcadene, aliberts): implement faster transfer
# https://huggingface.co/docs/huggingface_hub/en/guides/download#faster-downloads
Expand Down
Loading

0 comments on commit 7f68088

Please sign in to comment.