> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ovalbee.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ovalbee.com/_mcp/server.

# Simulate labeling with auto labeling

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

## 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](/node-library/nodes/evaluate-evaluate-live-training-prelabeling) 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.

```mermaid
flowchart LR
  n1["Serve live auto labeling with SAM 3"] --> n2["Simulate labeling with auto labeling"] --> n3["Prelabeling efficiency"]
```

## Prerequisites

| Requirement              | What you need                                                                                                                                                                                                                                                         |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Auto labeling session    | A running session, from the [Serve live auto labeling with SAM 3](/node-library/nodes/models-sam-3-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 annotations | Images in **Labeled images** that already carry their annotation in that dataset. Images without one are skipped.                                                                                                                                                     |

## 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.

Waits until the session has loaded its model.

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.

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

## 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](/node-library/nodes/models-general-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

**`Auto labeling session`** `deployment` — required

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`** `dataset` — required

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

---

**`Shuffle images`** `boolean` — required, default: true

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.

#### Show JSON

```json
{
  "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
    }
  ]
}
```