mirror of https://github.com/open-mmlab/mmcv.git
Fix issue#505 (#506)
parent
7a6285b190
commit
eb65c21da2
|
@ -386,6 +386,8 @@ class BaseRunner(metaclass=ABCMeta):
|
|||
self.register_hook(hook)
|
||||
|
||||
def register_logger_hooks(self, log_config):
|
||||
if log_config is None:
|
||||
return
|
||||
log_interval = log_config['interval']
|
||||
for info in log_config['hooks']:
|
||||
logger_hook = mmcv.build_from_cfg(
|
||||
|
|
Loading…
Reference in New Issue