We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d97a3 commit ac39115Copy full SHA for ac39115
tests/models/test_pan.py
@@ -1,3 +1,4 @@
1
+import pytest
2
import segmentation_models_pytorch as smp
3
4
from tests.models import base
@@ -37,3 +38,11 @@ def test_interpolation(self):
37
38
assert model_2.decoder.gau2.align_corners is None
39
assert model_2.decoder.gau3.interpolation_mode == "bicubic"
40
assert model_2.decoder.gau3.align_corners is None
41
+
42
+ with pytest.warns(DeprecationWarning):
43
+ smp.create_model(
44
+ self.test_model_type,
45
+ self.test_encoder_name,
46
+ upscale_mode="bicubic",
47
+ )
48
+ assert model_2.decoder.gau1.interpolation_mode == "bicubic"
0 commit comments