Skip to content

Commit e76ed01

Browse files
authored
Add missing name attribute to deeplabv3 & deeplabv3plus (#1214)
1 parent 38af4fc commit e76ed01

File tree

1 file changed

+2
-0
lines changed
  • segmentation_models_pytorch/decoders/deeplabv3

1 file changed

+2
-0
lines changed

segmentation_models_pytorch/decoders/deeplabv3/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def __init__(
119119
)
120120
else:
121121
self.classification_head = None
122+
self.name = "deeplabv3-{}".format(encoder_name)
122123

123124
def load_state_dict(self, state_dict, *args, **kwargs):
124125
# For backward compatibility, previously Decoder module was Sequential
@@ -238,3 +239,4 @@ def __init__(
238239
)
239240
else:
240241
self.classification_head = None
242+
self.name = "deeplabv3plus-{}".format(encoder_name)

0 commit comments

Comments
 (0)