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
On this page
Latest version 0.6.0, released October 26, 2026. Source repository
Its 0.6.0 release requires Python 3.10 or later. Python end of life dates.
segmentation-models-pytorch 0.6.0 breaking changes
- Removed
The package now requires Python 3.10 or later, so older Python versions can no longer be used. github.com - Removed
smp.encoders.pretrained_settings
The pretrained_settings attribute of smp.encoders is gone and code that reads it will fail. github.com - 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 - 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 - Configuration changed
The minimum supported versions of the dependencies went up, so older installed versions must be upgraded. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
segmentation-models-pytorch 0.5.0 breaking changes
- Removed
segmentation_models_pytorch.__version__.VERSION
segmentation_models_pytorch.__version__.VERSION was removed in segmentation-models-pytorch 0.5.0 pypi.org - 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 - 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 - Removed
segmentation_models_pytorch.decoders.pan.decoder.GAUBlock.upscale_mode
GAUBlock.upscale_mode was removed in segmentation-models-pytorch 0.5.0 pypi.org - 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 - Removed
segmentation_models_pytorch.decoders.upernet.decoder.UPerNetDecoder.fpn_bottleneck
UPerNetDecoder.fpn_bottleneck was removed in segmentation-models-pytorch 0.5.0 pypi.org - Removed
segmentation_models_pytorch.decoders.upernet.decoder.UPerNetDecoder.fpn_stages
UPerNetDecoder.fpn_stages was removed in segmentation-models-pytorch 0.5.0 pypi.org - Removed
segmentation_models_pytorch.decoders.upernet.model.UPerNetDecoder.fpn_bottleneck
UPerNetDecoder.fpn_bottleneck was removed in segmentation-models-pytorch 0.5.0 pypi.org - Removed
segmentation_models_pytorch.decoders.upernet.model.UPerNetDecoder.fpn_stages
UPerNetDecoder.fpn_stages was removed in segmentation-models-pytorch 0.5.0 pypi.org - Removed
segmentation_models_pytorch.encoders.densenet_encoders
segmentation_models_pytorch.encoders.densenet_encoders was removed in segmentation-models-pytorch 0.5.0 pypi.org
And 129 more in this version. Sign up to see every change
segmentation-models-pytorch 0.4.0 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 - Removed
segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3Decoder.out_channels
DeepLabV3Decoder.out_channels was removed in segmentation-models-pytorch 0.4.0 pypi.org - Removed
segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3PlusDecoder.out_channels
DeepLabV3PlusDecoder.out_channels was removed in segmentation-models-pytorch 0.4.0 pypi.org - Removed
segmentation_models_pytorch.decoders.deeplabv3.model.DeepLabV3PlusDecoder.output_stride
DeepLabV3PlusDecoder.output_stride was removed in segmentation-models-pytorch 0.4.0 pypi.org - 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 - 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 - 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 - 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 - 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 - 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
And 23 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.