Skip to content

Commit

Permalink
Fix: evolve with wandb (ultralytics#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushExel committed Mar 28, 2021
1 parent 59f68f8 commit 431c901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def train(hyp, opt, device, tb_writer=None):
strip_optimizer(f) # strip optimizers
if opt.bucket:
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',
name='run_' + wandb_logger.wandb_run.id + '_model',
aliases=['last', 'best', 'stripped'])
Expand Down

0 comments on commit 431c901

Please sign in to comment.