Skip to content

Commit ecc848f

Browse files
authored
Add advprop weights for efficientnet (#181)
1 parent af46195 commit ecc848f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

segmentation_models_pytorch/encoders/efficientnet.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525
import torch.nn as nn
2626
from efficientnet_pytorch import EfficientNet
27-
from efficientnet_pytorch.utils import url_map, get_model_params
27+
from efficientnet_pytorch.utils import url_map, url_map_advprop, get_model_params
2828

2929
from ._base import EncoderMixin
3030

@@ -90,6 +90,13 @@ def _get_pretrained_settings(encoder):
9090
"url": url_map[encoder],
9191
"input_space": "RGB",
9292
"input_range": [0, 1],
93+
},
94+
"advprop": {
95+
"mean": [0.5, 0.5, 0.5],
96+
"std": [0.5, 0.5, 0.5],
97+
"url": url_map_advprop[encoder],
98+
"input_space": "RGB",
99+
"input_range": [0, 1],
93100
}
94101
}
95102
return pretrained_settings

0 commit comments

Comments
 (0)