Skip to main content

Crate cu_vitfly

Crate cu_vitfly 

Source
Expand description

Standalone Candle inference for the ViTFly ViT+LSTM policy.

The low-level VitFly::forward contract mirrors the trained PyTorch model: depth [1, 1, 60, 90], desired velocity [1, 1], attitude quaternion [1, 4], and an optional recurrent state.

Structs§

ForwardTrace
Named intermediate tensors used by the PyTorch/Candle parity tests.
VitFly
Candle implementation of the pretrained ViTFly ViT+LSTM policy.
VitFlyState
Recurrent hidden and cell state for the policy’s three LSTM layers.
VitFlyTask
Copper task for the pretrained ViTFly depth policy.

Constants§

ATTITUDE_SHAPE
DEPTH_SHAPE
DESIRED_VELOCITY_SHAPE
INPUT_HEIGHT
INPUT_WIDTH
OUTPUT_SHAPE
RECURRENT_SHAPE

Type Aliases§

VitFlyVelocity
Open-loop world-frame velocity predicted by ViTFly, in [forward, left, up] order.