Skip to content

Commit

Permalink
[Fix]: Fix WandbLogger Hook Error (open-mmlab#8273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayulockin committed Jun 29, 2022
1 parent ca11860 commit 56e42e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmdet/core/hook/wandblogger_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def before_run(self, runner):
super(MMDetWandbHook, self).before_run(runner)

# Save and Log config.
if runner.meta is not None:
if runner.meta is not None and runner.meta.get('exp_name',
None) is not None:
src_cfg_path = osp.join(runner.work_dir,
runner.meta.get('exp_name', None))
if osp.exists(src_cfg_path):
Expand Down

0 comments on commit 56e42e7

Please sign in to comment.