Inference pane
Tab: ◈ file name
Opened by: the Run model button
Requires: `onnx` feature (off by default) + the ONNX runtime
Applies to: whatever the model's contract requires
Runs a pretrained model over the recording and shows its predictions. The pane is four stacked modules, each with a status light: Model, Contract, Run, Result.
Model
With nothing loaded, offers recently used models, any found in the project’s model directory, and Load from file…. Once loaded, shows the model’s name, its task and its provenance — including its licence, which for some models is a real constraint. See the model zoo.
Contract
This is the module worth reading before you run anything.
It reports a verdict, not a specification: the model’s channel and rate requirements are compiled against this recording without decoding it, so a mismatch is stated before any work begins.
- Fits — what will be fed to the model
- Failed — what the recording lacks, by name
- No finite recording — a live stream has no fixed channel set to compile against
A contract that cannot be satisfied is refused rather than padded. See Models for why this matters.
Run
Before running, shows a forecast of the input tensor — how many windows, how many rows, how long each window, and the total size — computed from the compiled plan. Worth a glance on a long recording.
Run is disabled with a stated reason when it cannot proceed — no model, a failed contract, a live recording, or a build without ONNX support.
While running, a phase track shows read · prepare · load · score, with a Cancel button that stops at the next batch boundary. Only the scoring phase reports a true percentage; the others shimmer, because their duration is not knowable in advance.
The whole run happens on a background thread. The interface stays responsive.
Result
Presentation depends on what the model predicts.
State sequences — sleep staging — are drawn as a hypnogram with a probability ribbon beneath. Where the model predicts more finely than the clinical epoch, a toggle switches between the model’s native resolution and 30-second clinical epochs.
Detections — seizure detection — are drawn with a threshold slider driving an event list. For an uncalibrated detector, moving this slider is how you read the result at all; see the zoo on why the raw class output can mislead.
| Action | Effect |
|---|---|
| Export epochs… | Write what is on screen as CSV |
| Add as annotations | Turn each bout into an editable, undoable annotation |
| Jump to first REM | Seek to the first occurrence |
Clicking any prediction seeks every plot view of that recording to that moment — the main way to move from a result to the signal behind it.
If the displayed result came from a different model than the one now loaded, the pane says so.
Without the ONNX feature
The pane does not exist. A default build has no Inference pane, no Run model button in the toolbar, and no prediction lanes on the plot. Build with the feature to get them:
cargo run --features onnx
A build with the feature but without the runtime library is a different case: the pane is present, and loading a model reports that the runtime is missing — see the ONNX runtime.