Fix: evolve with wandb (#2634)
This commit is contained in:
1 parent
6e8c5b7678
commit
dc51e80b00
1 file changed
+1
-1
@@ -439,7 +439,7 @@ def train(hyp, opt, device, tb_writer=None):
|
|||||||
strip_optimizer(f) # strip optimizers
|
strip_optimizer(f) # strip optimizers
|
||||||
if opt.bucket:
|
if opt.bucket:
|
||||||
os.system(f'gsutil cp {final} gs://{opt.bucket}/weights') # upload
|
os.system(f'gsutil cp {final} gs://{opt.bucket}/weights') # upload
|
||||||
if wandb_logger.wandb: # Log the stripped model
|
if wandb_logger.wandb and not opt.evolve: # Log the stripped model
|
||||||
wandb_logger.wandb.log_artifact(str(final), type='model',
|
wandb_logger.wandb.log_artifact(str(final), type='model',
|
||||||
name='run_' + wandb_logger.wandb_run.id + '_model',
|
name='run_' + wandb_logger.wandb_run.id + '_model',
|
||||||
aliases=['last', 'best', 'stripped'])
|
aliases=['last', 'best', 'stripped'])
|
||||||
|
|||||||
Reference in new issue
Block a user