Shortcuts

MixMIMPretrainHead

class mmpretrain.models.heads.MixMIMPretrainHead(loss, norm_pix=False, patch_size=16)[源代码]

Head for MixMIM Pre-training.

参数:
  • loss (dict) – Config of loss.

  • norm_pix_loss (bool) – Whether or not normalize target. Defaults to False.

  • patch_size (int) – Patch size. Defaults to 16.

loss(x_rec, target, mask)[源代码]

Generate loss.

参数:
返回:

The reconstruction 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.