ソースを参照

W&B mosaic log bug fix (#1949)

5.0
Glenn Jocher GitHub 3年前
コミット
f4a78e1b40
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      train.py

+ 1
- 1
train.py ファイルの表示

@@ -318,7 +318,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
# if tb_writer:
# tb_writer.add_image(f, result, dataformats='HWC', global_step=epoch)
# tb_writer.add_graph(model, imgs) # add model to tensorboard
elif plots and ni > 3 and wandb:
elif plots and ni == 10 and wandb:
wandb.log({"Mosaics": [wandb.Image(str(x), caption=x.name) for x in save_dir.glob('train*.jpg')
if x.exists()]})


読み込み中…
キャンセル
保存