TernausNet
U-Net with an ImageNet-pretrained VGG11 encoder for binary segmentation.
Segmentation · 49 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Segmentation
- Parameters
- 22.9M
- Operations
- 49
- Framework
- PyTorch
- Recurrent
- No
- Published
- Computer-Aided Analysis of Gastrointestinal Videos (arXiv 2018)
- Cited by
- 772 (as of 11 November 2026)
- Authors
- Vladimir Iglovikov, Alexey Shvets
- Source
- GitHub: ternaus/TernausNet
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14423
- Graph hash
- 4addfe5dbb364850f1c6487f5dc274e829cd4df2854df815111a37e576440bc6
- Skeleton hash
- 39e6ddcbf94beefa63612472045dc6e6530a8e75ab450eb5c56a97ec90497679
- Architecture hash
- 77b90428e6977f197e6a2479d8617296398210dbdbc2c1e496ea132e2f1f70ad
- Diagram SHA-256
- 3da59c3281de75ede90fa400d77df3a5a4a5b994d4e60224ee72d472e651e25c
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
UNet11 with 32 base filters, fed a 224 by 224 RGB image and returning a single-channel mask.
TernausNet is a U-Net whose encoder is the VGG11 network pre-trained on ImageNet, built for pixel-wise image segmentation. The paper's point is that initializing the encoder with ImageNet weights improves a U-Net that would otherwise be trained from scratch. The architecture was part of the winning solution, first out of 735, in the Kaggle Carvana Image Masking Challenge.
VGG11 contributes seven 3 by 3 convolutional layers, each followed by ReLU, and five max pooling operations that each halve the feature map. The fully connected layers are removed and replaced by a single 512-channel convolution that serves as the bottleneck between encoder and decoder. The decoder uses transposed convolutions that double the feature map size while halving the channels, concatenating each result with the matching encoder output, repeated five times to pair with the five poolings. Because of the five poolings, only images with sides divisible by 32 can be fed to the network.
On the Inria Aerial Image Labeling dataset the three initializations reached validation IoU of 0.593 for LeCun uniform, 0.686 for the ImageNet-pretrained encoder and 0.687 for a network fully pre-trained on Carvana. Pre-trained models converged much faster to their steady value than the non-pre-trained network. The captured member is UNet11 with 32 base filters, fed a 224 by 224 RGB image and returning a single-channel mask. Code and pre-trained weights are published at github.com/ternaus/TernausNet, and the package installs with pip as ternausnet.
Key idea. Initializing a U-Net's encoder with an ImageNet-pretrained VGG11, which speeds convergence and raises segmentation accuracy over training from scratch.
- TernausNet
- UNet11
- TernausNet UNet11
- U-Net VGG11
- pretrained encoder U-Net
- binary segmentation
- Carvana
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{iglovikov2018ternausnetunetvgg11encoder,
title={TernausNet: U-Net with VGG11 Encoder Pre-Trained on ImageNet for Image Segmentation},
author={Vladimir Iglovikov and Alexey Shvets},
year={2018},
eprint={1801.05746},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1801.05746},
}