﻿# DSEC optical flow: target displacement interval is not the evaluation sampling cadence

Use DSEC reference and target timestamps to define optical-flow displacement rather than inferring its time horizon from the spacing of evaluated predictions.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-dsec-flow-target-interval-not-evaluation-cadence/
Language: en

## Define the two clocks in a flow evaluation

An event-based optical-flow model emits a prediction for every requested DSEC evaluation example. A developer assumes the interval between these examples is also the displacement horizon represented by each vector. That changes the target. The cadence for selecting reference times and the interval from a reference time to its target time are separate quantities. Preserve both before generating event windows, constructing supervision or interpreting a displacement magnitude as motion over a particular duration.

## Use the explicit reference and target timestamps

The [official optical-flow format](https://dsec.ifi.uzh.ch/optical-flow-submission-format/) distinguishes the supplied from-to timestamp pairs from the larger spacing between evaluated reference times. Read those pairs directly rather than deriving the target endpoint from a neighboring prediction filename. The benchmark’s optical flow is a displacement across the declared pair. A different temporal interval creates a different supervision problem even if image dimensions, vector channels and the number of prediction files remain exactly as expected.

## Keep event observation windows distinct from targets

The [DSEC project](https://dsec.ifi.uzh.ch/) describes asynchronous event observations and stereo driving data. An algorithm can choose a representation of those observations, such as a particular event window, but that input choice does not redefine the evaluation target’s interval. Record the input window separately from the from-to pair. This helps distinguish an intentional model-context experiment from an accidental change in what motion the prediction is supposed to represent at the requested reference time.

## Understand what structural verification checks

The [author submission checker](https://raw.githubusercontent.com/uzh-rpg/DSEC/main/scripts/check_optical_flow_submission.py) checks file structure, counts and image representation. Its successful result does not demonstrate that each predicted vector describes the correct temporal pair. A submission can have all expected files while the model has learned displacement over a different interval. Keep the timestamp association in the inference output metadata before encoding images, and inspect ordering rather than relying on an accepted directory as evidence of temporal correctness.

## Diagnose a single timestamp pair end to end

Select a requested pair, retain its reference and target times, document the event evidence supplied to the model and trace the prediction to its exported filename. Repeat after changing sampling or context-window code. [Timing and labels](/journal/data-guide-audio-resample-time-labels/) supports temporal reasoning; [software reproducibility](/journal/software-stack-reproducibility/) preserves conversion settings. Report evaluation cadence, displacement horizon and observation window separately, so a valid file-format check does not conceal a different optical-flow task behind an otherwise compatible interface.
