This commit is contained in:
Glenn Jocher 2019-07-16 17:43:01 +02:00
parent 09b3670579
commit 034d2949b9
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ def train(cfg,
# Print batch results # Print batch results
mloss = (mloss * i + loss_items) / (i + 1) # update mean losses mloss = (mloss * i + loss_items) / (i + 1) # update mean losses
mem = torch.cuda.memory_cached() if torch.cuda.is_available() else 0 mem = torch.cuda.memory_cached() / 1E6 if torch.cuda.is_available() else 0
s = ('%8s' + '%10.3g' * 8) % ('%g/%g' % (epoch, epochs - 1), *mloss, len(targets), img_size, mem) s = ('%8s' + '%10.3g' * 8) % ('%g/%g' % (epoch, epochs - 1), *mloss, len(targets), img_size, mem)
pbar.set_description(s) # print(s) pbar.set_description(s) # print(s)