본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트12k · #11554

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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, or rerun <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.LeRobotReader reads 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_path ends in episode_{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_path ends in file-{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. LeRobotReader reads 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: a video-dtype feature, one file per episode beside the parquet.
  • inline: an image-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 untrimmed meta/ warns once per absent episode.
  • snapshot_download writes 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬