tb_writer bug fix

This commit is contained in:
Glenn Jocher committed 2020-06-16 16:05:28 -07:00
1 parent 4052603e1f
commit 8db51c7002
1 file changed
+1
+1
View File
@@ -195,6 +195,7 @@ def train(hyp):
c = torch.tensor(labels[:, 0]) # classes c = torch.tensor(labels[:, 0]) # classes
# cf = torch.bincount(c.long(), minlength=nc) + 1. # cf = torch.bincount(c.long(), minlength=nc) + 1.
# model._initialize_biases(cf.to(device)) # model._initialize_biases(cf.to(device))
if tb_writer:
plot_labels(labels) plot_labels(labels)
tb_writer.add_histogram('classes', c, 0) tb_writer.add_histogram('classes', c, 0)