Shortcuts

Source code for mmpose.core.utils.model_util_hooks

# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.runner import HOOKS, Hook


[docs]@HOOKS.register_module() class ModelSetEpochHook(Hook): """The hook that tells model the current epoch in training.""" def __init__(self): pass def before_epoch(self, runner): runner.model.module.set_train_epoch(runner.epoch + 1)
Read the Docs v: 0.x
Versions
latest
1.x
v1.0.0rc1
v0.29.0
v0.28.0
dev-1.x
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.