Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.6 KB

Logging.md

File metadata and controls

55 lines (39 loc) · 1.6 KB

Logging

English | 简体中文

Contents

  1. Text Logger
  2. Tensorboard Logger
  3. Wandb Logger

Text Logger

Print the log to both the text file and screen. The text file usually locates in experiments/exp_name/train_exp_name_timestamp.txt.

Tensorboard Logger

  • Use Tensorboard logger. Set use_tb_logger: true in the yml configuration file:

    logger:
      use_tb_logger: true
  • File location: tb_logger/exp_name

  • View in the browser:

    tensorboard --logdir tb_logger --port 5500 --bind_all

Wandb Logger

wandb can be viewed as a cloud version of tensorboard. One can easily view training processes and curves in wandb. Currently, we only sync the tensorboard log to wandb. So we should also turn on tensorboard when using wandb.

Configuration file:

ogger:
  # Whether to tensorboard logger
  use_tb_logger: true
  # Whether to use wandb logger. Currently, wandb only sync the tensorboard log. So we should also turn on tensorboard when using wandb
  wandb:
    # wandb project name. Default is None, that is not using wandb.
    # Here, we use the basicsr wandb project: https://app.wandb.ai/xintao/basicsr
    project: basicsr
    # If resuming, wandb id could automatically link previous logs
    resume_id: ~

Examples of training curves in wandb