The Vision Journalmodel cards for computer vision

Model library › Applications

How to Choose a Computer Vision Model for Your Application

Model card filed 2026-10-26

01 Overview

Choosing a computer vision model is less about picking the most fashionable architecture and more about matching a model's assumptions to the problem you actually have. Two questions dominate the decision. First, what must the system output: a single label for an image, a set of boxes with classes, a pixel-level mask, or a count? Second, what constraints does deployment impose: latency, memory, camera resolution, and whether inference runs on a device or a server. A model that answers the wrong question perfectly is still the wrong model.

Most practical systems are built from convolutional neural networks, or CNNs. A CNN learns filters that respond to local patterns such as edges, textures, and shapes, and stacks those filters into deeper representations. Classification models compress an image into a label. Detection models add a prediction head that proposes regions and assigns classes and coordinates. The same backbone can often serve several tasks, which is why teams separate the feature extractor from the task head when comparing options.

The honest starting point is to define a baseline. Collect a small, representative sample of the images the system will see, label them carefully, and measure a simple model before investing in something larger. This baseline tells you whether the problem is easy, whether labels are consistent, and where errors concentrate. Only then does it make sense to compare architectures, input sizes, and training strategies. The goal is not the highest score on a public benchmark but reliable behavior on your data.

02 What the model is for

A vision model is a function learned from examples. You show it many images with the answers you care about, and it learns a mapping from pixels to those answers. The mapping is only as good as the definition of the answer. If two annotators disagree about whether a partially visible object counts, the model will learn a blurred boundary and produce inconsistent predictions. Clarifying the label definition is often more valuable than changing the architecture.

Classification answers what is in the image. Detection answers what is in the image and where. Segmentation answers which pixels belong to each object. Counting, tracking, and pose estimation are variations built on these primitives. Before choosing, write down the exact output format your downstream system needs. A detector that returns boxes may be unnecessary if you only need to know whether a defect is present. Conversely, a classifier cannot tell you how many items are on a shelf.

Consider the operating environment as part of the task. A model trained on well-lit studio photos may fail on a factory floor with glare and motion blur. A model tuned for one camera angle may not transfer to a second camera. The task is not just recognizing objects but doing so under the conditions that actually occur. Document those conditions, including rare but important cases such as empty scenes, crowded scenes, and objects at the edge of the frame.

03 The data it needs

Data quality sets the ceiling for any vision model. You need images that resemble deployment conditions, labels that follow a written definition, and enough variety to cover the situations the system will face. Variety matters more than raw volume. A thousand near-duplicate frames from one video add little beyond the first few. A few hundred images spanning different lighting, angles, backgrounds, and object appearances teach far more.

Split data into training, validation, and test sets before tuning anything. The test set should represent the real world and remain untouched until the end. If images come from video, split by scene or session rather than by frame, because adjacent frames are nearly identical and leaking them across splits inflates scores. Keep a separate set of hard examples, such as small objects or heavy occlusion, to check whether improvements are real or just average-case gains.

Labels deserve explicit rules. Define what counts as an object, how to handle partial visibility, and what to do with ambiguous cases. Track who labeled what and measure agreement on a sample. Class imbalance is common: rare but important classes may need more examples or adjusted loss weighting. Also plan for negative examples, images with no target objects, so the model learns when to stay silent. Finally, version your datasets. When performance changes, you need to know whether the data or the model changed.

04 Architecture in plain terms

A convolutional network processes an image through a series of stages. Early stages detect simple patterns such as edges and color transitions. Middle stages combine them into textures and parts. Later stages form object-level features. Each stage typically reduces spatial resolution while increasing the number of channels, so the network trades fine detail for semantic abstraction. This hierarchy is why CNNs work well for images: local patterns compose into global structure.

For detection, the network needs to output locations as well as classes. Common designs either propose candidate regions and classify them, or predict boxes directly on a grid of locations. Both rely on a backbone for features and a head for predictions. Anchor-based methods use predefined box shapes as references; anchor-free methods predict centers or corners directly. The choice affects tuning complexity more than the fundamental capability.

Input size interacts with everything. Larger inputs preserve small-object detail but cost more computation and memory. Smaller inputs run faster but may erase the very features you need. Receptive field, the region of the input that influences a given output, must be large enough to cover the objects of interest. When comparing architectures, hold input size and training budget constant. Otherwise you are measuring resources, not design.

05 Training and evaluation

Training adjusts the network's weights to reduce a loss that measures the difference between predictions and labels. For classification, that loss compares a predicted distribution over classes with the true class. For detection, the loss combines classification error with localization error for predicted boxes. Optimization proceeds in small batches over many passes through the data, with a learning rate schedule that starts larger and decays. Data augmentation, such as random crops, flips, and color jitter, expands effective variety and reduces overfitting.

Evaluation must match the task. Classification uses accuracy, precision, recall, or a confusion matrix when classes are imbalanced. Detection uses mean average precision, which rewards correct class predictions whose boxes overlap the ground truth sufficiently. Report metrics on the untouched test set and break them down by condition: day versus night, near versus far, common versus rare classes. An aggregate number can hide a failure that matters in production.

Beware of overfitting to the validation set through repeated tuning. Each adjustment based on validation results leaks a little information. Keep a final holdout, or use cross-validation when data is scarce. Track training curves for signs of underfitting, where both training and validation error stay high, versus overfitting, where training error falls while validation error rises. Calibrate confidence scores if downstream logic uses thresholds. A model that is accurate but poorly calibrated can still make bad decisions when a cutoff is applied.

06 Limitations and failure modes

Vision models fail in predictable ways. Domain shift is the most common: the test images differ from training images in lighting, weather, camera, or background, and accuracy drops. Small objects, heavy occlusion, and motion blur are persistent difficulties because the evidence in the pixels is weak. Rare classes are often missed because the model has seen too few examples. Crowded scenes cause detectors to merge or drop overlapping objects.

Confidence scores are not guarantees. A model can be confidently wrong, especially on inputs unlike anything in training. Out-of-distribution inputs, such as a camera covered by dust or a scene with an unfamiliar object, may produce arbitrary predictions. Adversarial or unusual patterns can also mislead a network. For safety-relevant applications, combine model output with independent checks, human review, or redundancy, and define what the system should do when it is uncertain.

Bias in data becomes bias in predictions. If certain groups, locations, or conditions are underrepresented, performance will be uneven. Fairness and robustness should be measured, not assumed. Finally, models drift as the world changes: new products, new packaging, new camera positions. Plan for monitoring, periodic re-evaluation, and retraining. A model is a maintained component, not a one-time artifact.

07 Frequently asked questions

How much data do I need? There is no universal number. Start with a few hundred well-labeled, varied images and measure. If the model underfits, add capacity or train longer. If it overfits, add data or augmentation. The marginal value of more data depends on how much variety each new image adds. A small, diverse, carefully labeled set often beats a large, repetitive one.

Should I train from scratch or start from a pretrained model? Pretraining on a large general dataset usually helps, especially when your labeled data is limited, because early layers learn broadly useful features. Fine-tuning then adapts the model to your domain. Training from scratch can work when your dataset is large and very different from typical photos, but it demands more data and compute.

How do I choose input size? Match it to the smallest object you must detect and the compute budget you can afford. If objects occupy few pixels, a larger input helps, but test whether the gain justifies the cost. Measure latency on the actual deployment hardware, not a development machine.

How do I know when to stop? Stop when improvements on the test set no longer justify added complexity, latency, or maintenance. Track a small set of hard cases and confirm that changes help them. Simplicity is a feature: a smaller, well-understood model is easier to monitor, debug, and update than a large one whose failures you cannot explain.