The data loader module provides functionality to load and prepare data from the PhysicalAI AV dataset for Alpamayo R1 model inference.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NVlabs/alpamayo/llms.txt
Use this file to discover all available pages before exploring further.
load_physical_aiavdataset
Load data from physical_ai_av for model inference. This function loads a sample from the physical_ai_av dataset and converts it to the format expected by AlpamayoR1 model inference.Parameters
The clip ID to load data from. Can be obtained from
vla_golden.parquet.The timestamp (in microseconds) at which to sample the trajectory. Default is 5.1 seconds into the clip.
Must be greater than
num_history_steps * time_step * 1_000_000 to ensure sufficient history data.Optional pre-initialized PhysicalAIAVDatasetInterface. If None, creates a new instance.
Whether to stream data from HuggingFace if not downloaded locally.
Number of history trajectory steps. Default is 16 steps for 1.6 seconds at 10Hz.
Number of future trajectory steps. Default is 64 steps for 6.4 seconds at 10Hz.
Time step between trajectory points in seconds. Default is 0.1s (10Hz).
List of camera features to load. If None, uses 4 default cameras:
CAMERA_CROSS_LEFT_120FOVCAMERA_FRONT_WIDE_120FOVCAMERA_CROSS_RIGHT_120FOVCAMERA_FRONT_TELE_30FOV
Number of frames per camera to load. Default is 4 frames.
Returns
A dictionary with the following keys:
Example
Custom Camera Configuration
Trajectory Sampling
The function samples trajectories at regular intervals:-
History:
[t0 - (num_history_steps-1)*time_step, ..., t0-time_step, t0]- Default: 16 steps ending at t0 (1.6s of history at 10Hz)
-
Future:
[t0 + time_step, t0 + 2*time_step, ..., t0 + num_future_steps*time_step]- Default: 64 steps starting after t0 (6.4s of future at 10Hz)
-
Images:
[t0 - (num_frames-1)*time_step, ..., t0-time_step, t0]- Default: 4 frames ending at t0 (0.4s of image history at 10Hz)