---
title: "segmentation-models-pytorch 0.6.0 Breaking Changes on PyPI"
description: "What each segmentation-models-pytorch release removed, renamed or changed: 185 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/segmentation-models-pytorch
last_updated: 2026-12-04
---

# segmentation-models-pytorch breaking changes

segmentation-models-pytorch 0.6.0 (October 26, 2026) is its newest release with breaking changes, 13 of them. The first: segmentation-models-pytorch 0.6.0 requires Python 3.10 or later. Every breaking API change we have recorded in segmentation-models-pytorch on PyPI: 185 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.6.0`, released October 26, 2026. [Source repository](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch)

Its 0.6.0 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.4.0](#v-0-4-0) to [0.6.0](#v-0-6-0): 152 breaking changes in 2 versions.

## segmentation-models-pytorch 0.6.0 breaking changes

segmentation-models-pytorch 0.6.0, released October 26, 2026: 13 breaking changes.

- **Removed**  

The package now requires Python 3.10 or later, so older Python versions can no longer be used. [github.com](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch/releases/tag/v0.6.0)
- **Removed** `smp.encoders.pretrained_settings`  

The pretrained_settings attribute of smp.encoders is gone and code that reads it will fail. [github.com](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch/releases/tag/v0.6.0)
- **Behavior changed**  

Passing a string to encoder_weights for tu- encoders now emits a warning. Use True or None and select the pretrained variant in the encoder name. [github.com](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch/releases/tag/v0.6.0)
- **Behavior changed**  

The fallback to the original download URLs is removed. If the Hub is unreachable, set HF_ENDPOINT to a mirror or load weights from a local file. [github.com](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch/releases/tag/v0.6.0)
- **Configuration changed**  

The minimum supported versions of the dependencies went up, so older installed versions must be upgraded. [github.com](https://github.com/qubvel-org/segmentation%5Fmodels.pytorch/releases/tag/v0.6.0)
- **Signature changed** `segmentation_models_pytorch.losses.dice.DiceLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, ignore_index: Optional\[int\] = None, eps: float = 1e-07); now def \_\_init\_\_(self, mode: str... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.DiceLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, ignore_index: Optional\[int\] = None, eps: float = 1e-07); now def \_\_init\_\_(self, mode: str... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.focal.FocalLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, alpha: Optional\[float\] = None, gamma: Optional\[float\] = 2.0, ignore_index: Optional\[int\] = None, reduction: Optional\[str\] = 'mean', normalized: bool = False, reduced_threshold: Optional\[float\] = None); now... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.FocalLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, alpha: Optional\[float\] = None, gamma: Optional\[float\] = 2.0, ignore_index: Optional\[int\] = None, reduction: Optional\[str\] = 'mean', normalized: bool = False, reduced_threshold: Optional\[float\] = None); now... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.jaccard.JaccardLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, eps: float = 1e-07); now def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.JaccardLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, eps: float = 1e-07); now def \_\_init\_\_(self, mode: str, classes: Optional\[List\[int\]\] = None... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.tversky.TverskyLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: List\[int\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, ignore_index: Optional\[int\] = None, eps: float = 1e-07, alpha: float = 0.5, beta: float = 0.5, gamma: float... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)
- **Signature changed** `segmentation_models_pytorch.losses.TverskyLoss.__init__`  

Was def \_\_init\_\_(self, mode: str, classes: List\[int\] = None, log_loss: bool = False, from_logits: bool = True, smooth: float = 0.0, ignore_index: Optional\[int\] = None, eps: float = 1e-07, alpha: float = 0.5, beta: float = 0.5, gamma: float... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.6.0/)

## segmentation-models-pytorch 0.5.0 breaking changes

segmentation-models-pytorch 0.5.0, released April 17, 2025: 139 breaking changes.

- **Removed** `segmentation_models_pytorch.__version__.VERSION`  

segmentation_models_pytorch.\_\_version\_\_.VERSION was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.manet.decoder.MFAB`  

segmentation_models_pytorch.decoders.manet.decoder.MFAB was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.manet.decoder.PAB`  

segmentation_models_pytorch.decoders.manet.decoder.PAB was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.pan.decoder.GAUBlock.upscale_mode`  

GAUBlock.upscale_mode was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.upernet.decoder.FPNBlock`  

segmentation_models_pytorch.decoders.upernet.decoder.FPNBlock was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.upernet.decoder.UPerNetDecoder.fpn_bottleneck`  

UPerNetDecoder.fpn_bottleneck was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.upernet.decoder.UPerNetDecoder.fpn_stages`  

UPerNetDecoder.fpn_stages was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.upernet.model.UPerNetDecoder.fpn_bottleneck`  

UPerNetDecoder.fpn_bottleneck was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.decoders.upernet.model.UPerNetDecoder.fpn_stages`  

UPerNetDecoder.fpn_stages was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)
- **Removed** `segmentation_models_pytorch.encoders.densenet_encoders`  

segmentation_models_pytorch.encoders.densenet_encoders was removed in segmentation-models-pytorch 0.5.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.5.0/)

And 129 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## segmentation-models-pytorch 0.4.0 breaking changes

segmentation-models-pytorch 0.4.0, released January 8, 2025: 33 breaking changes.

- **Removed** `segmentation_models_pytorch.decoders.deeplabv3.decoder.DeepLabV3Decoder.out_channels`  

DeepLabV3Decoder.out_channels was removed in segmentation-models-pytorch 0.4.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Removed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3Decoder.out_channels`  

DeepLabV3Decoder.out_channels was removed in segmentation-models-pytorch 0.4.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Removed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3PlusDecoder.out_channels`  

DeepLabV3PlusDecoder.out_channels was removed in segmentation-models-pytorch 0.4.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Removed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3PlusDecoder.output_stride`  

DeepLabV3PlusDecoder.output_stride was removed in segmentation-models-pytorch 0.4.0 [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.deeplabv3.decoder.DeepLabV3Decoder.__init__`  

Was def \_\_init\_\_(self, in_channels, out_channels=256, atrous_rates=(12, 24, 36)); now def \_\_init\_\_(self, in_channels: int, out_channels: int, atrous_rates: Iterable\[int\], aspp_separable: bool, aspp_dropout: float). [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3.__init__`  

Was def \_\_init\_\_(self, encoder_name: str = 'resnet34', encoder_depth: int = 5, encoder_weights: Optional\[str\] = 'imagenet', decoder_channels: int = 256, in_channels: int = 3, classes: int = 1, activation: Optional\[str\] = None, upsampling... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3Decoder.__init__`  

Was def \_\_init\_\_(self, in_channels, out_channels=256, atrous_rates=(12, 24, 36)); now def \_\_init\_\_(self, in_channels: int, out_channels: int, atrous_rates: Iterable\[int\], aspp_separable: bool, aspp_dropout: float). [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3Plus.__init__`  

Was def \_\_init\_\_(self, encoder_name: str = 'resnet34', encoder_depth: int = 5, encoder_weights: Optional\[str\] = 'imagenet', encoder_output_stride: int = 16, decoder_channels: int = 256, decoder_atrous_rates: tuple = (12, 24, 36)... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3PlusDecoder.__init__`  

Was def \_\_init\_\_(self, encoder_channels, out_channels=256, atrous_rates=(12, 24, 36), output_stride=16); now def \_\_init\_\_(self, encoder_channels: Sequence\[int\], encoder_depth: Literal\[3, 4, 5\], out_channels: int, atrous_rates... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)
- **Signature changed** `segmentation_models_pytorch.decoders.fpn.model.FPN.__init__`  

Was def \_\_init\_\_(self, encoder_name: str = 'resnet34', encoder_depth: int = 5, encoder_weights: Optional\[str\] = 'imagenet', decoder_pyramid_channels: int = 256, decoder_segmentation_channels: int = 128, decoder_merge_policy: str = 'add'... [pypi.org](https://pypi.org/project/segmentation-models-pytorch/0.4.0/)

And 23 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
