Shortcuts

LatentCrossCorrelationHead

class mmpretrain.models.heads.LatentCrossCorrelationHead(in_channels, loss, init_cfg=None)[源代码]

Head for latent feature cross correlation.

Part of the code is borrowed from script.

参数:
  • in_channels (int) – Number of input channels.

  • loss (dict) – Config dict for module of loss functions.

  • init_cfg (dict or List[dict], optional) – Initialization config dict. Defaults to None.

loss(input, target)[源代码]

Forward head.

参数:
返回:

The cross correlation loss.

返回类型:

torch.Tensor

Read the Docs v: latest
Versions
latest
stable
mmcls-1.x
mmcls-0.x
dev
Downloads
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.