Shortcuts

MIMHead

class mmpretrain.models.heads.MIMHead(loss)[源代码]

Pre-training head for Masked Image Modeling.

参数:

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

loss(pred, target, mask=None)[源代码]

Forward head.

参数:
返回:

The loss tensor.

返回类型:

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.