resnet34#

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

ResNet-34 from “Deep Residual Learning for Image Recognition”

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

  • checkpoint – If specified, load that checkpoint on the model

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

  • kwargs – keyword args of _resnet

Returns:

classification model

Return type:

torch.nn.Module

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

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

ResNet34_Checkpoint.IMAGENETTE:

Also available as ResNet34_Checkpoint.DEFAULT.

dataset

imagenette

top1-accuracy

0.9381

top5-accuracy

0.9949

url

link

sha256

412b07927cc1938e

size

81.3MB

num_params

21.3M

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

6e32c5b