Skip to content

Commit 7bb9d37

Browse files
qubveladamjstewart
andauthored
Update segmentation_models_pytorch/encoders/__init__.py
Co-authored-by: Adam J. Stewart <[email protected]>
1 parent d121fec commit 7bb9d37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

segmentation_models_pytorch/encoders/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def get_encoder(name, in_channels=3, depth=5, weights=None, output_stride=32, **
6666
if name.startswith("timm-"):
6767
warnings.warn(
6868
"`timm-` encoders are deprecated and will be removed in the future. "
69-
"Please use `tu-` equivalent encoders instead (see 'Timm encoders' section in the documentation)."
69+
"Please use `tu-` equivalent encoders instead (see 'Timm encoders' section in the documentation).",
70+
DeprecationWarning
7071
)
7172

7273
# convert timm- models to tu- models

0 commit comments

Comments
 (0)