Logger Cleanup (#9828)
This commit is contained in:
1 parent
e3ff780676
commit
acff977af3
3 files changed
+2
-16
No files matched your search
@@ -53,7 +53,6 @@ from utils.general import (LOGGER, check_amp, check_dataset, check_file, check_g
|
||||
one_cycle, print_args, print_mutation, strip_optimizer, yaml_save)
|
||||
from utils.loggers import Loggers
|
||||
from utils.loggers.comet.comet_utils import check_comet_resume
|
||||
from utils.loggers.wandb.wandb_utils import check_wandb_resume
|
||||
from utils.loss import ComputeLoss
|
||||
from utils.metrics import fitness
|
||||
from utils.plots import plot_evolve
|
||||
@@ -375,7 +374,6 @@ def train(hyp, opt, device, callbacks): # hyp is path/to/hyp.yaml or hyp dictio
|
||||
'ema': deepcopy(ema.ema).half(),
|
||||
'updates': ema.updates,
|
||||
'optimizer': optimizer.state_dict(),
|
||||
'wandb_id': loggers.wandb.wandb_run.id if loggers.wandb else None,
|
||||
'opt': vars(opt),
|
||||
'date': datetime.now().isoformat()}
|
||||
|
||||
@@ -483,7 +481,7 @@ def main(opt, callbacks=Callbacks()):
|
||||
check_requirements()
|
||||
|
||||
# Resume (from specified or most recent last.pt)
|
||||
if opt.resume and not check_wandb_resume(opt) and not check_comet_resume(opt) and not opt.evolve:
|
||||
if opt.resume and not check_comet_resume(opt) and not opt.evolve:
|
||||
last = Path(check_file(opt.resume) if isinstance(opt.resume, str) else get_latest_run())
|
||||
opt_yaml = last.parent.parent / 'opt.yaml' # train options yaml
|
||||
opt_data = opt.data # original dataset
|
||||
|
||||
Reference in new issue
Block a user