UNet baselines for semantic segmentation
UNet (U-Net) is the encoder-decoder network that made pixel-level segmentation practical with little training data. In Supervisely you train five UNet-based semantic segmentation architectures on your masks and polygons, and the app saves everything needed to run the model as plain PyTorch outside the platform.

- Labels
- Polygons
- Bitmaps
- Apps
- Train, Serve
Apps in the Supervisely Ecosystem
Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.
A contracting path, an expanding path and skip connections
U-Net was introduced in 2015 by Ronneberger, Fischer and Brox for biomedical image segmentation. An encoder shrinks the image into features, a decoder grows them back to full resolution, and skip connections pass detail from each encoder level to the matching decoder level, which keeps boundaries sharp. The shape of the diagram gave the network its name.
It remains a common first model for semantic segmentation: it is small, it trains on a modest number of labeled images and it is easy to reason about when it fails.
Five architectures to choose from
| Architecture | Encoder |
|---|---|
| Vanilla UNet | The original design |
| UNet11 | VGG11 |
| UNet16 | VGG16 |
| AlbuNet | ResNet34 |
| LinkNet34 | LinkNet with a ResNet34 encoder |
The app converts your Supervisely labels, polygons and bitmaps alike, into segmentation masks before it trains, so a project labeled with either works.
Running Train UNet
Connect a computer with a GPU as an agent, then open the project's context menu and choose Neural Networks → UNet → Train UNet. In the dashboard, define the train and validation split, pick the classes, set the augmentations (applied on the fly), choose the architecture and tune the hyperparameters. The metrics charts and a preview of predictions over time show whether the masks are improving.
When it finishes, Team Files holds a folder with checkpoints (several epochs plus the best and the last) and info. Two files there matter later: model_classes.json, the class list in the order the model outputs it, and ui_state.json, which records the architecture and input resolution. An open_app.lnk file reopens the finished dashboard.
Serving it and taking it with you
To deploy, right-click the .pth file you want in Team Files, for example /unet/7777_lemons_demo/checkpoints/model_47_best.pth, and run Serve UNet on it, on a GPU or a CPU. The served model returns a mask per class to pre-labeling apps and to your own Python scripts.
Outside the platform, the weights and the two JSON files are all you need to rebuild the model as an ordinary PyTorch network; the repository has a notebook for it. Developers also use the app as a template to integrate their own semantic segmentation models.
Measure the result with IoU or the Dice coefficient. If you need more modern architectures such as SegFormer or DeepLabV3+, move to MMSegmentation; for separate instances, to Detectron2. Masks from other tools import as PNG masks.
Frequently asked questions.
Where does Train UNet save the model?
In Team Files, in a folder named after the session and the experiment, such as `/unet/7777_lemons_demo/`. Its `checkpoints` subfolder holds the `.pth` files, and `info` holds the class list and the settings the serve app reads.
Does UNet need a GPU?
Training does: connect a computer with a GPU as an agent before you start. Serving does not; Serve UNet runs on a GPU or on a CPU.
Is U-Net a CNN?
Yes. U-Net is a fully convolutional network: a contracting path of convolutions and pooling, an expanding path of up-convolutions, and skip connections that carry detail from one to the other. Ronneberger, Fischer and Brox introduced it in 2015 for biomedical image segmentation.
What is better than U-Net?
It depends on the data. On large and varied datasets, transformer-based models such as SegFormer in MMSegmentation or MaskDINO usually score higher; on small datasets with fine structures, such as microscopy, U-Net remains a strong baseline. Train both on the same split and compare their IoU.
Train and serve models on your own data.
Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.


