Skip to content

Commit

Permalink
working changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-tendle committed May 24, 2021
1 parent c5a8fed commit 19ac706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/efficientnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import timm


def load_efficientnet(model_name, num_classes=1000, input_channels=3, pretrained=False, ):
def load_efficientnet(model_name="tf_efficientnet_b4", num_classes=1000, input_channels=3, pretrained=False):

model = timm.create_model(
model_name,
Expand Down
2 changes: 1 addition & 1 deletion utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def load_model(model_name, training_type, configs):
model = vgg19_bn(in_channels=configs.input_channels,
num_classes=configs.num_classes)

elif model_name.startswith("EfficientNet"):
elif "efficientnet" in model_name:

if training_type == 'pretrained':
print(f"Loading pretrained {model_name}")
Expand Down

0 comments on commit 19ac706

Please sign in to comment.