Shortcuts

MIMHead

class mmpretrain.models.heads.MIMHead(loss)[source]

Pre-training head for Masked Image Modeling.

Parameters:

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

loss(pred, target, mask=None)[source]

Forward head.

Parameters:
Returns:

The loss tensor.

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.