Skip to content

Commit 56e42e7

Browse files
authored
[Fix]: Fix WandbLogger Hook Error (#8273)
1 parent ca11860 commit 56e42e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mmdet/core/hook/wandblogger_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def before_run(self, runner):
135135
super(MMDetWandbHook, self).before_run(runner)
136136

137137
# Save and Log config.
138-
if runner.meta is not None:
138+
if runner.meta is not None and runner.meta.get('exp_name',
139+
None) is not None:
139140
src_cfg_path = osp.join(runner.work_dir,
140141
runner.meta.get('exp_name', None))
141142
if osp.exists(src_cfg_path):

0 commit comments

Comments
 (0)