mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
after save loss string now shows averaged value since last save
This commit is contained in:
parent
bb02cc1d97
commit
131b2b5c79
2 changed files with 30 additions and 18 deletions
|
@ -374,15 +374,7 @@ class ModelBase(object):
|
|||
|
||||
self.iter += 1
|
||||
|
||||
time_str = time.strftime("[%H:%M:%S]")
|
||||
if iter_time >= 10:
|
||||
loss_string = "{0}[#{1:06d}][{2:.5s}s]".format ( time_str, self.iter, '{:0.4f}'.format(iter_time) )
|
||||
else:
|
||||
loss_string = "{0}[#{1:06d}][{2:04d}ms]".format ( time_str, self.iter, int(iter_time*1000) )
|
||||
for (loss_name, loss_value) in losses:
|
||||
loss_string += " %s:%.3f" % (loss_name, loss_value)
|
||||
|
||||
return loss_string
|
||||
return self.iter, iter_time
|
||||
|
||||
def pass_one_iter(self):
|
||||
self.last_sample = self.generate_next_sample()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue