Skip to navigation

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.

Serve live auto labeling with SAM 3 Simulate labeling with auto labeling Prelabeling efficiency

Prerequisites

RequirementWhat you need
Auto labeling sessionA running session, from the Serve live auto labeling with SAM 3 node. A new deployment gives a fair measurement: one that already holds labeled images pre-labels the first images from them.
Ground truth annotationsImages in Labeled images that already carry their annotation in that dataset. Images without one are skipped.

How it works

1

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.

2

Waits until the session has loaded its model.

3

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.

4

Moves on to the next image at once: the session trains nothing, so there is nothing to wait for.

FAQ

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.

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.

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.

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.

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

Auto labeling session
deploymentRequired

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.

Labeled images
datasetRequired

Images to label, each with its annotation as what the labeler submits. Images with no annotation are skipped. Key: DATASET.

Shuffle images
booleanDefaults to trueRequired

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

Submitted
dataset

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.

Prediction history
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.

Labeled
string

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.

{
"name": "Simulate labeling with auto labeling",
"description": "Work through a labeled dataset the way a labeler does with an auto labeling session - open each image with the session's pre-label, then submit its ground truth annotation, which the session takes as a new reference. Use it to try auto labeling on data that already has ground truth, and score its pre-labels with Prelabeling efficiency.",
"category": "Label",
"namespace": null,
"templateKey": "models/general/simulate_labeling_with_auto_labeling",
"version": "v1",
"inputs": [
{
"key": "DEPLOYMENT",
"label": "Auto labeling session",
"type": "deployment",
"description": "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.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"kind": "auto_labeling"
}
},
{
"key": "DATASET",
"label": "Labeled images",
"type": "dataset",
"description": "Images to label, each with its annotation as what the labeler submits. Images with no annotation are skipped.",
"required": true,
"default": null,
"visibleWhen": null,
"options": {
"creatable": false
}
},
{
"key": "SHUFFLE",
"label": "Shuffle images",
"type": "boolean",
"description": "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.",
"required": true,
"default": true,
"visibleWhen": null
}
],
"outputs": [
{
"key": "SUBMITTED_DATASET",
"label": "Submitted",
"type": "dataset",
"description": "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.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "PREDICTION_HISTORY",
"label": "Prediction history",
"type": "dataset",
"description": "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.",
"artifact": false,
"badge": false,
"badgeOpens": null,
"hidden": false
},
{
"key": "LABELED",
"label": "Labeled",
"type": "string",
"description": "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.",
"artifact": false,
"badge": true,
"badgeOpens": null,
"hidden": false
}
]
}