Shortcuts

MixMIMPretrainHead

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

Head for MixMIM Pre-training.

Parameters:
  • 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)[source]

Generate loss.

Parameters:
Returns:

The reconstruction loss.

Return type:

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.