Skip to content

Commit 0d997f4

Browse files
authored
Update model.py
1 parent a4220a0 commit 0d997f4

File tree

1 file changed

+6
-6
lines changed
  • segmentation_models_pytorch/manet

1 file changed

+6
-6
lines changed

segmentation_models_pytorch/manet/model.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77

88
class MAnet(SegmentationModel):
9-
"""MAnet_ : Multi-scale Attention Net.
10-
The MA-Net can capture rich contextual dependencies based on the attention mechanism, using two blocks:
11-
Position-wise Attention Block (PAB, which captures the spatial dependencies between pixels in a global view)
12-
and Multi-scale Fusion Attention Block (MFAB, which captures the channel dependencies between any feature map by
13-
multi-scale semantic feature fusion)
9+
"""MAnet_ : Multi-scale Attention Net. The MA-Net can capture rich contextual dependencies based on the attention mechanism,
10+
using two blocks:
11+
- Position-wise Attention Block (PAB), which captures the spatial dependencies between pixels in a global view
12+
- Multi-scale Fusion Attention Block (MFAB), which captures the channel dependencies between any feature map by
13+
multi-scale semantic feature fusion
1414
1515
Args:
1616
encoder_name: Name of the classification model that will be used as an encoder (a.k.a backbone)
@@ -52,7 +52,7 @@ def __init__(
5252
self,
5353
encoder_name: str = "resnet34",
5454
encoder_depth: int = 5,
55-
encoder_weights: str = "imagenet",
55+
encoder_weights: Optional[str] = "imagenet",
5656
decoder_use_batchnorm: bool = True,
5757
decoder_channels: List[int] = (256, 128, 64, 32, 16),
5858
decoder_pab_channels: int = 64,

0 commit comments

Comments
 (0)