瀏覽代碼

Fix: evolve with wandb (#2634)

5.0
Ayush Chaurasia GitHub 3 年之前
父節點
當前提交
dc51e80b00
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      train.py

+ 1
- 1
train.py 查看文件

@@ -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'])

Loading…
取消
儲存