AimVisBackend¶
- class mmengine.visualization.AimVisBackend(save_dir=None, init_kwargs=None)[源代码]¶
Aim visualization backend class.
示例
>>> from mmengine.visualization import AimVisBackend >>> import numpy as np >>> aim_vis_backend = AimVisBackend() >>> img=np.random.randint(0, 256, size=(10, 10, 3)) >>> aim_vis_backend.add_image('img', img) >>> aim_vis_backend.add_scalar('mAP', 0.6) >>> aim_vis_backend.add_scalars({'loss': 0.1, 'acc': 0.8}) >>> cfg = Config(dict(a=1, b=dict(b1=[0, 1]))) >>> aim_vis_backend.add_config(cfg)
备注
New in version 0.9.0.
Refer to Github issue , Aim is not unable to be install on Windows for now.
- 参数:
- add_config(config, **kwargs)[源代码]¶
Record the config to Aim.
- 参数:
config (Config) – The Config object
- 返回类型:
None
- add_scalar(name, value, step=0, **kwargs)[源代码]¶
Record the scalar data to Aim.
- 参数:
name (str) – The scalar identifier.
value (int, float, torch.Tensor, np.ndarray) – Value to save.
step (int) – Global step value to record. Default to 0.
- 返回类型:
None
- property experiment¶
Return Aim object.