Update README.md
Browse files
README.md
CHANGED
@@ -58,6 +58,9 @@ model = timm.create_model(
|
|
58 |
pretrained=True,
|
59 |
).eval()
|
60 |
|
|
|
|
|
|
|
61 |
# get model specific transforms (normalization, resize)
|
62 |
data_config = timm.data.resolve_model_data_config(model)
|
63 |
transforms = timm.data.create_transform(**data_config, is_training=False)
|
@@ -87,6 +90,9 @@ model = timm.create_model(
|
|
87 |
num_classes=0,
|
88 |
).eval()
|
89 |
|
|
|
|
|
|
|
90 |
# get model specific transforms (normalization, resize)
|
91 |
data_config = timm.data.resolve_model_data_config(model)
|
92 |
transforms = timm.data.create_transform(**data_config, is_training=False)
|
|
|
58 |
pretrained=True,
|
59 |
).eval()
|
60 |
|
61 |
+
# disable norm5's activation, as per torchvision's implementation
|
62 |
+
model.features.norm5.act == nn.Identity()
|
63 |
+
|
64 |
# get model specific transforms (normalization, resize)
|
65 |
data_config = timm.data.resolve_model_data_config(model)
|
66 |
transforms = timm.data.create_transform(**data_config, is_training=False)
|
|
|
90 |
num_classes=0,
|
91 |
).eval()
|
92 |
|
93 |
+
# disable norm5's activation, as per torchvision's implementation
|
94 |
+
model.features.norm5.act == nn.Identity()
|
95 |
+
|
96 |
# get model specific transforms (normalization, resize)
|
97 |
data_config = timm.data.resolve_model_data_config(model)
|
98 |
transforms = timm.data.create_transform(**data_config, is_training=False)
|