Skip to content
fn

coatnet_6_cls

→CoAtNetForImageClassification1.5B
coatnet_6_cls(pretrained: bool = False, overrides: object = {})

CoAtNet-6 image classifier (Dai et al., 2021).

Mixed-S3 variant. 1.35B parameters (Table 5 states 1.47B).

Model Size

Parameters

pretrainedbool= False
No checkpoint is published for coatnet_6_cls, so True raises NotImplementedError rather than return randomly initialised weights.
**overridesobject= {}
Keyword overrides applied on top of the canonical CoAtNet-6 config; each must name a field of CoAtNetConfig (e.g. num_classes=10 to retarget the head).

Examples

>>> import lucid
>>> from lucid.models.vision.coatnet import coatnet_6_cls
>>> model = coatnet_6_cls()
>>> out = model(lucid.randn(1, 3, 224, 224))
>>> out.logits.shape
(1, 1000)

Used by 1