Testing

Testing (formerly the Frame Extractor's Model Lab) measures and compares YOLO weights on your data. It is a tool of Image QC's Models tab (Ctrl+Alt+L), not of the Frame Extractor, and it never controls the player (6 · Review videos only hands a playlist over). It works in five steps, shown as a stepper across the top of the window. Each step shows a ✓, a warning or an error icon, and a bar under its title explains any problem with a button that fixes it.

Testing and Image QC

Projects

A project (.fxlab) remembers the whole set-up — test data, videos, models and their colours, run options and report settings. The start page (⌂ Projects) lists recent projects with their best model and score; reopening one shows its results again in seconds, because predictions are cached. The open session is saved automatically, so closing the window never loses work. Project ▸ New (Ctrl+N), Open (Ctrl+O), Save (Ctrl+S).

Drag and drop — drop weights, videos, image folders, a data.yaml or an .fxlab file anywhere on the window; each goes where it belongs.

1 · Test data

Choose what every model is measured on:

OptionWhen to use it
This dataset (Image QC)The dataset open in Image QC (the default when one is open).
Test set from videosBuild a reusable set of frames from any number of videos (each with an optional time range such as 1:00-4:30) and image folders. Sampling: a frame every N seconds, every N-th frame, N per video or all frames; at most N per video; minimum sharpness. Unique frames removes duplicates inside each video and across all of them — a scene that repeats an hour later, or in another camera's video, is kept once. The folder opens in any YOLO tool (it has a data.yaml), and next month's model can be measured on exactly the same frames.
Labelled datasetAn existing YOLO folder (images/ + labels/), LabelMe JSON next to the images, or a data.yaml (its val split).
Videos onlyNo accuracy on images — analyse whole videos for behaviour (below).

Labels

Labels are optional. To measure true accuracy: Pre-label with a model → open the folder in your labelling tool and fix the boxes → the files you edit count as ground truth automatically. Mark pre-labels reviewed accepts the rest. Until then, unreviewed pre-labels are left out of scoring — otherwise a model would be scored against its own predictions.

Videos for behaviour analysis

Each model also runs over whole videos (a frame every N seconds) to show how it behaves where nobody has labelled anything: detections over time, flicker (an object disappears for a frame or two), blips (an object seen for one or two samples), agreement between models, and the moments they disagree most. Long videos stay fast: at most 20,000 samples are taken per video (the interval grows automatically), and frames far apart are reached by seeking rather than decoding everything — an hour of video with two models takes about a minute, and is instant from the cache afterwards.

2 · Models

Add any number of weights (.pt, .onnx, .engine). Each keeps its colour in every chart, image, report and annotated video. Classes are matched to the test data by name, so models trained with different class orders compare correctly; Check models shows the match and any classes that will be ignored.

3 · Run

Every model runs on every image in batches. Predictions are cached: stop at any time and continue later; a model already run on these images costs nothing, even after you rename its file.

4 · Results

TabShows
OverviewA plain-language verdict, headline numbers and the leaderboard (double-click a model to see its failures).
ChartsPrecision–recall and F1 curves, AP per class, error types, recall by object size, speed vs accuracy, class balance. Hover for values; Save on a chart saves it as PNG or SVG, Save all charts… saves the whole tab into a folder.
Confusion matrixPer model: rows = what is really there, columns = what the model said; background collects false detections (row) and missed objects (column).
Per classAP50, AP50-95, precision, recall, F1, correct / false / missed for every class, weakest first.
FailuresThe images with the most errors, drawn and zoomed to the errors, filtered by error type and class. Double-click to view full size; right-click to save the plotted image.
PlotsEvery test image with a model's detections drawn — boxes in the model's colour with class 0.87 labels (in Inter), optionally the ground truth or the errors in red. Filter by class, sort by detections, pick the thumbnail size. Double-click to view full size; Save image…, Save selected… or Save all… write full-resolution PNG / JPG files.
Compare A / BTwo models head to head: difference per class, curves, both confusion matrices and the images where each wins.
VideosDetections over time, agreement between models, stability table and a list of moments — double-click one (or click the timeline) to see that frame plotted. Testing never opens videos in the main player, so it can't interfere with your playback.

Videos only

With No images - videos only, the frames sampled from your videos fill every tab (up to 6,000 frames, spread evenly over all videos). With two or more models and a reference model chosen on the Run page, the others are scored against it: Overview, Charts, Confusion matrix, Per class and Failures show where each one disagrees with the reference, and Compare A / B shows a model next to the reference (what it misses, what it finds that the reference does not). This is agreement, not true accuracy. With one model, or no reference, the tabs that need an answer key say so, and Plots and Videos still show everything.

The threshold control at the top updates the error counts, confusion matrices and galleries live. Results are calculated in the background and only for the tab you are looking at, so the window stays responsive with large test sets.

Click a chart to see the images

Click a confusion-matrix cell, a class bar or an error-type bar and the Failures tab opens filtered to exactly those images (for example person predicted as car). The filter shows as a chip at the top — ✕ Clear filter removes it. Clicking a moment on a video timeline shows that frame plotted.

Fix labels on the spot

When a “failure” is really a labelling mistake, double-click it in Failures (or right-click ▸ Fix labels…) and correct it: delete a box (Del), change its class, draw a missing box, or accept a detection as ground truth. Leave this image out of scoring excludes a bad image without touching the dataset. Changes are saved to the label files (YOLO lines and LabelMe shapes keep everything else they contain) and the scores update at once.

A / B viewer

Plotted images and chart labels use the Inter typeface; the rest of the window uses the app's font. Saved plots look exactly like what you see, and annotated videos use the same labels.

Side by side… on the Compare tab (or right-click a failure ▸ Compare with another model…) shows the same image for two models side by side. Zoom and pan are linked; toggle ground truth, use each model's own threshold or one fixed value, and step through the images with the arrow keys. Save image… saves both plots side by side.

5 · Report

One HTML file with every chart, table and image inside — it opens in any browser, supports light and dark, and prints well. Summary is one page for a decision; Detailed has everything; Comparison puts two models head to head; Video behaviour covers the label-free analysis. metrics.json, per_class.csv and per_image.csv are written next to it for your own analysis. Export annotated video draws up to four models on a video.

Tip — to analyse a video you are watching in the Frame Extractor, add the same file under Videos for behaviour analysis (with a time range such as 1:00-4:30 to limit it).

6 · Review videos

Watch the models at work on whole videos: Review in player plays the videos one after another in the Frame Extractor with every model's boxes drawn on the video. Testing only sends the playlist (videos, models, settings) - the player does the rest and never interferes with Testing.

In the player, the Review playlist panel shows each video's state, what the analysis is doing ("every frame", "every 2nd frame + interpolated · backfilling 63 %", "4.2 s ahead"), Previous / Next, Loop, a switch per model and a live confidence slider (nothing is re-run). A paused frame always gets its own detections. Boxes on frames the models did not see themselves (interpolated) are dashed. Frames are decoded on the CPU with the player's own decoder, so the boxes belong to the exact frame on screen - with the built-in engine and with libmpv. Detections are saved in the prediction cache: a second review, Testing's video analysis and the annotated export reuse them.

Over time. A strip under the seek bar shows each model's detections per frame (one lane per model, grey where nothing is analysed yet) with the events as coloured ticks: models disagree (a box of one model has no same-class box of another), flicker (a model loses an object for one frame) and uncertain (a box just below the threshold). Classes are compared by name, so models with different class orders compare correctly. Click the strip to seek; the event list and Alt+[ / Alt+] jump between events. Classes hides classes in the player; CSV… saves every detection of the video.

Send hard frames to Image QC… picks the frames worth labelling - where the models disagree, flicker or hesitate, strongest first and spread out (at most N per video, at least S seconds apart) - saves them in the output folder with LabelMe pre-labels from the model you choose, remembers each frame's video (Image QC ▸ Show Source Video) and opens them in Image QC: from a review to the next training round in one step. End review (or the end of the playlist) brings back the video that was open before, at its frame; opening another video by hand ends the review too.

See Metrics explained for what every number means.