Update tensorboard>=2.4.1 (#2576)
* Update tensorboard>=2.4.1 Update tensorboard version to attempt to address https://github.com/ultralytics/yolov5/issues/2573 (tensorboard logging fail in Docker image). * cleanup
This commit is contained in:
1 parent
2b329b0945
commit
e5b0200cd2
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -8,12 +8,12 @@ opencv-python>=4.1.2
|
|||||||
Pillow
|
Pillow
|
||||||
PyYAML>=5.3.1
|
PyYAML>=5.3.1
|
||||||
scipy>=1.4.1
|
scipy>=1.4.1
|
||||||
tensorboard>=2.2
|
|
||||||
torch>=1.7.0
|
torch>=1.7.0
|
||||||
torchvision>=0.8.1
|
torchvision>=0.8.1
|
||||||
tqdm>=4.41.0
|
tqdm>=4.41.0
|
||||||
|
|
||||||
# logging -------------------------------------
|
# logging -------------------------------------
|
||||||
|
tensorboard>=2.4.1
|
||||||
# wandb
|
# wandb
|
||||||
|
|
||||||
# plotting ------------------------------------
|
# plotting ------------------------------------
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
@@ -34,7 +33,7 @@ from utils.google_utils import attempt_download
|
|||||||
from utils.loss import ComputeLoss
|
from utils.loss import ComputeLoss
|
||||||
from utils.plots import plot_images, plot_labels, plot_results, plot_evolution
|
from utils.plots import plot_images, plot_labels, plot_results, plot_evolution
|
||||||
from utils.torch_utils import ModelEMA, select_device, intersect_dicts, torch_distributed_zero_first, is_parallel
|
from utils.torch_utils import ModelEMA, select_device, intersect_dicts, torch_distributed_zero_first, is_parallel
|
||||||
from utils.wandb_logging.wandb_utils import WandbLogger, resume_and_get_id, check_wandb_config_file
|
from utils.wandb_logging.wandb_utils import WandbLogger, resume_and_get_id
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -534,7 +533,8 @@ if __name__ == '__main__':
|
|||||||
if not opt.evolve:
|
if not opt.evolve:
|
||||||
tb_writer = None # init loggers
|
tb_writer = None # init loggers
|
||||||
if opt.global_rank in [-1, 0]:
|
if opt.global_rank in [-1, 0]:
|
||||||
logger.info(f'Start Tensorboard with "tensorboard --logdir {opt.project}", view at http://localhost:6006/')
|
prefix = colorstr('tensorboard: ')
|
||||||
|
logger.info(f"{prefix}Start with 'tensorboard --logdir {opt.project}', view at http://localhost:6006/")
|
||||||
tb_writer = SummaryWriter(opt.save_dir) # Tensorboard
|
tb_writer = SummaryWriter(opt.save_dir) # Tensorboard
|
||||||
train(hyp, opt, device, tb_writer)
|
train(hyp, opt, device, tb_writer)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user