
In-process dense optical flow via any ptlflow-zoo model: takes Image frames and emits per-pixel OpticalFlow against an earlier frame at source resolution. The model is chosen at deploy, real-time to top-accuracy.
Recorded frames are reduced to a dense motion field that, together with per-object masks, yields per-object movement vectors.
A streamed video URL is reduced to dense flow and rendered as a vector-field overlay for inspection.
frame_diff steps after a reset) returns a zero-filled flow tensor because there is no comparable earlier frame yet, which downstream must distinguish from a real stationary frame.model_height and model_width, but the flow is resized back to the source frame and the vectors are rescaled per axis, so the emitted OpticalFlow is always at the source frame resolution and aligns pixel-for-pixel with full-resolution masks; setting both to zero runs natively and skips the rescale.model_variant must name a model the installed ptlflow version provides, and ckpt_path must name a checkpoint alias that model defines; an unknown model name or alias aborts startup.model_variant trades speed for accuracy across the zoo and iters adds refinement steps at a latency cost on RAFT-family models only (non-recurrent models ignore it); frame_diff widens the temporal baseline; with_respect_to_second_frame flips flow direction; device, model_height, model_width, and with_respect_to_second_frame are re-read each frame and can be retuned live.Automated release