Unverified 提交 9ef4760b authored 作者: asim266's avatar asim266 提交者: GitHub

Rename precision_recall_curve.png bug fix (#1431)

* fix error in train.py line 400, changed precision-recall_curve.png to precision_recall_curve.png and fix error in test.py of {wandb.init() before wandb.log()} by importing wand and initializing it before wand.log() * Update test.py Co-authored-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com>
上级 412b113a
...@@ -397,7 +397,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None): ...@@ -397,7 +397,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
plot_results(save_dir=save_dir) # save as results.png plot_results(save_dir=save_dir) # save as results.png
if wandb: if wandb:
wandb.log({"Results": [wandb.Image(str(save_dir / x), caption=x) for x in wandb.log({"Results": [wandb.Image(str(save_dir / x), caption=x) for x in
['results.png', 'precision-recall_curve.png']]}) ['results.png', 'precision_recall_curve.png']]})
logger.info('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) logger.info('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600))
else: else:
dist.destroy_process_group() dist.destroy_process_group()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论