CoAtNet-4 backbone (Dai et al., 2021).
Even deeper variant: blocks_per_stage=(2, 12, 28, 2),
dims=(192, 384, 768, 1536), stem_width=192,
attn_heads=(24, 48). Approximately 275M parameters, 85.0%
ImageNet-1k top-1 at 224×224 (Table 5). Paper headline with
JFT-3B pretrain reaches 88.4% at 512x512.
Model Size
Parameters
pretrainedbool= FalseNo checkpoint is published for
coatnet_4, so True raises
NotImplementedError rather than return randomly initialised weights.**overridesobject= {}Keyword overrides applied on top of the canonical CoAtNet-4
config; each must name a field of
CoAtNetConfig (e.g.
image_size=384, in_channels=1).Examples
>>> import lucid
>>> from lucid.models.vision.coatnet import coatnet_4
>>> model = coatnet_4()
>>> out = model(lucid.randn(1, 3, 224, 224))
>>> out.last_hidden_state.shape
(1, 1536, 7, 7)