Back to Blog

Guide

What is a computer vision pipeline?

, 9 min read

Computer Vision Pipeline: Stages and Examples

A computer vision pipeline is the sequence of steps that takes images and videos from collection to a trained, evaluated and deployed model, and back again when new data arrives. It covers everything a model depends on: where the data comes from, how it is cleaned and labeled, how the model is trained and scored, and how the result reaches production.

This guide walks through each stage of a computer vision pipeline, what tends to go wrong at it, why real pipelines turn into loops, and an end-to-end example for object detection. It ends with a checklist you can hold your own computer vision workflow against.

The stages of a computer vision pipeline

Most teams describe the same eight stages, whatever they call them. The order matters less than the hand-offs: every stage reads what the previous one produced, so a mistake made early travels all the way to the model.

  1. Ingest
  2. Curate
  3. Label and review
  4. Split and version
  5. Train
  6. Evaluate
  7. Deploy
  8. Monitor
Evaluation and monitoring send hard cases and new data back to curation and labeling.

1. Ingest

Images and videos arrive from cameras, drones, phones, public datasets or an existing labeling platform. This stage lands them in one place, with their metadata, in a form every later step can read.

What goes wrong: files spread across several buckets, videos nobody decoded, the same batch uploaded twice, and no record of which images came from which site or camera. In OvalBee, an import is a node: drop images onto the graph, pull a public dataset from Dataset Ninja, or import a Supervisely project.

2. Curate

Curation decides what the model should learn from. It removes broken files and near-duplicates, catches label errors, finds rare cases and keeps the train and test sets apart.

What goes wrong: a dataset full of near-identical video frames, blurry or over-exposed images that teach the model nothing, and test images that also appear in the training set, which makes scores look better than the model is. A smaller, cleaner dataset usually trains a better model than a larger noisy one, and it costs less to label. See data curation and the Similar pairs node, which finds near-identical copies inside a dataset or across two of them.

3. Label and review

Annotators draw boxes, masks or classes, and reviewers check the work before it reaches training. This is the image annotation pipeline inside the bigger one, and it is usually the most expensive stage.

What goes wrong: inconsistent guidelines, no review step, rejected work that never comes back, and hard cases that a generalist labels the same way as easy ones. A good labeling stage gives each person their own queue, sends rejected images back for rework and routes hard cases to an expert. See data annotation and the Basic labeling pipeline template, where images cycle through labeling and review until they are accepted.

4. Split and version

Labeled data is split into training, validation and test sets, and each split is saved as a version that does not change afterwards.

What goes wrong: a test set that quietly grows between runs, so two scores are not comparable, and a model nobody can trace back to the exact images it was trained on. Versioning the splits is what makes every later number trustworthy. The train/validation split template splits labeled data into versioned sets, so every model can be traced to the data it saw.

5. Train

A model is trained or fine-tuned on the training split. For object detection that might be YOLO, DEIM, RF-DETR, RT-DETR or another detector, with a configuration chosen for the data and the hardware it will run on.

What goes wrong: configurations that live in someone’s terminal history, training on a dataset that has changed since, and GPUs that sit idle while a person waits to start the next run. A YOLO training pipeline that splits, trains, predicts and evaluates in one graph, like the Train YOLO detector template, removes most of these hand-offs. See model training.

6. Evaluate

The trained model is scored against ground truth on the test set: mAP, precision, recall and per-class results, and ideally a breakdown of what kind of errors it makes.

What goes wrong: comparing models scored on different test sets or with different thresholds, looking only at one average number, and missing that a class scores zero because its name differs between the labels and the model. Evaluation is most useful when its findings feed the next step: label errors go back to labeling, and the winner of a comparison moves on. See model evaluation, and the Detector evaluation and Detector comparison templates.

7. Deploy

The chosen model is exported, for example to ONNX or TensorRT, checked on the target hardware and served where it is needed: an endpoint, an edge device or a batch job.

What goes wrong: accuracy that changes after export, a latency budget nobody measured, and no record of which model version is in production. Measuring speed per format before release avoids the surprises. The Benchmark runtime node, for instance, measures latency and throughput of a model’s exported formats on a GPU.

8. Monitor

Production data drifts. A new camera, a different season, a new product on the line or a class that did not exist last month all show up as errors the test set never contained.

What goes wrong: finding out from a customer. Monitoring means collecting the images where the model is unsure or wrong, and feeding them back into curation and labeling. That return path is what turns a pipeline into a loop.

Why real pipelines are loops, not lines

A line diagram suggests that each stage runs once and the work is done. In practice, almost every stage sends work back to an earlier one:

  • Relabeling. Evaluation finds images where a confident model disagrees with the labels. Many of them are label errors, and they go back to labeling.
  • Retraining. New labeled data arrives every week, so the model is retrained on each new version of the dataset and compared with the one in production.
  • Model comparison. Several architectures or configurations are scored on the same test set, and only the winner moves on to deployment.
  • Active learning. Instead of labeling everything, each round labels the images the current model finds hardest or that show something new, then retrains. The active learning loop makes this the main shape of the pipeline.

The building blocks stay the same; they are connected in a circle instead of a line. Imported data feeds labeling, accepted labels feed training, the trained model is evaluated and compared, and its hard cases become the starting point for the next round of labeling.

Bring data in, organize labeling, check and clean, train, evaluate and compare, with hard cases from evaluation going back to labeling.hard casesBring data inOrganize labelingCheck and cleanTrainEvaluate and compare

This is why ML pipeline orchestration tools built for one-pass runs feel awkward for computer vision. A loop needs state that survives between rounds, datasets that are versioned rather than overwritten, and people who can step into the middle of it. The OvalBee docs on flows describe this as a process rather than a pipeline run.

Example: an object detection pipeline, end to end

The Active learning (object detection) template is a complete object detection pipeline built as one loop. In its own words, it is a detector that improves as new images arrive: pick what to label, pre-label it, check the data, retrain YOLO and DEIM, and keep the best model ready to deploy.

The flow behind the template, as it ran. Each group label opens its own template. Open the template

Each stage of it is also a template of its own, so you can read the pipeline stage by stage:

  1. Data import brings images into one dataset by drag and drop or from a cloud bucket, and keeps it in sync on a schedule.
  2. Diverse sampling picks the images that show something new, so labeling time is not spent on look-alikes.
  3. Labeling and review labels and reviews images in a loop, measures how much pre-labels save, and releases accepted images to training in batches.
  4. Dataset checks catch bad images and wrong labels before training: flagged images go back to labeling, and the rest move on.
  5. Train/validation split writes versioned training and validation sets.
  6. Train YOLO and train DEIM retrain both detectors on every new version of the training data and score them on the validation set.
  7. Pick the best model keeps every trained detector in one registry and picks a fair winner, re-scoring the current best on the latest data first.
  8. Production export exports the winner to ONNX and TensorRT and measures how fast it runs.

Read top to bottom, it is the eight stages from the start of this guide. Read as a whole, it is a loop: every new batch of images starts another round, and the model in production is replaced only when a new one wins on the same data.

How teams build computer vision pipelines today

There is no single standard way to build a computer vision pipeline. Most teams combine some of the following.

Scripts and notebooks. The fastest way to start, and often how a project’s first model is trained. They get hard to share as the project grows: state lives in files and in people’s heads, reruns happen by hand, and the person who wrote the script becomes the pipeline.

General-purpose orchestrators. Workflow schedulers such as Airflow or Kubeflow are good at running, retrying and logging tasks. Datasets, annotations and human review are not concepts they know about, so teams build those parts around them, and AI workflow orchestration ends up split between the scheduler and everything it does not cover.

Labeling tools. Strong at annotation, and usually the system of record for labels. The rest of the pipeline lives elsewhere, connected by exports and imports that someone has to run.

End-to-end platforms. They cover more stages in one place, from data to deployment. They differ mainly in how much of the process you can see and change, and in whether people and loops are part of the pipeline or happen outside it.

Building a computer vision pipeline as a visual flow

In OvalBee, a computer vision pipeline is built as a flow: a graph on a canvas whose nodes do the work, such as importing images, handing out labeling and review, training, evaluating and exporting models. Edges decide what runs next, and each node keeps its outputs, logs and run history, so the graph is both the description of the pipeline and the place where it runs.

Because labeling and review are stages of the flow, people work inside the pipeline instead of around it, and loops such as rework and retraining are ordinary edges. You can start from a template, build from ready nodes on the visual pipeline builder, or describe the pipeline to an AI agent that assembles a first version for you.

A checklist for your pipeline

  • Pin the test set to a version, so every model is scored on the same data.
  • Check for leakage between the training and test sets before you trust a score.
  • Keep a person in review for every image that reaches the training set.
  • Record which dataset version each model was trained and evaluated on.
  • Compare models fairly: the same test set, classes and thresholds for every candidate.
  • Decide what is good enough before you start, and stop labeling when the learning curve flattens.
  • Measure speed after export, on the hardware you deploy to.
  • Make the loop visible, so anyone on the team can see where an image is and what runs next.

FAQ

Computer vision pipeline questions

What are the stages of a computer vision pipeline?

Most pipelines have eight: ingest the images and videos, curate them, label and review, split and version the data, train a model, evaluate it against ground truth, deploy it, and monitor it in production. Evaluation and monitoring send hard cases and new data back to curation and labeling, which is why real pipelines are loops.

What is the difference between a pipeline and a workflow?

The words are often used interchangeably. A pipeline usually means a fixed sequence of automated steps that runs from start to end, while a workflow also includes people, decisions and work that comes back around. A computer vision project needs both, which is why OvalBee calls it a flow.

How is a computer vision pipeline different from an ML pipeline?

It is a kind of ML pipeline, with a few differences that dominate the work: the data is images and videos rather than tables, labels come from people drawing boxes and masks, evaluation counts object-level errors such as missed or misplaced boxes, and data quality problems such as near-duplicates and label errors usually matter more than the choice of model.

What is an active learning loop?

A way to build the training set in rounds. Each round, the current model helps choose which unlabeled images are worth labeling, people label and review them, and the model is retrained and scored on the same held-out data. The loop stops when more labels no longer improve the score.

Do I need code to build one?

Not in OvalBee. Build on the visual canvas from ready-made nodes, start from a template, or describe the workflow to the AI agent. Engineers can still use code where it adds value, through the API and Python SDK, while annotators, reviewers and domain experts work in the same flow without maintaining scripts.

Build your computer vision pipeline as a flow

Start from a template, adapt it on the canvas, or describe the pipeline to an AI agent and refine its first draft.