# qubvel/segmentation_models

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/qubvel-segmentation-models).**

4,917 stars · 1,047 forks · Python · mit

## Links

- GitHub: https://github.com/qubvel/segmentation_models
- awesome-repositories: https://awesome-repositories.com/repository/qubvel-segmentation-models.md

## Topics

`densenet` `efficientnet` `fpn` `image-segmentation` `keras` `keras-examples` `keras-models` `keras-tensorflow` `linknet` `mobilenet` `pre-trained` `pretrained` `pspnet` `resnet` `resnext` `segmentation` `segmentation-models` `tensorflow` `tensorflow-keras` `unet`

## Description

This is an image segmentation framework and masking toolkit for constructing binary and multi-class neural network architectures. It serves as a deep learning encoder wrapper that integrates pre-trained convolutional neural network architectures into semantic segmentation models.

The library enables the use of pre-trained backbones to isolate complex patterns and leverages transfer learning to accelerate training. It provides a collection of overlap-based loss functions and precision metrics specifically designed to evaluate and refine the accuracy of image masks.

The toolkit covers the full segmentation pipeline, including image input normalization, the assembly of encoder-decoder architectures, and the calculation of performance scores using overlap and precision metrics.

## Tags

### Artificial Intelligence & ML

- [Image Segmentation](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation.md) — Provides a framework for constructing neural networks that isolate specific objects within images. ([source](https://cdn.jsdelivr.net/gh/qubvel/segmentation_models@master/README.md))
- [PyTorch Semantic Segmentation Libraries](https://awesome-repositories.com/f/artificial-intelligence-ml/pytorch-semantic-segmentation-libraries.md) — Provides a comprehensive framework for building semantic segmentation models using pre-trained encoders and specialized loss functions.
- [Deep Learning Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/deep-learning-architectures.md) — Provides an interface for integrating pre-trained CNN architectures into semantic segmentation models.
- [Overlap-Based](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures/neural-network-components/loss-functions/overlap-based.md) — Provides Tversky-based loss functions to handle class imbalance between target objects and background pixels.
- [Mask Overlap Optimization](https://awesome-repositories.com/f/artificial-intelligence-ml/masked-language-modeling/masked-image-modeling/masked-loss-calculations/mask-overlap-optimization.md) — Applies specialized loss functions to refine the overlap of predicted masks against ground truth data.
- [Backbone Model Integration](https://awesome-repositories.com/f/artificial-intelligence-ml/pre-training-pipelines/backbone-model-integration.md) — Integrates pre-trained convolutional backbones to identify and isolate complex patterns in image data. ([source](https://github.com/qubvel/segmentation_models/blob/master/CHANGELOG.md))
- [Vision Loss Functions](https://awesome-repositories.com/f/artificial-intelligence-ml/prediction-visualization/loss-function-calculators/vision-loss-functions.md) — Implements specialized vision loss functions that measure mask overlap to improve model accuracy. ([source](https://github.com/qubvel/segmentation_models/blob/master/CHANGELOG.md))
- [Transfer Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/transfer-learning.md) — Leverages pre-trained weights from image classification networks to accelerate training of segmentation models.
- [Semantic Segmentation Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/vision-transformers/encoder-decoder-architectures/semantic-segmentation-architectures.md) — Implements encoder-decoder architectures specifically for pixel-wise semantic segmentation.
- [Computer Vision Toolkits](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-toolkits.md) — Offers a toolkit of overlap-based loss functions and precision metrics for evaluating segmentation accuracy.
- [Feature Map Upsamplers](https://awesome-repositories.com/f/artificial-intelligence-ml/feature-alignment/feature-map-upsamplers.md) — Increases spatial resolution of feature maps using transposed convolutions to align predictions with original image size.
- [Image Data Preprocessing](https://awesome-repositories.com/f/artificial-intelligence-ml/image-data-preprocessing.md) — Prepares raw image data to ensure compatibility between data sources and model encoders.
- [Instance Segmentation Loss Calculators](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures/neural-network-components/loss-functions/perceptual-loss/content-loss-calculators/focal-loss-calculators/detection-loss-calculators/instance-segmentation-loss-calculators.md) — Computes specialized loss functions to determine the exact accuracy of generated image masks. ([source](https://cdn.jsdelivr.net/gh/qubvel/segmentation_models@master/README.md))
- [Segmentation Model Abstractions](https://awesome-repositories.com/f/artificial-intelligence-ml/model-abstraction-layers/segmentation-model-abstractions.md) — Wraps deep learning layers into high-level API classes for rapid segmentation network assembly.

### Part of an Awesome List

- [Segmentation Evaluation Metrics](https://awesome-repositories.com/f/awesome-lists/ai/3d-detection-and-segmentation/segmentation-evaluation-metrics.md) — Calculates overlap and precision metrics to evaluate how well the model identifies object boundaries. ([source](https://github.com/qubvel/segmentation_models/blob/master/CHANGELOG.md))

### Data & Databases

- [Image Preprocessing Pipelines](https://awesome-repositories.com/f/data-databases/dataset-preparation-tools/image-text-pair-pipelines/image-preprocessing-pipelines.md) — Includes workflows for normalizing image pixel values for compatibility with chosen encoders. ([source](https://github.com/qubvel/segmentation_models/blob/master/CHANGELOG.md))
- [Input Normalizers](https://awesome-repositories.com/f/data-databases/image-preprocessing-utilities/pixel-normalizers/input-normalizers.md) — Provides utilities for standardizing image pixel values to match pre-trained encoder distributions.
