Skip to content

Commit

Permalink
Update mmengine/visualization/vis_backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida authored Sep 9, 2023
1 parent 9015ba4 commit 9429616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mmengine/visualization/vis_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,9 @@ def add_config(self, config, **kwargs) -> None:
Args:
config (Config): The Config object
"""
self._aim_run['hparams'] = dict(config)
if isinstance(config, Config):
config = config.to_dict()
self._aim_run['hparams'] = config

@force_init_env
def add_image(self,
Expand Down

0 comments on commit 9429616

Please sign in to comment.