"""Read the features of the LeRobot walks the GR00T fine-tune was trained on (open dataset, no login)."""
import json, pathlib
from huggingface_hub import snapshot_download

path = snapshot_download("roaddata-ai/h1-street-crossing-lerobot", repo_type="dataset", allow_patterns=["meta/info.json"])
info = json.loads((pathlib.Path(path) / "meta" / "info.json").read_text())
print(f"LeRobot {info['codebase_version']}, robot {info.get('robot_type')}, {info['fps']} frames per second")
for name, f in info["features"].items():
    print(f"  {name:30s} {f['dtype']:8s} {f['shape']}")
