Back to directory

Segmentation Models PyTorch

A Python library of neural networks for image semantic segmentation built on PyTorch, with a two-line high-level API, 12 architectures and more than 800 pretrained encoders.

Segmentation Models PyTorch

Segmentation Models PyTorch is a Python library of neural networks for image semantic segmentation, built on PyTorch, with a high-level API simple enough to create a segmentation model in two lines of code. It provides 12 encoder-decoder architectures, including Unet, Unet++, Segformer and DPT, and more than 800 pretrained convolutional and transformer-based encoders, including support for the timm library.

It includes commonly used segmentation metrics and losses, such as Dice, Jaccard and Tversky loss, for training a model, along with ONNX export and compatibility with TorchScript tracing and compilation. Encoders ship with pretrained weights and a matching preprocessing function, so a user's input data can be normalized the same way the encoder's own weights were originally trained, which the documentation notes can improve accuracy and convergence speed when only the decoder is being trained.

Its documentation covers a quick start, further examples, the available models and encoders, and installation instructions.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.