mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-20 11:09:59 +00:00
add: downloading data utils
This commit is contained in:
@@ -1,8 +1,26 @@
|
||||
import shutil
|
||||
|
||||
from huggingface_hub import snapshot_download
|
||||
|
||||
if __name__ == "__main__":
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--repo-id", type=str, required=True)
|
||||
parser.add_argument("--max-workers", type=int, default=8)
|
||||
parser.add_argument("--local-dir", type=str, required=True)
|
||||
parser.add_argument("--force-download", action="store_true")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.force_download:
|
||||
shutil.rmtree(args.local_dir, ignore_errors=True)
|
||||
|
||||
snapshot_download(
|
||||
repo_id="behavior-1k/2025-challenge-demos",
|
||||
repo_id=args.repo_id,
|
||||
repo_type="dataset",
|
||||
local_dir="/fsx/francesco_capuano/behavior1k-2025-v21",
|
||||
force_download=args.force_download,
|
||||
max_workers=args.max_workers,
|
||||
local_dir=args.local_dir,
|
||||
ignore_patterns=["annotations/*"], # NOTE(fracapuano): Dropping textual annotations right now
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user