Among convolution-based segmentation networks, U-Net still feels almost surgical in the way it carves objects out of a background. Its symmetrical encoder–decoder with long skip connections means that high-level semantics from deep layers are reunited with fine spatial detail from shallow layers, so boundaries stay crisp even when the training set is small. The architecture is lightweight enough to converge on a single GPU in just a few hours and is forgiving of data scarcity thanks to extensive spatial context reuse; yet those very skip connections make the model memory-hungry and, without careful augmentation, it can overfit repetitive textures. Because it predicts a dense mask in a single forward pass, post-processing is minimal, but the basic design struggles when many instances overlap since it has no built-in notion of object identity.
DeepLabv3+ takes an entirely different route by inserting Atrous Spatial Pyramid Pooling between the backbone and the decoder. Dilated convolutions at multiple rates let the model capture context from neighbourhoods ranging from a few pixels to almost the entire image, dramatically improving recall on large amorphous regions such as sky or road. The downside is computational cost: the atrous layers inflate both FLOPs and memory, making the network harder to deploy on edge devices, and the receptive-field mixing can blur fine details along thin structures unless the backbone is very deep. When trained well, however, DeepLabv3+ often yields state-of-the-art mIoU on urban-scene and satellite datasets where scale variability is extreme.
Mask R-CNN extends the two-stage detection paradigm by adding a small FCN head behind every region proposal, essentially giving each object its own private pixel predictor. This decoupling excels at instance segmentation because masks never compete with one another; one region’s errors do not directly spill into another’s. The trade-off is speed: proposals, RoIAlign, classification, bounding-box regression and per-instance masks add up to a multi-headed monster that struggles to hit real-time frame rates. Memory use also scales with the number of proposals, so dense scenes can choke the GPU unless careful pruning is applied. Nevertheless, Mask R-CNN remains the weapon of choice for datasets where object identity matters as much as pixel accuracy—think cell counting, retail product separation or autonomous driving.
SegFormer represents the newer transformer-backed generation that abandons convolutions in favour of hierarchical self-attention and MLP decoders. Its MiT backbone extracts global context early, enabling robust performance on challenging lighting or cluttered backgrounds, and the compact MLP head keeps inference surprisingly fast for a transformer. Yet the model is data-hungry and prone to overfitting artefacts when training images are scarce; moreover, on lower-resolution inputs the patch-based tokenisation can miss sub-pixel cues unless one crops aggressively or upsamples, which re-introduces latency. That said, SegFormer shines in large-scale, varied datasets where you have the GPU budget to pretrain or fine-tune on millions of images.