Aller au contenu
Skillpedia
Analyse et tableurs12k · #11554

rerun-lerobot

Ce qu’il fait

Cette skill explique comment importer un jeu de données LeRobot depuis Hugging Face dans l'outil Rerun. Elle s'adresse aux personnes qui travaillent sur les données d'apprentissage des robots et veulent les visualiser ou les convertir.

Quand l’utiliser

  • ✓Quand vous voulez ouvrir un dossier de jeu de données LeRobot dans Rerun pour voir ses vidéos et ses données articulaires.
  • ✓Quand vous devez découper un jeu de données LeRobot en fichiers Rerun séparés, un par épisode.
  • ✓Quand vous voulez ne télécharger qu'une partie d'un jeu de données LeRobot, par exemple ses premiers épisodes.

Lien du skill

https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/rerun-io/rerun/blob/main/skills/rerun-lerobot/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Aidez-moi à charger ce jeu de données LeRobot depuis Hugging Face dans Rerun pour que je puisse regarder les épisodes.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill indique à l'agent quel chemin convient : un importateur intégré pour la visualisation, ou un lecteur par épisode pour la conversion. Elle vérifie aussi la version du jeu de données pour voir si un téléchargement partiel est possible.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes

Ai-je besoin d'un jeton Hugging Face ?

L'étape de téléchargement exige la bibliothèque huggingface_hub et un jeton Hugging Face, que la skill vérifie en premier.

Quelle différence entre visualiser et convertir ?

La visualisation utilise l'importateur intégré de Rerun sur le dossier du jeu de données. La conversion lit un épisode à la fois pour que chaque épisode puisse être enregistré séparément.

Puis-je ne télécharger que les premiers épisodes ?

Souvent oui pour les versions 2.1 et antérieures du jeu de données, qui stockent un fichier par épisode. La version 3.0 regroupe les épisodes en quelques gros fichiers, ce qui est plus difficile.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
12k
Position au classement
#11554
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires