Skip to content

Image Classification With Pretrained Models

Classifying images without training from scratch: choosing a pretrained model, preparing images correctly and reading the output.

Editorial team 2 min read

Image classification assigns a label to a whole image — "cat", "invoice", "defective part". Pretrained models make it accessible without huge datasets.

Start With a Pretrained Model

Models such as ResNet, EfficientNet and vision transformers were trained on large datasets like ImageNet (1,000 everyday categories). Use one directly if its categories fit, or adapt it to yours.

Prepare Images Exactly as Expected

Each model expects a specific input: size (often 224×224), colour order (RGB), value range and normalisation. Mismatched preprocessing doesn't cause errors — just quietly worse predictions. Resize the shorter side and centre-crop to avoid distorting images.

Reading the Output

The model outputs a score per class; softmax turns scores into probabilities. Look at the top five predictions, because many categories are similar.

Adapting to Your Categories

  • Feature extraction: use the model's internal representation as input to a simple classifier trained on your images. Works with a few hundred examples.
  • Fine-tuning: retrain the final layers (or all layers, gently) on your labelled images.

Collecting Good Training Images

Use images like those the system will see in production — same cameras, lighting and backgrounds — and cover the variation that occurs.

Watch for Shortcuts

Models learn whatever separates classes in training data, which may be a watermark, background or ruler rather than the object. Inspect errors and test on images from different sources.

More in Applied AI

All Applied AI guides →
Applied AI Guide · 2 min

Object Detection Explained

How object detection finds and localises multiple objects in an image, the main model families and how accuracy is measured.

Applied AI 2 min read 3 Jun 2026

Applied AI Guide · 2 min

Image Segmentation

Semantic, instance and panoptic segmentation: labelling images pixel by pixel, and where each is used.

Applied AI 2 min read 2 Jun 2026

Applied AI Guide · 2 min

Optical Character Recognition (OCR) With AI

Extracting text from images and scanned documents: how modern OCR works, where it fails and how to improve results.

Applied AI 2 min read 1 Jun 2026

Applied AI Guide · 2 min

Named Entity Recognition

Finding people, organisations, places and other entities in text: approaches from rules to transformers and LLMs.

Applied AI 2 min read 31 May 2026