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: Glenn Jocher <glenn.jocher@ultralytics.com>pull/6377/head
parent
e1893c894a
commit
9bcc32a5bf
2
train.py
2
train.py
|
@ -612,7 +612,7 @@ def main(opt, callbacks=Callbacks()):
|
|||
|
||||
# Train mutation
|
||||
results = train(hyp.copy(), opt, device, callbacks)
|
||||
|
||||
callbacks = Callbacks()
|
||||
# Write mutation results
|
||||
print_mutation(results, hyp.copy(), save_dir, opt.bucket)
|
||||
|
||||
|
|
|
@ -160,9 +160,6 @@ class Loggers():
|
|||
name='run_' + self.wandb.wandb_run.id + '_model',
|
||||
aliases=['latest', 'best', 'stripped'])
|
||||
self.wandb.finish_run()
|
||||
else:
|
||||
self.wandb.finish_run()
|
||||
self.wandb = WandbLogger(self.opt)
|
||||
|
||||
def on_params_update(self, params):
|
||||
# Update hyperparams or configs of the experiment
|
||||
|
|
Loading…
Reference in New Issue