Sample images similar to failures
Overview
Closes the loop between evaluating a model and improving its training data. It reads which images the model scored worst on, then searches a pool of candidate images for ones that look like them — so the next round of labelling is spent on the material the model actually struggles with rather than on more of what it already handles.
It embeds nothing itself. The CLIP Index node has already turned every indexed image into a vector, and the worst images from the report are among them, so this node only queries.
Each rerun writes a new version of the node’s own hidden LAST_RUN dataset holding that run’s sample, and the badge shows how many images it selected and opens it. Set a destination dataset to accumulate samples across runs as well.
Prerequisites
How it works
Ranks the evaluated images by the metric you choose and takes the worst few as seeds. Images with no ground-truth objects are skipped — a zero score on an empty frame says nothing about the model.
Inputs
Object detection evaluation report the failures are read from. Generic reports are not supported. Key: REPORT_ID.
Dataset the similar images are drawn from. Its images must already be in the CLIP index, so run a CLIP Index node on it first. Key: POOL_DATASET.
Images in this dataset are never sampled, so the pool itself never has to change. In an active learning loop, point it at the labeled training set and each sample holds only images nobody has picked yet. Key: EXCLUDE_DATASET.
Destination for the sample. Leave empty to keep it only in the node’s own Last run dataset. Key: DST_DATASET.
Which per-image metric decides the failures the sample is seeded from. Key: WORST_BY.
Options:
- F1 (
f1) - Recall (
recall) - Precision (
precision)
Maximum number of images to select. Fewer are returned when the pool holds nothing else similar enough. Minimum: 1. Maximum: 10000. Step: 1. Key: SAMPLE_SIZE.
How many of the worst-scoring evaluated images the search starts from. Minimum: 1. Maximum: 500. Step: 1. Key: SEED_COUNT.
Ignore candidates less similar than this to every seed. Raise it when the sample drifts off-topic. Minimum: 0. Maximum: 1. Step: 0.01. Key: SIMILARITY_THRESHOLD.
Leave out images the report already evaluated, so the sample is only new material. Key: EXCLUDE_EVALUATED.
Outputs
Key: DATASET.
Hidden dataset holding this run’s sample. A rerun writes a new version of it. Shown as an artifact. Key: LAST_RUN.
Number of image assets attached to the sample. Shown on the node as a badge. Selecting the badge opens LAST_RUN. Key: SELECTED_IMAGES.
JSON config
Machine-readable node interface for automation and advanced usage.