rerun-lerobot
Fungsinya
Skill ini menjelaskan cara membawa dataset LeRobot dari Hugging Face ke alat Rerun. Skill ini untuk orang yang bekerja dengan data pembelajaran robot dan ingin melihat atau mengonversinya.
Kapan dipakai
- βSaat Anda ingin membuka folder dataset LeRobot di Rerun untuk melihat videonya dan data sendi.
- βSaat Anda perlu memecah dataset LeRobot menjadi berkas Rerun terpisah, satu per episode.
- βSaat Anda ingin mengunduh sebagian dataset LeRobot saja, seperti beberapa episode pertama.
Link skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBantu saya memuat dataset LeRobot ini dari Hugging Face ke Rerun agar saya bisa menonton episodenya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini memberi tahu agent jalur mana yang sesuai: importer bawaan untuk melihat, atau pembaca per episode untuk mengonversi. Skill ini juga memeriksa versi dataset untuk melihat apakah unduhan sebagian memungkinkan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
Pertanyaan umum
Apakah saya perlu token Hugging Face?
Langkah unduh memerlukan pustaka huggingface_hub dan token Hugging Face, dan skill ini memeriksa token tersebut terlebih dahulu.
Apa perbedaan antara melihat dan mengonversi?
Melihat memakai importer bawaan Rerun pada folder dataset. Mengonversi membaca satu episode pada satu waktu agar setiap episode bisa disimpan terpisah.
Bisakah saya hanya mengunduh beberapa episode pertama?
Sering kali bisa untuk versi dataset 2.1 ke bawah, yang menyimpan satu berkas per episode. Versi 3.0 menggabungkan episode ke dalam beberapa berkas besar, sehingga lebih sulit.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11554
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
investigate-puffin
12kMembantu agent Anda menyelidiki rekaman profiler Puffin (berkas .puffin), menemukan bagian kode yang lambat, dan membandingkan jejak dari sebelum dan sesudah perubahan.
rerun-blueprint
12kMengajari agent Anda mengubah tampilan viewer Rerun dengan menulis blueprint untuk sebuah rekaman atau tabel, termasuk tata letak, tampilan, dan kolom tersembunyi.
rerun-catalog-queries
12kMembantu agent Anda mengkueri katalog Rerun dari Python lebih cepat, dengan tips tentang perjalanan bolak-balik, ukuran payload, dan pembacaan dataset yang lambat.
rerun-chunk-processing
12kMengajari agent Anda membangun pipeline data Rerun dengan pembaca dan lensa yang mengubah berkas MCAP, Parquet, video, atau RRD menjadi rekaman.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.