vllm_omni.diffusion.models.lingbot_world.camera ¶
Camera trajectory loading and geometry for LingBot World v2 conditioning.
CameraTrajectory dataclass ¶
TrustedActionDirectory dataclass ¶
build_plucker_embedding ¶
build_plucker_embedding(
trajectory: CameraTrajectory,
*,
height: int,
width: int,
target_height: int,
target_width: int,
device: device,
dtype: dtype,
translation_scale: float | None = None,
) -> Tensor
Build checkpoint-ordered (ray origin, ray direction) channels.
interpolate_camera_trajectory ¶
interpolate_camera_trajectory(
trajectory: CameraTrajectory, num_frames: int
) -> CameraTrajectory
Resample translations/intrinsics linearly and rotations with quaternion SLERP.
load_camera_trajectory ¶
load_camera_trajectory(
action_directory: TrustedActionDirectory,
) -> CameraTrajectory
Load bounded numeric camera arrays through a trusted directory handle.