rerun-lerobot
하는 일
이 스킬은 Hugging Face의 LeRobot 데이터셋을 Rerun 도구로 가져오는 방법을 설명합니다. 로봇 학습 데이터를 다루며 보거나 변환하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓LeRobot 데이터셋 폴더를 Rerun에서 열어 영상과 관절 데이터를 확인하고 싶을 때.
- ✓LeRobot 데이터셋을 에피소드마다 하나씩 Rerun 파일로 나눠야 할 때.
- ✓처음 몇 개 에피소드처럼 LeRobot 데이터셋의 일부만 내려받고 싶을 때.
스킬 링크
https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 LeRobot 데이터셋을 Hugging Face에서 Rerun으로 불러와 에피소드를 볼 수 있게 도와주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 어떤 경로가 맞는지 알려 줍니다. 보기에는 내장 가져오기 기능을, 변환에는 에피소드별 읽기 도구를 씁니다. 또한 부분 다운로드가 가능한지 데이터셋 버전을 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
Hugging Face 토큰이 필요한가요?
다운로드 단계에는 huggingface_hub 라이브러리와 Hugging Face 토큰이 필요하며, 스킬이 먼저 토큰이 있는지 확인합니다.
보기와 변환의 차이는 무엇인가요?
보기는 데이터셋 폴더에 Rerun의 내장 가져오기 기능을 사용합니다. 변환은 한 번에 한 에피소드씩 읽어 각 에피소드를 따로 저장할 수 있게 합니다.
처음 몇 개 에피소드만 내려받을 수 있나요?
버전 2.1 이하에서는 대개 가능합니다. 이 버전들은 에피소드마다 파일 하나를 씁니다. 버전 3.0은 에피소드를 큰 파일 몇 개로 합치기 때문에 더 어렵습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 12k
- 순위
- #11554
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
investigate-puffin
12k에이전트가 Puffin 프로파일러 기록(.puffin 파일)을 살펴보고, 느린 코드 구간을 찾고, 변경 전후의 추적 결과를 비교하도록 돕습니다.
rerun-blueprint
12k에이전트가 블루프린트를 작성해 Rerun 뷰어의 모습을 바꾸도록 가르칩니다. 레이아웃, 뷰, 숨긴 열을 포함합니다.
rerun-catalog-queries
12k에이전트가 Python에서 Rerun 카탈로그를 더 빠르게 조회하도록 돕습니다. 왕복 호출, 데이터 크기, 느린 데이터셋 읽기에 대한 팁을 제공합니다.
rerun-chunk-processing
12k에이전트에게 리더와 렌즈로 Rerun 데이터 파이프라인을 만드는 법을 가르칩니다. MCAP, Parquet, 비디오, RRD 파일을 녹화로 변환합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.