resnet18¶
- holocron.models.resnet18(pretrained: bool = False, checkpoint: Checkpoint | None = None, progress: bool = True, **kwargs: Any) ResNet [source]¶
ResNet-18 from “Deep Residual Learning for Image Recognition”
- Parameters:
pretrained – If True, returns a model pre-trained on ImageNet
checkpoint – If specified, loads that checkpoint
progress – If True, displays a progress bar of the download to stderr
kwargs – keyword args of _resnet
- Returns:
classification model
- Return type:
- class holocron.models.ResNet18_Checkpoint(value)[source]¶
The model builder above accepts the following values as the
checkpoint
parameter.ResNet18_Checkpoint.DEFAULT
is equivalent toResNet18_Checkpoint.IMAGENETTE
ResNet18_Checkpoint.IMAGENETTE:
Also available as
ResNet18_Checkpoint.DEFAULT
.dataset
imagenette
top1-accuracy
0.9361
top5-accuracy
0.9946
url
sha256
fc07006c894cac8c
size
42.7MB
num_params
11.2M
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