VGG-19 with BatchNorm — feature-extracting backbone.
Builds a VGG with the VGG-19 topology
arch=(2, 2, 4, 4, 4) and lucid.nn.BatchNorm2d after
each Conv + ReLU pair. Approximately 143.7 M parameters. The
deepest VGG variant; BatchNorm is particularly helpful at this
depth.
Model Size
Parameters
pretrainedbool= FalseReserved for future pretrained-weight loading. Currently
ignored.
**overridesobject= {}Keyword overrides forwarded into
VGGConfig.Returns
VGGBackbone with the VGG-19-BN configuration applied (or with
overrides merged on top of it).
Examples
>>> import lucid
>>> from lucid.models.vision.vgg import vgg_19_bn
>>> model = vgg_19_bn()
>>> x = lucid.randn(1, 3, 224, 224)
>>> out = model(x)
>>> out.last_hidden_state.shape
(1, 512, 7, 7)