Lerobot dataset filehandler #2802
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LeRobot Dataset File Handler
Overview
The LeRobot Dataset File Handler (
LeRobotDatasetFileHandler
) is a configuration-driven system for automatically extracting and recording episode data from Isaac Lab environments to the LeRobot dataset format. It provides a seamless bridge between Isaac Lab's manager-based environments and the HuggingFace LeRobot ecosystem, enabling efficient dataset creation for Vision-Language-Action (VLA) model training.Architecture
Core Components
Configuration System (
LeRobotDatasetCfg
)Feature Extraction Engine
Data Conversion Pipeline
Dataset Management
Configuration System
LeRobotDatasetCfg Structure
Configuration Patterns
Basic Configuration
Multi-Group Observations
Video/Image Support
Feature Extraction Process
1. Environment Analysis
The handler automatically analyzes the environment's structure:
2. Action Feature Extraction
3. Observation Feature Extraction
The system processes observations based on configuration:
observation.{key}
observation.state
4. Video/Image Processing
Data Flow
Episode Recording Process
Episode Creation
Feature Schema Generation
Episode Writing
Frame-by-Frame Processing
Integration with Isaac Lab
Environment Configuration
The handler integrates seamlessly with Isaac Lab's manager-based environments:
Recording Script Integration
The
record_demos.py
script automatically detects LeRobot format:Dataset Structure
LeRobot Format Organization
Feature Naming Conventions
observation.images.{camera_position}
observation.state
observation.{obs_key}
action
episode_index
,frame_index
,timestamp
,task
Error Handling and Validation
Configuration Validation
Video Format Validation
Performance Considerations
Memory Management
Storage Optimization
Usage Examples
Basic Recording
Advanced Configuration
Dependencies and Installation
Required Dependencies
Optional Dependencies
huggingface_hub
for dataset sharinglerobot
for training pipeline integrationFuture Enhancements
Planned Features
Integration Improvements
Conclusion
The LeRobot Dataset File Handler provides a robust, configuration-driven solution for creating LeRobot-compatible datasets from Isaac Lab environments. Its automatic feature extraction, flexible configuration system, and seamless integration with the Isaac Lab ecosystem make it an essential tool for VLA model training and dataset sharing within the robotics community.
The handler's design emphasizes: