π [Add] supporting of tensorboard
Browse files- yolo/config/general.yaml +1 -1
- yolo/utils/logging_utils.py +4 -2
yolo/config/general.yaml
CHANGED
@@ -7,7 +7,7 @@ out_path: runs
|
|
7 |
exist_ok: True
|
8 |
|
9 |
lucky_number: 10
|
10 |
-
use_wandb:
|
11 |
use_tensorboard: False
|
12 |
|
13 |
weight: True # Path to weight or True for auto, False for no pretrained weight
|
|
|
7 |
exist_ok: True
|
8 |
|
9 |
lucky_number: 10
|
10 |
+
use_wandb: True
|
11 |
use_tensorboard: False
|
12 |
|
13 |
weight: True # Path to weight or True for auto, False for no pretrained weight
|
yolo/utils/logging_utils.py
CHANGED
@@ -256,8 +256,10 @@ def setup(cfg: Config):
|
|
256 |
progress.append(YOLORichProgressBar())
|
257 |
progress.append(YOLORichModelSummary())
|
258 |
progress.append(ImageLogger())
|
259 |
-
|
260 |
-
|
|
|
|
|
261 |
|
262 |
return progress, loggers
|
263 |
|
|
|
256 |
progress.append(YOLORichProgressBar())
|
257 |
progress.append(YOLORichModelSummary())
|
258 |
progress.append(ImageLogger())
|
259 |
+
if cfg.use_tensorboard:
|
260 |
+
loggers.append(TensorBoardLogger(log_graph="all", save_dir=save_path))
|
261 |
+
if cfg.use_wandb:
|
262 |
+
loggers.append(WandbLogger(project="YOLO", name=cfg.name, save_dir=save_path, id=None))
|
263 |
|
264 |
return progress, loggers
|
265 |
|