Live training trains a model on manual annotations on the fly: every image a labeler submits becomes a training example, and the model starts generating object annotations for the next images. At some point the model stops getting better from more labeled images. From there on, labeling more images with live training costs time without improving the model, and the fastest way through the rest of the dataset is to prelabel it all at once and only correct the prelabels.
So a labeling team asks two questions: when to stop, and how much time the whole approach saves. This post answers both on 400 drone images of a paddy field, with about 127 small, thin rice panicles each, crossing each other or hidden in the leaves. A labeler needs about 8 minutes per image, so even a model that takes over part of the work saves a lot of time.
The flow in this post labels the images with live training in batches, watches the score of the prelabels and stops on its own once the score stops rising. Then it prelabels every image that is left and measures how much work those prelabels save.
Dataset: Wang H., Lyu S., Ren Y. Paddy Rice Imagery Dataset for Panicle Segmentation. Agronomy 11(8), 1542, 2021; data on Zenodo, CC BY 4.0. We use the 400-image version published on Dataset Ninja.
Here is the live flow from this run. It is read-only: open any node to see its settings, its data and its reports.
How the flow works
The flow has two parts. On the left, it prepares the data and takes the manual annotation time. In the middle, it runs a loop: each round labels one batch of images with live training and checks whether the score is still rising. When it is not, the loop ends and the flow prelabels the rest.
- Prepare the pool. The flow imports the annotated dataset from Dataset Ninja, 400 images with 50,730 panicles annotated as polygons, and replaces every polygon with its bounding box, since the live training session detects objects with bounding boxes. It copies the images into a pool: the images nobody has labeled yet.
- Take the manual annotation time. On the left, ten images from the pool lose their annotations and go to the annotation tool, which records how long each one takes.
- Label a batch with live training. In the middle, Take 15 images from the pool randomly selects 15 images the loop has not labeled yet, and a simulated labeler submits them to the live training session one by one, the same way a person would. The model trains on each of them.
- Score the batch. The prelabeling efficiency node scores the prelabels of the batch and updates its Score trend: Rising while the score still improves, Plateau once it stops.
- Check for a plateau. Score has plateaued checks the Score trend. While it reads Rising, Still rising: next batch starts the next round from step 3.
- Prelabel the rest. On a plateau, the labeled images leave the pool, and the trained session prelabels every image left in it: the test set.
- Measure the test set. The flow compares those prelabels with the ground-truth annotations, both as prelabeling efficiency and as object detection metrics.
The full list of nodes is in the node reference at the end of the post.
What the assistance score measures
The assistance score is the share of the annotation work that the prelabels take over from a labeler. For every image, the flow matches the predicted bounding boxes to the annotation the labeler submits, and each object ends up with one of five outcomes:
| Outcome | What the labeler does | Counts as |
|---|---|---|
| Accepted unchanged | Nothing: the predicted bounding box is right: its IoU (intersection over union) with the annotation is at least 0.75, or no edge is further from the annotation than 0.2% of the image diagonal | 1 |
| Moved or resized | Drags the bounding box into place: IoU at least 0.3, but not accepted unchanged | ½ |
| Class changed | Picks another class for the bounding box | ½ |
| Deleted (false positive) | Deletes a bounding box with no object under it | 0 |
| Missed, annotated manually | Draws a bounding box the model did not predict | 0 |
The score is the sum of these values divided by the number of outcomes. A score of 0% means the labeler annotates everything from scratch, and 100% means they only check the prelabels and submit. The report rates the score as partial assistance from 30%, strong assistance from 60% and production-grade from 90%.
When to stop labeling with live training
A labeler sees the score rise as the model learns, and then flatten. The flow decides when it has flattened with a simple rule: the Score trend reads Plateau once three batches in a row fail to beat the best earlier batch by at least 2 points. Against the best earlier batch rather than the previous one, because a batch of 15 images is noisy: one weak batch followed by an average one would otherwise look like progress. Both numbers are settings of the node.
The first batch scores 6%: the model has seen almost nothing yet, and the first images get no prelabels at all. By the third batch it does 42.3% of the work. Batches 4, 5 and 6 score 41.2%, 43.6% and 43.9%: the score still creeps up, but none of them is 2 points above 42.3%, so after 90 images the Score trend reads Plateau and the loop ends. The other 310 images become the test set.
Over the 90 images, a labeler would accept 4,451 predicted bounding boxes unchanged, move or resize 2,395, delete 5,877 and annotate 3,973 manually: (4,451 + ½ × 2,395) / 16,696 = 34%. This average includes the first batches, when the model still knew little.
Manual annotation time
To turn the score into minutes, the flow needs to know how long manual annotation takes on these images. On the left, it takes ten images from the pool, removes their annotations and sends them to Label by hand (no AI assistance). The annotation tool records the time spent on each image and leaves idle time out.
For this run, the ten images were submitted with an annotation time of about 4 seconds per bounding box, the rate measured by hand on another dataset of dense drone images with small objects. On your own data, the flow takes the time you actually spend.
The ten images hold 1,169 panicles, which comes to 8 minutes 16 seconds per image. Here is the same image prelabeled by the model after the plateau:
How much time live training saves
The flow measures the saving on both parts of the dataset.
While labeling with live training, the 90 images scored 34% on average, which saved 4 hours 11 minutes against annotating them by hand.
After the plateau, the trained model prelabeled the 310 remaining images, and the flow compared those prelabels with the ground truth. They score 46%: a labeler would accept 20,651 predicted bounding boxes unchanged, move or resize 10,075, delete 16,233 and annotate 9,185 manually. With prelabels, an image takes about 4 minutes 29 seconds instead of 8 minutes 16 seconds, which saves 19 hours 31 minutes on the 310 images.
Together that is 23 hours 42 minutes saved on the 400 images. The estimate assumes that each accepted bounding box saves its full annotation time, while a labeler still reviews every image.
A score of 46% sounds modest, but the saving is measured in time, and on these images time is what manual annotation costs most: each percentage point of the score is worth about 5 seconds per image.
Evaluate on images the model has never seen
The model never trained on the 310 test images, so they also show how good it is as a detector. Object detection metrics: test set compares its predictions with the ground-truth annotations.
| Metric | After 90 images (this run) | After 280 images (fixed 70/30 split) |
|---|---|---|
| AP50 | 0.58 | 0.64 |
| mAP 50:95 | 0.26 | 0.31 |
| Precision | 0.70 | 0.74 |
| Recall | 0.57 | 0.62 |
The right column is an earlier run of the same data with a fixed split: 280 images labeled with live training, tested on the other 120. Three times as many labeled images raised AP50 by 0.06, from 0.58 to 0.64. Past the plateau, labeling more images with live training improves the model only a little, while prelabeling them saves time straight away.
Try it on your data
Start from the Live training efficiency test template. You need a dataset annotated with bounding boxes, even a small one. Its setup asks for the dataset, the model, the classes and who annotates by hand. You label only 10 images to measure manual annotation time: a simulated labeler submits your existing annotations batch by batch through live training until the score stops rising, and the flow measures the saving on the rest. The template has no conversion node, so if your annotations are polygons or masks, convert them to bounding boxes first, as this flow does. If the numbers are worth it, add the Live training module to your labeling pipeline and annotate the rest of your data with it.
Node reference
Every node of the flow, with a link to its documentation.
| Node | What happens |
|---|---|
| Import Paddy Rice Panicle Detection from Dataset Ninja (Import from Dataset Ninja ↗) | Imports the annotated dataset to test on. |
| Convert polygons to bounding boxes (Transform annotations ↗) | Replaces every polygon with its bounding box. |
| Copy into the pool (Copy ↗) | Copies the images into the pool of images not labeled yet. |
| Sample 10 images to label by hand (Random sample ↗) | Selects the images to annotate manually. |
| Remove their annotations (Filter annotations ↗) | Removes their annotations, so they are annotated from scratch. |
| Label by hand (Labeling ↗) | The ten images are annotated; the tool records the time. |
| Deploy live training ↗ | Starts the live training session from Grounding DINO, a detector that takes the class names as text. |
| Next batch (Run flow ↗) | Starts each round of the loop. |
| Take 15 images from the pool (Random sample ↗) | Randomly selects the next batch from the images the loop has not labeled yet. |
| Simulated labeler ↗ | Labels the batch with the live training session, image by image. |
| Prelabeling efficiency and score trend ↗ | Scores the prelabels, converts the score into time and reads the Score trend. |
| Score has plateaued (Condition ↗) | Ends the loop once the Score trend reads Plateau. |
| Still rising: next batch (Start next round ↗) | Starts the next round while the score still rises. |
| Take labeled images out of the pool (Move ↗) | Leaves only the images the loop never labeled: the test set. |
| Prelabel the rest (Prelabel with live training ↗) | The trained session prelabels the test set. |
| Prelabeling efficiency: test set (Compare prelabels with ground truth ↗) | Scores those prelabels against the ground truth and converts the score into time. |
| Object detection metrics: test set (Object detection metrics ↗) | Compares the same predictions with the ground truth as a detector. |
