We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
advprop
1 parent af46195 commit ecc848fCopy full SHA for ecc848f
segmentation_models_pytorch/encoders/efficientnet.py
@@ -24,7 +24,7 @@
24
"""
25
import torch.nn as nn
26
from efficientnet_pytorch import EfficientNet
27
-from efficientnet_pytorch.utils import url_map, get_model_params
+from efficientnet_pytorch.utils import url_map, url_map_advprop, get_model_params
28
29
from ._base import EncoderMixin
30
@@ -90,6 +90,13 @@ def _get_pretrained_settings(encoder):
90
"url": url_map[encoder],
91
"input_space": "RGB",
92
"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],
100
}
101
102
return pretrained_settings
0 commit comments