Simulate labeling with auto labeling
Overview
Labels a dataset that already has ground truth through an auto labeling session, one image at a time, the way a labeler would in the labeling tool. For each image the session first proposes its annotation from the labeled images it holds, then gets the ground truth annotation as if a labeler had submitted it, and keeps that image as a new reference for the next ones.
It lets you find out how much an auto labeling session would save on your data before anyone labels by hand. Every image goes to the hidden Submitted output as the simulated labeler submitted it, the same way a Labeling node with Track prelabeling efficiency keeps it. Connect Prelabeling efficiency to it to see how much of the work the pre-labels would have saved. The Prediction history output keeps every pre-label. Because the session trains nothing, Prelabeling efficiency reports one score over every image rather than a score over time. The node badge shows how many images were labeled, how many of them opened with a pre-label, and how many labeled images the session holds at the end.
Prerequisites
How it works
Reads the images of Labeled images that carry an annotation, in a random order that is the same on every run when Shuffle images is on.
For each image, asks the session for a pre-label from the labeled images it holds at that moment and keeps it in a new version of the prediction history. Then submits the image with its ground truth annotation, which the session captures as a new reference - together with whatever it proposed there that the annotation does not have, as a mistake to avoid.
FAQ
Why are the first images missing from the prediction history?
A session predicts nothing until it holds as many labeled images as initial_samples in its config asks for, since it labels only from images it has been given. Images it refuses are still submitted, only without a pre-label, so they aren’t in the history.
What happens when the session already holds labeled images?
The run goes ahead and logs a warning. The session pre-labels the first images from what it already holds, so its pre-labels are better than a new deployment’s would be. Start a new deployment for a measurement you can compare.
What happens when I run it again?
Every run adds a new version of the prediction history with that run’s pre-labels. With Shuffle images on, the images come in the same order every time, so two runs on new deployments compare directly. An image submitted to the same session in an earlier run is pre-labeled from its own reference.
How does this differ from Simulate labeling with live training?
A live training session fine-tunes a detector and needs training time between images, so Simulate labeling with live training waits for a number of training iterations after each one. An auto labeling session improves only by holding more labeled images, so this node submits the next image right away and finishes in minutes rather than hours.
What fails the run?
A dataset with no annotated image, a session that is not ready within 30 minutes of the start, and a session that stops answering mid-run.
Inputs
Running auto labeling session to label with. Use a new deployment - one that already holds labeled images pre-labels from them, and images it was given before are pre-labeled from themselves. Key: DEPLOYMENT.
Images to label, each with its annotation as what the labeler submits. Images with no annotation are skipped. Key: DATASET.
Label the images in a random order, the same on every run, instead of the dataset’s own order. Keep it on when the dataset is sorted by scene or by class, or the first images give the session references from only part of it. Key: SHUFFLE.
Outputs
Hidden dataset with every image as the simulated labeler submitted it, like the Submitted output of a Labeling node tracking prelabeling efficiency. Connect Prelabeling efficiency to it to score the pre-labels, it moves the images it scores out. Key: SUBMITTED_DATASET.
Hidden dataset of every labeled image with the pre-label the session opened it with, tagged with the session. Connect it to Compare prelabels with ground truth as its predictions, with Labeled images as the ground truth. Every run adds a version. Key: PREDICTION_HISTORY.
How many images were labeled, how many of them opened with a pre-label, and how many labeled images the session holds at the end. Shown on the node as a badge. Key: LABELED.
JSON config
Machine-readable node interface for automation and advanced usage.