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

# Prelabel with live training

> Pre-label a dataset's images with the weights a running live training session has right now, into a new dataset or in place for labeling, without stopping the session.

> **Note**
>
> A professional node, available with the Pro plan on OvalBee Cloud and with the Business plan on a self-hosted installation. On any plan you can add it to a flow and explore its settings; running it takes one of those plans.

## Overview

Pre-labels a whole dataset with a live training session that is still running, so labelers open images that already carry boxes from the latest weights.

Use it to pre-label a batch before it goes to labeling: the session keeps learning from every submitted image, and each batch it pre-labels comes from a model that has seen everything labeled so far. Unlike a Predict node, nothing has to stop the session to produce a checkpoint first.

Use **Pre-label in place** when labeling has already started. Point the node at the dataset a labeling step takes its images from, and every image not labeled yet, including those waiting in labelers' queues, opens in the labeling tool with boxes drawn. Turn on **Accept confident images** to skip review for the images the session is sure about: each goes straight to where a labeler's submit would have sent it, and labelers only check the rest.

Each run's predictions also go to the node's hidden `LAST_RUN` dataset. Every run adds a new version of it with only that run's images, so you can open any version to see what one run predicted.

In either mode, the **Prediction history** output keeps every image the node pre-labeled with its newest prediction, in a hidden dataset that labeling never changes. It's where [Prelabeling efficiency](/node-library/nodes/evaluate-evaluate-live-training-prelabeling) finds the prelabel each submitted image was opened with, even after labeling has replaced it.

```mermaid
flowchart LR
  n1["Serve live training"] --> n2["Prelabel with live training"] --> n3["Labeling"]
```

## Prerequisites

| Requirement                       | What you need                                                                                                                                                                                                                                                      |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Running live training session** | A session started from the [Serve live training with Grounding DINO](/node-library/nodes/models-grounding-dino-serve-live-training-with-grounding-dino) node or the Deployments page. It must already know its classes, from a submitted image or from its Config. |
| **Images in the workspace**       | A dataset of images. Videos are not pre-labeled.                                                                                                                                                                                                                   |

## How it works

Adds a version to the node's own pre-label dataset, on the input dataset's classes, and copies the images into it. Each version keeps everything earlier runs put there and adds this run's images. With **Pre-label in place** on, it instead takes the images still in the input dataset and in the labelers' queues it feeds, skipping any image a labeler has already saved.

Sends the images to the session in batches. Each batch is predicted between two of the session's training steps, with the weights it has at that moment.

Saves each image's predicted boxes as its annotation, in the new dataset or on the image where it is, and reports how many images were pre-labeled. The images this run predicted, with their boxes, also go to a new version of the `LAST_RUN` dataset.

Keeps each image's newest prediction in the hidden **Prediction history** as well, replacing an older one, so an evaluation can find the boxes a labeler started from after labeling has replaced them.

In place with **Accept confident images** on, moves each image whose every box scores at least **Accept confidence**, with its boxes, out of the dataset or queue it was waiting in and to where a labeler's submit would have sent it.

## FAQ

#### Does this stop or slow down the live training session?

It does not stop it. Training pauses for each request while the batch is predicted and resumes right after. A smaller **Images per request** hands the GPU back to training sooner.

#### Why did the run pre-label 0 images with a warning from the session?

The session refuses to predict while it is still loading, or before it knows any classes. The run does not fail: it stops there and logs a warning. Wait until the session is up, or submit a labeled image or list classes in its Config, and the next run pre-labels the images. A scheduled run keeps trying on its own.

#### Are the pre-labels counted in the session's assistance score?

Yes. The session remembers every prediction it hands out, so when a labeler submits a pre-labeled image, the session scores the submission against the boxes this node saved.

#### What happens to the input dataset?

Nothing, unless **Pre-label in place** is on. The images are copied into the node's pre-label dataset with the predictions as their annotations, and the dataset grows with every run. To work with one run only, use the `LAST_RUN` dataset: each of its versions holds the images of one run, with their boxes as the session drew them before labelers corrected them. That untouched copy is what [Compare prelabels with ground truth](/node-library/nodes/evaluate-evaluate-prelabeling-efficiency) needs as its prediction dataset - it compares only the images both datasets hold, so it scores the latest batch.

#### How do I pre-label the rest of a batch that is already being labeled?

Turn on **Pre-label in place** and pick the dataset the labeling step takes its images from - for a sample, the sample node's output. The images still waiting there and those in each labeler's queue get the session's boxes, so labelers only correct and submit. Images a labeler has saved or submitted are left alone, including ones saved or submitted while the run is still predicting: each batch checks its images again just before writing. When the dataset is one set of a [Label train, validation and test](/node-library/nodes/label-labeling-splits) step, turn on **Also the other sets of its labeling step** to pre-label all of its sets in one run. Running it again later replaces boxes a live training session drew - its own, or a pre-labeled copy's - with predictions from the newer weights, and never boxes a labeler saved.

#### Can confident images skip review?

Yes. Turn on **Accept confident images** and pick an **Accept confidence**. An image whose every box scores at least that much goes, with its boxes, to where the labeling step drawing from the dataset sends what is submitted - for [Label train, validation and test](/node-library/nodes/label-labeling-splits), the labeled dataset of the image's own set - and counts as labeled from then on. When no labeling step draws from the dataset - a loop that labels nothing by hand - accepted images go to **Accept into when nobody labels**. When the labeling step has several statuses, or no step draws from the dataset and that input is empty, there is no single destination and nothing is accepted. An image with a less confident box, or with no box at all, stays for a labeler. Nobody checks the accepted boxes, and the live training session learns only from submitted images, so accepted ones do not train it further. Pick a higher confidence to trade speed for fewer silent mistakes.

## Inputs

**`Live training session`** `deployment` — required

Running live training session to ask. It keeps training while this node runs, and each image is predicted with the weights it has at that moment. Key: `DEPLOYMENT`.

---

**`Dataset`** `dataset` — required

Images to pre-label. They are left untouched here and copied, with the predicted boxes, into the node's pre-label dataset, unless Pre-label in place is on. Key: `DATASET`.

---

**`Pre-label in place`** `boolean`

Write the predictions onto the images themselves instead of copying them. Pick the dataset a labeling step takes its images from - the images still waiting there and those in labelers' queues are pre-labeled, and each labeler opens them with boxes drawn. An image a labeler has already saved is left as it is. Key: `IN_PLACE`.

---

**`Also the other sets of its labeling step`** `boolean`

When the dataset is one set of a Label train, validation and test step, pre-label its other sets in the same run too. Each set's accepted images go to that set's own labeled dataset. Visible when `IN_PLACE` is `True`. Key: `ALL_SPLITS`.

---

**`Accept confident images`** `boolean`

Count the images the session is sure about as labeled, as if a labeler had submitted them. Each goes where the labeling step drawing from the dataset would send it. An image is accepted when every box scores at least Accept confidence, the rest stay for a labeler to check. Visible when `IN_PLACE` is `True`. Key: `ACCEPT`.

---

**`Accept into when nobody labels`** `dataset`

Where accepted images go when no labeling step draws from the dataset, as in a loop that labels nothing by hand. Ignored while a labeling step does - accepted images then always go where it sends them. Visible when `ACCEPT` is `True`. Key: `ACCEPT_DATASET`.

---

**`Accept confidence`** `number` — required, default: 0.8

Lowest box confidence an image may have and still be accepted. Only boxes above Minimum box confidence count, so it has to be higher than that. An image with no boxes is never accepted. Minimum: `0`. Maximum: `1`. Step: `0.05`. Visible when `ACCEPT` is `True`. Key: `ACCEPT_CONFIDENCE`.

---

**`Minimum box confidence`** `number`

Boxes less confident than this are not drawn, and not considered when accepting. Empty uses the session's own threshold. When accepting, keep it below Accept confidence. Minimum: `0`. Maximum: `1`. Step: `0.05`. Key: `CONF_THRESHOLD`.

---

**`Images per request`** `integer` — required, default: 8

How many images each request to the session carries. The session pauses training for every request, so a smaller batch hands the GPU back to training sooner. Minimum: `1`. Maximum: `64`. Step: `1`. Key: `BATCH_SIZE`.

---

## Outputs

**`Prelabeled dataset`** `dataset`

The node's pre-label dataset, holding the input images with the session's predictions as their annotations. Every run adds a version with everything the earlier runs put there plus this run's images, an image predicted again carrying its newest boxes. In place, the input dataset itself, or the dataset accepted images went to - the one the input's own images went to, when the sets of a labeling step go to several. The node previews it. Key: `OUTPUT_DATASET`.

---

**`Prediction history`** `dataset`

Hidden dataset holding every image this node pre-labeled with its newest prediction, kept in place across runs. Labeling never removes anything from it, so it is the prediction dataset Prelabeling efficiency finds each submitted image's prelabel in. Key: `PREDICTION_HISTORY`.

---

**`Last run`** `dataset`

Hidden dataset with only the images this run predicted, with their predicted boxes. Every run adds a new version of it, so each version shows one run. Shown as an artifact. Key: `LAST_RUN`.

---

**`Prelabeled images`** `string`

How many images got predictions, the training iteration of the weights that made the last of them, and how many were accepted. Key: `PRED_COUNT`.

---

**`Summary`** `object`

What the last run did, as a table - how many images it pre-labeled, how many went to each labeled dataset and how many were left for review. Hidden from the flow editor. Key: `SUMMARY`.

---

## Models and configuration

The model is whatever the session is training at the moment of each request, so there is no model to pick here. The session's own Config decides the vocabulary. **Minimum box confidence** overrides the session's threshold for this run only, and leaving it empty keeps the session's. When accepting it has to stay below **Accept confidence**: acceptance only sees the boxes that pass it.

## Runtime

Runs on an ordinary worker without a GPU. The predictions run on the session's GPU, so the session has to be up for the whole run.

## JSON config

Machine-readable node interface for automation and advanced usage.

#### Show JSON

```json
{
  "name": "Prelabel with live training",
  "description": "Pre-label a dataset's images with the weights a running live training session has right now, into a new dataset or in place for labeling, without stopping the session.",
  "category": "Predict",
  "namespace": null,
  "templateKey": "models/general/prelabel_with_live_training",
  "version": "v1",
  "inputs": [
    {
      "key": "DEPLOYMENT",
      "label": "Live training session",
      "type": "deployment",
      "description": "Running live training session to ask. It keeps training while this node runs, and each image is predicted with the weights it has at that moment.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "kind": "live_train"
      }
    },
    {
      "key": "DATASET",
      "label": "Dataset",
      "type": "dataset",
      "description": "Images to pre-label. They are left untouched here and copied, with the predicted boxes, into the node's pre-label dataset, unless Pre-label in place is on.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "creatable": false
      }
    },
    {
      "key": "IN_PLACE",
      "label": "Pre-label in place",
      "type": "boolean",
      "description": "Write the predictions onto the images themselves instead of copying them. Pick the dataset a labeling step takes its images from - the images still waiting there and those in labelers' queues are pre-labeled, and each labeler opens them with boxes drawn. An image a labeler has already saved is left as it is.",
      "required": false,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "ALL_SPLITS",
      "label": "Also the other sets of its labeling step",
      "type": "boolean",
      "description": "When the dataset is one set of a Label train, validation and test step, pre-label its other sets in the same run too. Each set's accepted images go to that set's own labeled dataset.",
      "required": false,
      "default": null,
      "visibleWhen": {
        "key": "IN_PLACE",
        "operator": "equals",
        "value": true
      }
    },
    {
      "key": "ACCEPT",
      "label": "Accept confident images",
      "type": "boolean",
      "description": "Count the images the session is sure about as labeled, as if a labeler had submitted them. Each goes where the labeling step drawing from the dataset would send it. An image is accepted when every box scores at least Accept confidence; the rest stay for a labeler to check.",
      "required": false,
      "default": null,
      "visibleWhen": {
        "key": "IN_PLACE",
        "operator": "equals",
        "value": true
      }
    },
    {
      "key": "ACCEPT_DATASET",
      "label": "Accept into when nobody labels",
      "type": "dataset",
      "description": "Where accepted images go when no labeling step draws from the dataset, as in a loop that labels nothing by hand. Ignored while a labeling step does - accepted images then always go where it sends them.",
      "required": false,
      "default": null,
      "visibleWhen": {
        "key": "ACCEPT",
        "operator": "equals",
        "value": true
      }
    },
    {
      "key": "ACCEPT_CONFIDENCE",
      "label": "Accept confidence",
      "type": "number",
      "description": "Lowest box confidence an image may have and still be accepted. Only boxes above Minimum box confidence count, so it has to be higher than that. An image with no boxes is never accepted.",
      "required": true,
      "default": 0.8,
      "visibleWhen": {
        "key": "ACCEPT",
        "operator": "equals",
        "value": true
      },
      "options": {
        "min": 0,
        "max": 1,
        "step": 0.05,
        "type": "float"
      }
    },
    {
      "key": "CONF_THRESHOLD",
      "label": "Minimum box confidence",
      "type": "number",
      "description": "Boxes less confident than this are not drawn, and not considered when accepting. Empty uses the session's own threshold. When accepting, keep it below Accept confidence.",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "min": 0,
        "max": 1,
        "step": 0.05,
        "type": "float"
      }
    },
    {
      "key": "BATCH_SIZE",
      "label": "Images per request",
      "type": "number",
      "description": "How many images each request to the session carries. The session pauses training for every request, so a smaller batch hands the GPU back to training sooner.",
      "required": true,
      "default": 8,
      "visibleWhen": null,
      "options": {
        "min": 1,
        "max": 64,
        "step": 1,
        "type": "integer"
      }
    }
  ],
  "outputs": [
    {
      "key": "OUTPUT_DATASET",
      "label": "Prelabeled dataset",
      "type": "dataset",
      "description": "The node's pre-label dataset, holding the input images with the session's predictions as their annotations. Every run adds a version with everything the earlier runs put there plus this run's images, an image predicted again carrying its newest boxes. In place, the input dataset itself, or the dataset accepted images went to - the one the input's own images went to, when the sets of a labeling step go to several. The node previews it.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "PREDICTION_HISTORY",
      "label": "Prediction history",
      "type": "dataset",
      "description": "Hidden dataset holding every image this node pre-labeled with its newest prediction, kept in place across runs. Labeling never removes anything from it, so it is the prediction dataset Prelabeling efficiency finds each submitted image's prelabel in.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "LAST_RUN",
      "label": "Last run",
      "type": "dataset",
      "description": "Hidden dataset with only the images this run predicted, with their predicted boxes. Every run adds a new version of it, so each version shows one run.",
      "artifact": true,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "PRED_COUNT",
      "label": "Prelabeled images",
      "type": "string",
      "description": "How many images got predictions, the training iteration of the weights that made the last of them, and how many were accepted.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "SUMMARY",
      "label": "Summary",
      "type": "object",
      "description": "What the last run did, as a table - how many images it pre-labeled, how many went to each labeled dataset and how many were left for review.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": true
    }
  ],
  "runtime": {
    "type": "docker",
    "devices": [
      "cpu"
    ],
    "dockerImage": null
  },
  "automation": {
    "requires_configuration": true
  },
  "widgets": {
    "widget": {
      "id": "asset-preview",
      "settings": {
        "datasetId": {
          "type": "variable",
          "value": "self.outputs.OUTPUT_DATASET"
        }
      }
    },
    "secondaryWidget": {
      "id": "table",
      "settings": {
        "data": {
          "type": "variable",
          "value": "self.outputs.SUMMARY"
        }
      }
    }
  }
}
```

## References

#### Sources and related pages

* [Serve live training with Grounding DINO](/node-library/nodes/models-grounding-dino-serve-live-training-with-grounding-dino) runs the session this node asks.
* [Predict Grounding DINO](/node-library/nodes/models-grounding-dino-predict-grounding-dino) predicts with a registered checkpoint instead of a running session.