Scaling robotics datasets with video encoding
LeRobot stores the camera frames of robotics datasets as AV1 video instead of per-frame PNGs. That cuts datasets to about 14% of their original size on average and as little as 0.2% at best, while keeping them usable for training. An FFmpeg benchmark across four datasets measured codec, pixel format, GOP size and CRF against size, decoding time, quality (MSE, PSNR, SSIM) and browser compatibility, using frame-access patterns typical of policy training. The chosen settings are libsvtav1 with yuv420p, g=2 and crf=30. With them, a single-frame load is about as fast as loading a PNG, and loading several consecutive frames takes 25–50% of the PNG time.
Related posts
- Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets
Hugging Face mediumAdeptStrands Robots 0.6 and LeRobot 0.7 form a continuous robot data loop. Demonstrations are recorded as LeRobotDatasets with `Robot.run(record=...)` and synced into Hugging Face Storage Buckets, which are Xet-backed and deduplicate at the byte level with content-defined chunking. Training streams the data back through `StreamingLeRobotDataset` with no local download, and the checkpoint deploys to hardware with a `port=` change. In HF's benchmarks, re-uploading a 500 MB file with 1% of its bytes changed transferred only 5.5 MB. A full streaming read of an 86 MB dataset left under 1 MB on disk, because LeRobot's large Parquet and MP4 shards turn each batch into a few byte-range reads.
- `LeRobotDataset:v3.0`: Bringing large-scale datasets to `lerobot`
Hugging Face mediumAdeptLeRobotDataset v3.0 replaces the one-episode-per-file layout of v2, which hit file-system limits at millions of episodes, with multi-episode Parquet and MP4 files indexed by relational metadata that records episode boundaries and video timestamps. The repository layout separates meta files (info.json schema, stats.json normalization stats, tasks.jsonl, chunked Parquet episode metadata) from chunked data/ and videos/ directories. A new StreamingLeRobotDataset reads datasets directly from the Hugging Face Hub without downloading them, which matters for collections like the ~500 GB L2D driving dataset. A one-line script converts v2.1 datasets, and delta_timestamps windowing integrates with PyTorch DataLoader for RL and behavioral-cloning training.
- Reducing Instagram’s basic video compute time by 94 percent
Meta Engineering mediumAdeptInstagram cut the compute cost of its basic adaptive bit rate (ABR) video encodings by 94 percent by reusing the frames from its progressive encodings and repackaging them into a DASH-capable file structure instead of transcoding from the original upload. Both encoding types used the same H.264 codec with only minor profile and preset differences, so repackaging with MP4Box takes about 0.36s of CPU time versus 86s for a full ffmpeg transcode. The tradeoff is worse compression efficiency for basic ABR. An A/B framework that replicated traffic across equal-capacity test and control pools showed the freed compute raised advanced-encoding watch time coverage by 33 percent, which more than made up for the loss.
- LeRobot v0.4.0: Supercharging OSS Robot Learning
Hugging Face mediumAdeptLeRobot v0.4.0 introduces Datasets v3.0 with a chunked episode format, video streaming and unified Parquet metadata for OXE-scale (>400GB) robot datasets, plus a lerobot-edit-dataset CLI to merge, split and delete episodes. It adds a modular Processors pipeline that chains steps such as normalization, tokenization and device transfer between robots and policies. Multi-GPU training runs through Accelerate, and LIBERO and Meta-World simulation benchmarks are now supported. The release also integrates the PI0/PI0.5 and NVIDIA GR00T N1.5 VLA policies, a pip-installable hardware plugin system (used for Reachy 2 and phone teleoperation), and a free robot learning course.
- SmolVLA: Efficient Vision-Language-Action Model trained on Lerobot Community Data
Hugging Face hardMasterSmolVLA is a 450M-parameter open-source vision-language-action model for robotics, pretrained on about 10M frames from 487 curated LeRobot community datasets and able to run on consumer hardware. It pairs a SmolVLM2 backbone with a ~100M flow-matching action expert. Efficiency comes from limiting each frame to 64 visual tokens via PixelShuffle, using features from only the first half of the VLM's layers, and interleaving cross- and self-attention in the action expert. An asynchronous inference stack overlaps action execution with remote chunk prediction, giving about 30% faster response and 2× task throughput, and the model outperforms larger VLAs and ACT on LIBERO, Meta-World and real SO100/SO101 tasks.