mobileone_s2#

holocron.models.mobileone_s2(pretrained: bool = False, checkpoint: Checkpoint | None = None, progress: bool = True, **kwargs: Any) MobileOne[source]#

MobileOne-S2 from “An Improved One millisecond Mobile Backbone”

Parameters:
  • pretrained (bool) – If True, returns a model pre-trained on ImageNet

  • checkpoint – If specified, the model’s parameters will be set to the checkpoint’s values

  • progress (bool) – If True, displays a progress bar of the download to stderr

  • kwargs – keyword args of _mobileone

Returns:

classification model

Return type:

torch.nn.Module

class holocron.models.MobileOne_S2_Checkpoint(value)[source]#

The model builder above accepts the following values as the checkpoint parameter. MobileOne_S2_Checkpoint.DEFAULT is equivalent to MobileOne_S2_Checkpoint.IMAGENETTE

MobileOne_S2_Checkpoint.IMAGENETTE:

Also available as MobileOne_S2_Checkpoint.DEFAULT.

dataset

imagenette

top1-accuracy

0.9131

top5-accuracy

0.9921

url

link

sha256

b748859c45a636ea

size

22.8MB

num_params

5.9M

categories

tench, English springer, cassette player, … (7 omitted)

input_shape

(3, 224, 224)

mean

(0.485, 0.456, 0.406)

std

(0.229, 0.224, 0.225)

interpolation

InterpolationMode.BILINEAR

commit

d4a5999