Skip to content

Commit 138f6ae

Browse files
committed
Rename for Unet, Unet++, Manet
1 parent b8586c7 commit 138f6ae

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

segmentation_models_pytorch/decoders/manet/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MAnet(SegmentationModel):
4848
```
4949
decoder_pab_channels: A number of channels for PAB module in decoder.
5050
Default is 64.
51-
decoder_interpolation_mode: Interpolation mode used in decoder of the model. Available options are
51+
decoder_interpolation: Interpolation mode used in decoder of the model. Available options are
5252
**"nearest"**, **"bilinear"**, **"bicubic"**, **"area"**, **"nearest-exact"**. Default is **"nearest"**.
5353
in_channels: A number of input channels for the model, default is 3 (RGB images)
5454
classes: A number of classes for output mask (or you can think as a number of channels of output mask)
@@ -82,7 +82,7 @@ def __init__(
8282
decoder_use_norm: Union[bool, str, Dict[str, Any]] = "batchnorm",
8383
decoder_channels: Sequence[int] = (256, 128, 64, 32, 16),
8484
decoder_pab_channels: int = 64,
85-
decoder_interpolation_mode: str = "nearest",
85+
decoder_interpolation: str = "nearest",
8686
in_channels: int = 3,
8787
classes: int = 1,
8888
activation: Optional[Union[str, Callable]] = None,
@@ -114,7 +114,7 @@ def __init__(
114114
n_blocks=encoder_depth,
115115
use_norm=decoder_use_norm,
116116
pab_channels=decoder_pab_channels,
117-
interpolation_mode=decoder_interpolation_mode,
117+
interpolation_mode=decoder_interpolation,
118118
)
119119

120120
self.segmentation_head = SegmentationHead(

segmentation_models_pytorch/decoders/unet/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Unet(SegmentationModel):
5858
```
5959
decoder_attention_type: Attention module used in decoder of the model. Available options are
6060
**None** and **scse** (https://arxiv.org/abs/1808.08127).
61-
decoder_interpolation_mode: Interpolation mode used in decoder of the model. Available options are
61+
decoder_interpolation: Interpolation mode used in decoder of the model. Available options are
6262
**"nearest"**, **"bilinear"**, **"bicubic"**, **"area"**, **"nearest-exact"**. Default is **"nearest"**.
6363
in_channels: A number of input channels for the model, default is 3 (RGB images)
6464
classes: A number of classes for output mask (or you can think as a number of channels of output mask)
@@ -112,7 +112,7 @@ def __init__(
112112
decoder_use_norm: Union[bool, str, Dict[str, Any]] = "batchnorm",
113113
decoder_channels: Sequence[int] = (256, 128, 64, 32, 16),
114114
decoder_attention_type: Optional[str] = None,
115-
decoder_interpolation_mode: str = "nearest",
115+
decoder_interpolation: str = "nearest",
116116
in_channels: int = 3,
117117
classes: int = 1,
118118
activation: Optional[Union[str, Callable]] = None,
@@ -147,7 +147,7 @@ def __init__(
147147
use_norm=decoder_use_norm,
148148
add_center_block=add_center_block,
149149
attention_type=decoder_attention_type,
150-
interpolation_mode=decoder_interpolation_mode,
150+
interpolation_mode=decoder_interpolation,
151151
)
152152

153153
self.segmentation_head = SegmentationHead(

segmentation_models_pytorch/decoders/unetplusplus/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class UnetPlusPlus(SegmentationModel):
4747
```
4848
decoder_attention_type: Attention module used in decoder of the model.
4949
Available options are **None** and **scse** (https://arxiv.org/abs/1808.08127).
50-
decoder_interpolation_mode: Interpolation mode used in decoder of the model. Available options are
50+
decoder_interpolation: Interpolation mode used in decoder of the model. Available options are
5151
**"nearest"**, **"bilinear"**, **"bicubic"**, **"area"**, **"nearest-exact"**. Default is **"nearest"**.
5252
in_channels: A number of input channels for the model, default is 3 (RGB images)
5353
classes: A number of classes for output mask (or you can think as a number of channels of output mask)
@@ -83,7 +83,7 @@ def __init__(
8383
decoder_use_norm: Union[bool, str, Dict[str, Any]] = "batchnorm",
8484
decoder_channels: Sequence[int] = (256, 128, 64, 32, 16),
8585
decoder_attention_type: Optional[str] = None,
86-
decoder_interpolation_mode: str = "nearest",
86+
decoder_interpolation: str = "nearest",
8787
in_channels: int = 3,
8888
classes: int = 1,
8989
activation: Optional[Union[str, Callable]] = None,
@@ -121,7 +121,7 @@ def __init__(
121121
use_norm=decoder_use_norm,
122122
center=True if encoder_name.startswith("vgg") else False,
123123
attention_type=decoder_attention_type,
124-
interpolation_mode=decoder_interpolation_mode,
124+
interpolation_mode=decoder_interpolation,
125125
)
126126

127127
self.segmentation_head = SegmentationHead(

0 commit comments

Comments
 (0)