Transfer learning and fine-tuning

Transfer learning reuses a model trained on one large dataset as the starting point for a new task, and fine-tuning is the step that continues its training on your own labeled data so it adapts to your classes and images.

Tasks and trainingAlso called fine-tuning, pretrained models

How fine-tuning works

A detector or segmenter pretrained on a broad dataset such as COCO has already learned edges, textures and object parts in its backbone. Fine-tuning keeps those weights, replaces the final layers that predict the original classes with layers for your classes, and trains on your data, usually with a lower learning rate than training from scratch.

  • Full fine-tuning updates every layer; it adapts the most and needs the most data.
  • Freezing the backbone, or its early layers, trains only the later layers; it is faster and safer with few images.

When it helps most

It is the default for almost every custom vision project: a few hundred labeled images on top of a pretrained checkpoint usually beat many more images trained from random weights. The benefit shrinks as your images move away from the pretraining data, as with X-ray, thermal or microscopy imagery, but a pretrained start rarely hurts.

Settings that go wrong

  • A learning rate meant for training from scratch, which wipes out the pretrained features in the first epochs.
  • A different input size or normalization from the one the checkpoint was trained with.
  • Too many epochs on a small dataset: see overfitting.
  • Comparing checkpoints pretrained on different datasets without noting which one each started from.

Fine-tuning in Supervisely

The training apps on model training start from a pretrained checkpoint or from a model trained earlier in your team. Train YOLO offers checkpoints pretrained on COCO or Open Images V7, and the legacy YOLOv8 training app can freeze layers. Foundation models are fine-tuned too: Segment Anything 2.1 and SAM 3 each have a fine-tuning app, and the Smart Tool can switch to a version fine-tuned on your data.

Frequently asked questions.

What is the difference between transfer learning and fine-tuning?

Transfer learning is the general idea of reusing what a model learned on one task for another. Fine-tuning is the most common way to do it: start from pretrained weights and continue training some or all layers on your data.

Why use transfer learning in computer vision?

A model pretrained on a large dataset such as COCO or ImageNet already knows edges, shapes and textures, so it needs far fewer labeled images and less training time to learn your classes.