
Dense optical flow from any 2-frame model served by NVIDIA Triton (RAFT, GMFlow, FlowFormer, SEA-RAFT and similar exports): takes Image frames and emits per-pixel OpticalFlow against a buffered reference frame, resized to the source dimensions.
Recorded frames are turned into dense flow that, combined with per-object masks, is collapsed into one motion vector per object.
A streamed video URL is reduced to dense flow and rendered as a vector-field overlay for inspection.
with_respect_to_second_frame flips the sign convention of the emitted vectors, so consumers that assume one sign must pin it at backend authoring time.frame_diff is rejected at zero; larger values widen the temporal baseline (retaining more buffered frames) and amplify slow motion at the cost of noise.output_layout must match how the served network emits its flow map: 'channels_first' for two contiguous [H, W] planes (the common [2, H, W] export) and 'channels_last' for an interleaved [H, W, 2] map. A mismatch silently scrambles the two flow components.Automated release