mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-20 05:23:22 -07:00
added missing log_* functions
This commit is contained in:
parent
e36c299e81
commit
b5c7605050
1 changed files with 19 additions and 0 deletions
|
@ -125,6 +125,25 @@ def trainerThread (s2c, c2s, e,
|
||||||
if not debug and not is_reached_goal:
|
if not debug and not is_reached_goal:
|
||||||
model.create_backup()
|
model.create_backup()
|
||||||
|
|
||||||
|
def log_step(step, step_time, src_loss, dst_loss):
|
||||||
|
c2s.put({
|
||||||
|
'op': 'tb',
|
||||||
|
'action': 'step',
|
||||||
|
'step': step,
|
||||||
|
'step_time': step_time,
|
||||||
|
'src_loss': src_loss,
|
||||||
|
'dst_loss': dst_loss
|
||||||
|
})
|
||||||
|
|
||||||
|
def log_previews(step, previews, static_previews):
|
||||||
|
c2s.put({
|
||||||
|
'op': 'tb',
|
||||||
|
'action': 'preview',
|
||||||
|
'step': step,
|
||||||
|
'previews': previews,
|
||||||
|
'static_previews': static_previews
|
||||||
|
})
|
||||||
|
|
||||||
def send_preview():
|
def send_preview():
|
||||||
if not debug:
|
if not debug:
|
||||||
previews = model.get_previews()
|
previews = model.get_previews()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue