You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from .decoderimportDeepLabV3Decoder, DeepLabV3PlusDecoder
10
11
11
12
@@ -36,6 +37,8 @@ class DeepLabV3(SegmentationModel):
36
37
- dropout (float): Dropout factor in [0, 1)
37
38
- activation (str): An activation function to apply "sigmoid"/"softmax"
38
39
(could be **None** to return logits)
40
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
41
+
39
42
Returns:
40
43
``torch.nn.Module``: **DeepLabV3**
41
44
@@ -55,6 +58,7 @@ def __init__(
55
58
activation: Optional[str] =None,
56
59
upsampling: int=8,
57
60
aux_params: Optional[dict] =None,
61
+
**kwargs: dict[str, Any],
58
62
):
59
63
super().__init__()
60
64
@@ -64,6 +68,7 @@ def __init__(
64
68
depth=encoder_depth,
65
69
weights=encoder_weights,
66
70
output_stride=8,
71
+
**kwargs,
67
72
)
68
73
69
74
self.decoder=DeepLabV3Decoder(
@@ -116,6 +121,8 @@ class DeepLabV3Plus(SegmentationModel):
116
121
- dropout (float): Dropout factor in [0, 1)
117
122
- activation (str): An activation function to apply "sigmoid"/"softmax"
118
123
(could be **None** to return logits)
124
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
- activation (str): An activation function to apply "sigmoid"/"softmax"
42
43
(could be **None** to return logits)
44
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
@@ -43,6 +44,7 @@ class Linknet(SegmentationModel):
43
44
- dropout (float): Dropout factor in [0, 1)
44
45
- activation (str): An activation function to apply "sigmoid"/"softmax"
45
46
(could be **None** to return logits)
47
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
- activation (str): An activation function to apply "sigmoid"/"softmax"
47
48
(could be **None** to return logits)
49
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
- activation (str): An activation function to apply "sigmoid"/"softmax"
40
41
(could be **None** to return logits)
42
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
@@ -44,6 +45,7 @@ class PSPNet(SegmentationModel):
44
45
- dropout (float): Dropout factor in [0, 1)
45
46
- activation (str): An activation function to apply "sigmoid"/"softmax"
46
47
(could be **None** to return logits)
48
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
- activation (str): An activation function to apply "sigmoid"/"softmax"
46
47
(could be **None** to return logits)
48
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
@@ -44,6 +45,7 @@ class UnetPlusPlus(SegmentationModel):
44
45
- dropout (float): Dropout factor in [0, 1)
45
46
- activation (str): An activation function to apply "sigmoid"/"softmax"
46
47
(could be **None** to return logits)
48
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
@@ -36,6 +37,7 @@ class UPerNet(SegmentationModel):
36
37
- dropout (float): Dropout factor in [0, 1)
37
38
- activation (str): An activation function to apply "sigmoid"/"softmax"
38
39
(could be **None** to return logits)
40
+
kwargs: Arguments passed to the encoder class ``__init__()`` function. Applies only to ``timm`` models. Keys with ``None`` values are pruned before passing.
0 commit comments