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

# Feed live training

> Hands a labeled dataset to a running live-training session, then predicts a pool of unlabeled images with the weights the session has right now. Run it again after the next batch of labeling and the predictions come back better.

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

Connects a flow to a live-training deployment. It hands the session every image of a labeled
dataset, then asks it to predict a pool of unlabeled ones with the weights it has at that moment,
and publishes those predictions as a dataset.

One run is one round of the loop. Put it after a Labeling and review step and re-run the flow each
time a batch is submitted: the session keeps training in between, so each round's preview comes
from a model that has seen everything labeled so far.

```mermaid
flowchart LR
  A[Labeling and review] --> B[Labeled dataset]
  B --> C[Feed live training]
  C -->|POST /samples| D[Live training session]
  D -->|POST /predict| C
  C --> E[Preview dataset]
```

## Prerequisites

| Requirement                      | What you need                                                                                                                                                                                              |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Running live-training deployment | Started from the Deployments page, for example [Serve live training with Grounding DINO](/node-library/nodes/models-grounding-dino-serve-live-training-with-grounding-dino). This node does not start one. |
| Labeled dataset                  | Images whose annotations are already saved, from a [Labeling](/node-library/nodes/label-labeling) step or any dataset holding boxes.                                                                       |
| Preview dataset (optional)       | A pool of unlabeled images to predict. Without it the run only submits training images.                                                                                                                    |

## How it works

Asks the session where it is, which fails the run early if it is not up yet.

Submits every image of the labeled dataset in batches. The session reads each image's newest
annotation itself.

Selects the first images of the preview pool that are not in the labeled dataset, up to
`Preview Size`.

Predicts them with the weights the session has right now and writes the results to a new
version of the node's preview dataset, pinned to the vocabulary the session predicts in.

## FAQ

#### Why does it submit every image again on every run?

Because the session is the one that knows what it already holds. It replaces an image's boxes
instead of adding them twice, and it keeps the file it downloaded the first time, so a
resubmission is cheap. Tracking it on this side would be a second, staler copy of the answer.

#### Do the same preview images come back every run?

Yes, deliberately. The selection is the first unseen images of the pool, not a random sample,
so you watch those exact predictions improve as the labeled set grows. Each run's preview is a
version of the same dataset, so the earlier ones stay in its history to compare against.

#### What happens if I correct an image and run it again?

The session trains on the correction. An image it already holds has its boxes replaced by the
newer ones, which is what the `updated` count in the log reports.

#### Can it drive any live-training session?

Any deployment whose template declares `kind: live_train` and answers `/status`, `/samples` and
`/predict`. The picker only offers those.

#### What does this node not support?

It does not start, stop or configure the deployment, and it registers no model version — the
session does that on its own schedule. It reads annotations through the session rather than
exporting them, so whatever the session trains is what its own endpoint accepts.

## Inputs

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

A running live-training deployment. Start one from the Deployments page — this node does not start it, and fails if it is not running. Key: `DEPLOYMENT`.

---

**`Labeled dataset`** `dataset` — required

Images to train on — the outcome dataset of a Labeling and review step. Every image in it is submitted, and an image the session already holds has its boxes replaced by the newer ones, so re-running after a correction teaches the correction. Key: `TRAIN_DATASET`.

---

**`Preview dataset`** `dataset`

Pool of not-yet-labeled images. A sample of it is predicted after the submission, so you can see what the session has learned before labeling the next batch. Leave empty to only submit. Key: `PREVIEW_DATASET`.

---

**`Preview Size`** `integer` — required, default: 10

How many unseen images to predict. 0 predicts every image of the preview dataset that is not already in the labeled one. Minimum: `0`. Key: `PREVIEW_SIZE`.

---

**`Confidence Threshold`** `number`

Lowest score a prediction keeps. Leave empty to use the session's own setting. Minimum: `0`. Maximum: `1`. Key: `CONF_THRESHOLD`.

---

**`Batch Size`** `integer` — required, default: 16

Number of asset ids sent per request, for both submission and prediction. Minimum: `1`. Key: `BATCH_SIZE`.

---

## Outputs

**`Preview Dataset`** `dataset`

The node's preview dataset. Each run adds a version holding the unseen preview images and the session's predictions on them, and earlier runs' previews stay in its history. Shown as an artifact. Key: `OUTPUT_DATASET`.

---

**`Submitted Images`** `string`

Badge showing how many images this run handed to the session, and where it got to. Shown on the node as a badge. Selecting the badge opens `TRAIN_DATASET`. Key: `TRAIN_COUNT`.

---

**`Preview Count`** `string`

Badge showing the number of unseen images predicted. Shown on the node as a badge. Selecting the badge opens `OUTPUT_DATASET`. Key: `PRED_COUNT`.

---

## Models and configuration

There is no model input: the weights belong to the deployment, chosen when it was started, and this
node only borrows them. `Confidence Threshold` overrides the session's own threshold for this run's
predictions and nothing else — every other setting stays where the deployment declared it, which is
what keeps one flow run from silently retuning a session other runs share.

`Batch Size` bounds how many asset ids go in one request. A submission makes the session read an
annotation per id and a prediction runs a forward pass per id, and both wait behind a training step,
so a large batch is one long request rather than many short ones.

## Runtime

Runs on the live-training pack's own CPU image: it makes HTTP calls to the deployment and writes
datasets, and needs no GPU and no framework of its own. The deployment's address and token are resolved by the
platform before the container starts, so the node cannot be pointed at anything else.

## JSON config

Machine-readable node interface for automation and advanced usage.

#### Show JSON

```json
{
  "name": "Feed live training",
  "description": "Hands a labeled dataset to a running live-training session, then predicts a pool of unlabeled images with the weights the session has right now. Run it again after the next batch of labeling and the predictions come back better.",
  "category": "Predict",
  "namespace": "ovalbee",
  "templateKey": "models/general/feed_live_training",
  "version": "v1",
  "inputs": [
    {
      "key": "DEPLOYMENT",
      "label": "Live training session",
      "type": "deployment",
      "description": "A running live-training deployment. Start one from the Deployments page — this node does not start it, and fails if it is not running.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "kind": "live_train"
      }
    },
    {
      "key": "TRAIN_DATASET",
      "label": "Labeled dataset",
      "type": "dataset",
      "description": "Images to train on — the outcome dataset of a Labeling and review step. Every image in it is submitted, and an image the session already holds has its boxes replaced by the newer ones, so re-running after a correction teaches the correction.",
      "required": true,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "PREVIEW_DATASET",
      "label": "Preview dataset",
      "type": "dataset",
      "description": "Pool of not-yet-labeled images. A sample of it is predicted after the submission, so you can see what the session has learned before labeling the next batch. Leave empty to only submit.",
      "required": false,
      "default": null,
      "visibleWhen": null
    },
    {
      "key": "PREVIEW_SIZE",
      "label": "Preview Size",
      "type": "number",
      "description": "How many unseen images to predict. 0 predicts every image of the preview dataset that is not already in the labeled one.",
      "required": true,
      "default": 10,
      "visibleWhen": null,
      "options": {
        "type": "integer",
        "min": 0
      }
    },
    {
      "key": "CONF_THRESHOLD",
      "label": "Confidence Threshold",
      "type": "number",
      "description": "Lowest score a prediction keeps. Leave empty to use the session's own setting.",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "type": "float",
        "min": 0,
        "max": 1
      }
    },
    {
      "key": "BATCH_SIZE",
      "label": "Batch Size",
      "type": "number",
      "description": "Number of asset ids sent per request, for both submission and prediction.",
      "required": true,
      "default": 16,
      "visibleWhen": null,
      "options": {
        "type": "integer",
        "min": 1
      }
    }
  ],
  "outputs": [
    {
      "key": "OUTPUT_DATASET",
      "label": "Preview Dataset",
      "type": "dataset",
      "description": "The node's preview dataset. Each run adds a version holding the unseen preview images and the session's predictions on them, and earlier runs' previews stay in its history.",
      "artifact": true,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "TRAIN_COUNT",
      "label": "Submitted Images",
      "type": "string",
      "description": "Badge showing how many images this run handed to the session, and where it got to.",
      "artifact": false,
      "badge": true,
      "badgeOpens": "TRAIN_DATASET",
      "hidden": false
    },
    {
      "key": "PRED_COUNT",
      "label": "Preview Count",
      "type": "string",
      "description": "Badge showing the number of unseen images predicted.",
      "artifact": false,
      "badge": true,
      "badgeOpens": "OUTPUT_DATASET",
      "hidden": false
    }
  ],
  "runtime": {
    "type": "docker",
    "devices": [
      "cpu"
    ],
    "dockerImage": null
  },
  "widgets": {
    "widget": {
      "id": "asset-preview",
      "settings": {
        "datasetId": {
          "type": "variable",
          "value": "self.outputs.OUTPUT_DATASET"
        }
      }
    }
  }
}
```

## References

#### Sources and related pages

* [Serve live training with Grounding DINO](/node-library/nodes/models-grounding-dino-serve-live-training-with-grounding-dino) — the deployment this node drives.
* [Serve live auto labeling with SAM 3](/node-library/nodes/models-sam-3-serve-live-auto-labeling-with-sam-3) — the other deployment this node can drive.
* [Labeling](/node-library/nodes/label-labeling) — produces the labeled dataset each round submits.