Creating and training a U-Net model with PyTorch for 2D & 3D semantic segmentation: Training [3/4]

A guide to semantic segmentation with PyTorch and the U-Net

Johannes Schmidt
Towards Data Science
7 min readDec 5, 2020

--

Image by author

In the previous chapters we created our dataset and built the U-Net model. Now it is time to start training. For that we will write our own training loop within a simple Trainer class and save it in…

--

--

Software & Data Engineer at Datamesh GmbH. Sharing knowledge and code around software (cloud) development, data engineering & data science!