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 e848409 commit 3124951Copy full SHA for 3124951
segmentation_models_pytorch/base/heads.py
@@ -10,7 +10,7 @@ def __init__(
10
in_channels, out_channels, kernel_size=kernel_size, padding=kernel_size // 2
11
)
12
upsampling = (
13
- nn.UpsamplingBilinear2d(scale_factor=upsampling)
+ nn.Upsample(mode="bilinear", scale_factor=upsampling)
14
if upsampling > 1
15
else nn.Identity()
16
0 commit comments