This commit is contained in:
Glenn Jocher 2019-08-29 15:49:51 +02:00
parent 408baf66e2
commit 8eb381dc88
1 changed files with 0 additions and 3 deletions

View File

@ -283,9 +283,6 @@ def train():
s = ('%10s' * 2 + '%10.3g' * 6) % ( s = ('%10s' * 2 + '%10.3g' * 6) % (
'%g/%g' % (epoch, epochs - 1), '%.3gG' % mem, *mloss, len(targets), img_size) '%g/%g' % (epoch, epochs - 1), '%.3gG' % mem, *mloss, len(targets), img_size)
pbar.set_description(s) pbar.set_description(s)
if torch.isnan(loss):
print('WARNING: nan loss detected, ending training', loss_items)
return results
# end batch ------------------------------------------------------------------------------------------------ # end batch ------------------------------------------------------------------------------------------------