mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2024-03-22 13:10:55 +08:00
fix save in trainer
This commit is contained in:
parent
0a203bb25e
commit
91f0f30a78
|
@ -164,8 +164,12 @@ def trainerThread (s2c, c2s, e,
|
|||
is_reached_goal = True
|
||||
io.log_info ('You can use preview now.')
|
||||
|
||||
if not is_reached_goal and (time.time() - last_save_time) >= save_interval_min*60:
|
||||
need_save = False
|
||||
while time.time() - last_save_time >= save_interval_min*60:
|
||||
last_save_time += save_interval_min*60
|
||||
need_save = True
|
||||
|
||||
if not is_reached_goal and need_save:
|
||||
model_save()
|
||||
send_preview()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user