From 0114dd550367c40cda1c739f2290dd22e062e176 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 01:32:29 +0000 Subject: [PATCH 1/2] Bump the torch group in /requirements with 2 updates Bumps the torch group in /requirements with 2 updates: [torch](https://github.com/pytorch/pytorch) and [torchvision](https://github.com/pytorch/vision). Updates `torch` from 2.5.1 to 2.6.0 - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/compare/v2.5.1...v2.6.0) Updates `torchvision` from 0.20.1 to 0.21.0 - [Release notes](https://github.com/pytorch/vision/releases) - [Commits](https://github.com/pytorch/vision/compare/v0.20.1...v0.21.0) --- updated-dependencies: - dependency-name: torch dependency-type: direct:production update-type: version-update:semver-minor dependency-group: torch - dependency-name: torchvision dependency-type: direct:production update-type: version-update:semver-minor dependency-group: torch ... Signed-off-by: dependabot[bot] --- requirements/required.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/required.txt b/requirements/required.txt index d948d981..8bf2f775 100644 --- a/requirements/required.txt +++ b/requirements/required.txt @@ -5,6 +5,6 @@ pretrainedmodels==0.7.4 safetensors==0.5.2 six==1.17.0 timm==1.0.14 -torch==2.5.1 -torchvision==0.20.1 +torch==2.6.0 +torchvision==0.21.0 tqdm==4.67.1 From d3cefdda479bf1226e6536c4472efb0b4304497a Mon Sep 17 00:00:00 2001 From: Pavel Iakubovskii Date: Thu, 30 Jan 2025 09:41:43 +0000 Subject: [PATCH 2/2] Fix dpn exportable flag --- segmentation_models_pytorch/encoders/dpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segmentation_models_pytorch/encoders/dpn.py b/segmentation_models_pytorch/encoders/dpn.py index 4fe84328..ffbd7198 100644 --- a/segmentation_models_pytorch/encoders/dpn.py +++ b/segmentation_models_pytorch/encoders/dpn.py @@ -34,7 +34,7 @@ class DPNEncoder(DPN, EncoderMixin): _is_torch_scriptable = False - _is_torch_exportable = False + _is_torch_exportable = True # since torch 2.6.0 def __init__( self,