Fix issue#505 (#506)

pull/507/head
su 2020-08-19 16:13:20 +08:00 committed by GitHub
parent 7a6285b190
commit eb65c21da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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(