Add version warning for wandb (#7385)
* add version warning * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update __init__.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
4bb7eb8b84
commit
74aaab3312
|
|
@ -81,6 +81,11 @@ class Loggers():
|
||||||
run_id = torch.load(self.weights).get('wandb_id') if self.opt.resume and not wandb_artifact_resume else None
|
run_id = torch.load(self.weights).get('wandb_id') if self.opt.resume and not wandb_artifact_resume else None
|
||||||
self.opt.hyp = self.hyp # add hyperparameters
|
self.opt.hyp = self.hyp # add hyperparameters
|
||||||
self.wandb = WandbLogger(self.opt, run_id)
|
self.wandb = WandbLogger(self.opt, run_id)
|
||||||
|
# temp warn. because nested artifacts not supported after 0.12.10
|
||||||
|
if pkg.parse_version(wandb.__version__) >= pkg.parse_version('0.12.11'):
|
||||||
|
self.logger.warning(
|
||||||
|
"YOLOv5 temporarily requires wandb version 0.12.10 or below. Some features may not work as expected."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.wandb = None
|
self.wandb = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue