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.