rerun-lerobot
Skill này làm gì
Skill này giải thích cách đưa bộ dữ liệu LeRobot từ Hugging Face vào công cụ Rerun. Dành cho người làm việc với dữ liệu học của robot và muốn xem hoặc chuyển đổi nó.
Khi nào nên dùng
- ✓Khi bạn muốn mở thư mục bộ dữ liệu LeRobot trong Rerun để xem video và dữ liệu khớp.
- ✓Khi bạn cần tách bộ dữ liệu LeRobot thành các file Rerun riêng, mỗi episode một file.
- ✓Khi bạn chỉ muốn tải một phần bộ dữ liệu LeRobot, chẳng hạn vài episode đầu.
Liên kết skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi tải bộ dữ liệu LeRobot này từ Hugging Face vào Rerun để tôi xem các episode.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill cho agent biết đường nào phù hợp: một bộ nhập tích hợp để xem, hoặc một bộ đọc theo episode để chuyển đổi. Nó cũng kiểm tra phiên bản bộ dữ liệu để xem có tải một phần được không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Rerun LeRobot ingestion
There are two ways in, and which one you want depends on whether you are viewing or converting.
- Just viewing? Rerun has a built-in LeRobot importer: point
log_file_from_path(or the viewer, orrerun <dir>on the CLI) at the dataset directory and it ingests episodes, camera videos, and state/action tables with no conversion code. - Converting?
rr.experimental.LeRobotReaderreads the dataset one episode at a time as a lazy chunk stream, which is what you want for per-episode RRDs and for lenses.
The download step needs huggingface_hub.
Step 0: pick a dataset and check the HF token
Both scripts below live in scripts/ next to this file, and run standalone through uv — they declare huggingface_hub inline, so there is no environment to set up.
Two facts decide what a dataset costs to fetch, and the Hub search results show neither. Get both, for every candidate, in one call:
uv run scripts/find_lerobot_dataset.py <query> --robot-type <robot> --want 5
codebase_version decides whether a partial download is possible at all.
- v2.1 and earlier store one parquet and one mp4 per episode (
video_pathends inepisode_{episode_index:06d}.mp4), so "just the first N episodes" downloads only those episodes. - v3.0 concatenates every episode into a few large files (
video_pathends infile-{file_index:03d}.mp4), so any subset costs the whole download. If the user asked for a few episodes, prefer a v2.1 dataset — for the download only.LeRobotReaderreads a single episode out of either version once the files are local.
How camera frames are stored decides the size, and it varies by two orders of magnitude.
The frames and MB/ep columns report it:
mp4: avideo-dtype feature, one file per episode beside the parquet.inline: animage-dtype feature, raw frames inside the episode parquet, which is far larger for the same footage.
Both scripts report the actual size for the dataset in hand, so use that number rather than guessing.
Tell the user the size before you start the download, and prefer mp4 unless they asked for something only the other set has.
HF_TOKEN is not required for public datasets, but without it the Hub rate-limits and throttles downloads.
If it is unset, say so and point the user at https://huggingface.co/settings/tokens to create a read token, then export HF_TOKEN=hf_… (or hf auth login).
Do not block on it — carry on unauthenticated and let the user decide.
[ -n "$HF_TOKEN" ] || echo "HF_TOKEN unset — downloads will be throttled"
Step 1: dataset -> one combined RRD
Only needed if you want every episode in one file — to hand someone a single RRD, or to reprocess data you cannot re-read from the dataset directory.
For per-episode segments, skip to Step 2 and let LeRobotReader read the dataset directly.
from huggingface_hub import snapshot_download
import rerun as rr
dataset_dir = snapshot_download(repo_id=repo_id, repo_type="dataset", local_dir=dest)
with rr.RecordingStream("rerun_example_lerobot") as rec:
rec.save(str(combined_rrd))
rec.log_file_from_path(str(dataset_dir)) # the built-in importer
The importer emits one recording per episode (recording ids like episode_1), plus a metadata-only root recording, all into the single RRD.
rr.RecordingStream + log_file_from_path here is the importer bootstrap — the one place RecordingStream is correct in an ingestion pipeline (it drives the built-in importer, not per-message logging). Do not generalize it to rr.log-per-message loops; for everything after import, reprocess with a reader + lenses (see rerun-chunk-processing: Chunk API vs logging API).
Downloading only the first few episodes
uv run scripts/fetch_lerobot_episodes.py <repo_id> --episodes 5 # prints the dataset directory
It reports the download size before starting, downloads meta/* plus the wanted episode_%06d files, trims meta/ to match, verifies that exactly the requested episodes landed, and prints what it got.
Its last line is the dataset directory; do not follow it with find or du.
Do the equivalent by hand and three things bite:
- The importer iterates the episode list in
meta/, so an untrimmedmeta/warns once per absent episode. snapshot_downloadwrites into an existing directory, so episodes left by an earlier run with a different N survive and inflate the result.- Bot
Câu hỏi thường gặp
Tôi có cần token Hugging Face không?
Bước tải cần thư viện huggingface_hub và token Hugging Face, và skill kiểm tra token trước.
Khác nhau giữa xem và chuyển đổi là gì?
Xem dùng bộ nhập tích hợp của Rerun trên thư mục bộ dữ liệu. Chuyển đổi đọc từng episode một để mỗi episode có thể được lưu riêng.
Tôi có thể chỉ tải vài episode đầu không?
Thường là có với các phiên bản bộ dữ liệu 2.1 trở xuống, vì chúng lưu mỗi episode một file. Phiên bản 3.0 gộp các episode vào vài file lớn nên khó hơn.
Chi tiết
Mô tả gốc của tác giả
Ingest a LeRobot (HuggingFace) dataset into Rerun. Read when converting a LeRobot dataset to RRDs, splitting it into per-episode segments, or registering it on a Rerun catalog. Covers the built-in directory importer (log_file_from_path), the per-episode LeRobotReader, and when to drop to ParquetReader for custom control.
repo: rerun-io/rerun
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11554
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
investigate-puffin
12kGiúp agent phân tích các bản ghi profiler Puffin (file .puffin), tìm đoạn code chậm và so sánh trace trước và sau một thay đổi.
rerun-blueprint
12kDạy agent thay đổi giao diện trình xem Rerun bằng cách viết blueprint cho một bản ghi hoặc bảng, gồm bố cục, view và các cột ẩn.
rerun-catalog-queries
12kGiúp agent truy vấn catalog Rerun từ Python nhanh hơn, với các mẹo về số lượt gọi qua lại, dung lượng dữ liệu và việc đọc dataset chậm.
rerun-chunk-processing
12kDạy agent xây dựng pipeline dữ liệu Rerun với reader và lens, chuyển các file MCAP, Parquet, video hoặc RRD thành bản ghi Rerun.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.