cspdarknet_53(pretrained: bool = False, overrides: object = {})CSPDarknet-53 backbone — Darknet-53 (YOLOv3 base) with CSP wrap.
The CSPNet recipe applied to the Darknet-53 trunk (Wang et al.,
CVPRW 2020); same architecture later adopted by YOLOv4. Returns
the final feature map only; pair with a classifier head via
cspdarknet_53_cls.
Reference: Wang et al., "CSPNet: A New Backbone that can Enhance Learning Capability of CNN", CVPRW 2020 (arXiv:1911.11929).
Model Size
Parameters
pretrainedbool= FalseNo checkpoint is published for
cspdarknet_53, so True raises
NotImplementedError rather than return randomly initialised weights.
cspdarknet_53_cls is the checkpointed variant.**overridesobject= {}Fields of
CSPNetConfig to change from the CSPDarknet-53
defaults (e.g. in_channels=1).Examples
>>> import lucid
>>> from lucid.models.vision.cspnet import cspdarknet_53
>>> model = cspdarknet_53()
>>> out = model(lucid.randn(1, 3, 224, 224))
>>> out.last_hidden_state.shape
(1, 1024, 7, 7)