Unverified 提交 9bcc32a5 authored 作者: Ayush Chaurasia's avatar Ayush Chaurasia 提交者: GitHub

Flush callbacks when on `--evolve` (#6374)

* log best.pt metrics at train end * update * Update __init__.py * flush callbacks when using evolve Co-authored-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com>
上级 e1893c89
...@@ -612,7 +612,7 @@ def main(opt, callbacks=Callbacks()): ...@@ -612,7 +612,7 @@ def main(opt, callbacks=Callbacks()):
# Train mutation # Train mutation
results = train(hyp.copy(), opt, device, callbacks) results = train(hyp.copy(), opt, device, callbacks)
callbacks = Callbacks()
# Write mutation results # Write mutation results
print_mutation(results, hyp.copy(), save_dir, opt.bucket) print_mutation(results, hyp.copy(), save_dir, opt.bucket)
......
...@@ -160,9 +160,6 @@ class Loggers(): ...@@ -160,9 +160,6 @@ class Loggers():
name='run_' + self.wandb.wandb_run.id + '_model', name='run_' + self.wandb.wandb_run.id + '_model',
aliases=['latest', 'best', 'stripped']) aliases=['latest', 'best', 'stripped'])
self.wandb.finish_run() self.wandb.finish_run()
else:
self.wandb.finish_run()
self.wandb = WandbLogger(self.opt)
def on_params_update(self, params): def on_params_update(self, params):
# Update hyperparams or configs of the experiment # Update hyperparams or configs of the experiment
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论