Update tensorboard logging
This commit is contained in:
1 parent
7f1640695b
commit
453acdec67
3 files changed
+9
-8
No files matched your search
@@ -291,11 +291,11 @@ def train(hyp, opt, device, tb_writer=None):
|
||||
|
||||
# Plot
|
||||
if ni < 3:
|
||||
f = str(log_dir / ('train_batch%g.jpg' % ni)) # filename
|
||||
f = str(log_dir / f'train_batch{ni}.jpg') # filename
|
||||
result = plot_images(images=imgs, targets=targets, paths=paths, fname=f)
|
||||
if tb_writer and result is not None:
|
||||
tb_writer.add_image(f, result, dataformats='HWC', global_step=epoch)
|
||||
# tb_writer.add_graph(model, imgs) # add model to tensorboard
|
||||
# if tb_writer and result is not None:
|
||||
# tb_writer.add_image(f, result, dataformats='HWC', global_step=epoch)
|
||||
# tb_writer.add_graph(model, imgs) # add model to tensorboard
|
||||
|
||||
# end batch ------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user