Shortcuts

PrepareProtoBeforeValLoopHook

class mmcls.engine.hooks.PrepareProtoBeforeValLoopHook[源代码]

The hook to prepare the prototype in retrievers.

Since the encoders of the retriever changes during training, the prototype changes accordingly. So the prototype_vecs needs to be regenerated before validation loop.

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

Free document hosting provided by Read the Docs.