All videos

ENPNOVA Pixel · ·

U-Net for Satellite Image Segmentation: Full Tutorial

U-Net is the model most people use when every pixel of an image needs a class: water, road, field, building. This tutorial builds it up from scratch.

Notes

U-Net is the model most people use when every pixel of an image needs a class: water, road, field, building. This tutorial builds it up from scratch. It starts with the background you need: tensors, convolution, padding, pooling, receptive fields and upsampling. Then it walks through the original 2015 paper layer by layer, follows one 572 × 572 tile through the network, and shows how the authors trained it on only 30 labelled images using elastic deformations and a border-weighted loss. From there it covers why the skip connections matter and how today’s U-Net in segmentation-models-pytorch 0.6.0 differs from the original. The remote sensing section deals with extra spectral bands, nodata, class imbalance, loss choice, IoU, pretrained U-Nets and tiling large scenes in TorchGeo 0.10.1. It closes with the U-Net family, from 3D U-Net to nnU-Net and diffusion models, and a practical checklist before you train.