Skip to content

Commit

Permalink
hb
Browse files Browse the repository at this point in the history
  • Loading branch information
MLRichter committed May 2, 2022
1 parent d022015 commit ee4d7d9
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions models/efficientnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def _efficientnet_b7(pretrained: bool = False, progress: bool = True, **kwargs:
**kwargs,
)


@register_model
def efficientnet_b0(*args, **kwargs):
model = _efficientnet_b0(**kwargs)
Expand All @@ -459,19 +460,45 @@ def efficientnet_b0(*args, **kwargs):

@register_model
def efficientnet_b1(*args, **kwargs):
model = _efficientnet_b0(**kwargs)
model = _efficientnet_b1(**kwargs)
model.name = "EfficentNetB1"
model.num_classes = ...
return model


@register_model
def efficientnet_b2(*args, **kwargs):
model = _efficientnet_b0(**kwargs)
model = _efficientnet_b2(**kwargs)
model.name = "EfficentNetB2"
model.num_classes = ...
return model


@register_model
def efficientnet_b3(*args, **kwargs):
model = _efficientnet_b3(**kwargs)
model.name = "EfficentNetB3"
model.num_classes = ...
return model


@register_model
def efficientnet_b4(*args, **kwargs):
model = _efficientnet_b4(**kwargs)
model.name = "EfficentNetB4"
model.num_classes = ...
return model


@register_model
def efficientnet_b5(*args, **kwargs):
model = _efficientnet_b5(**kwargs)
model.name = "EfficentNetB5"
model.num_classes = ...
return model



@register_model
def efficientnet_b0_eff(*args, **kwargs):
bneck_conf = partial(MBConvConfig, width_mult=1.0, depth_mult=1.0)
Expand Down

0 comments on commit ee4d7d9

Please sign in to comment.