mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
added sumbmodules
This commit is contained in:
parent
ada17ab3eb
commit
bf218a1c02
1 changed files with 1 additions and 19 deletions
|
@ -84,16 +84,7 @@ def trainerThread (s2c, c2s, e,
|
|||
|
||||
if model.get_target_iter() != 0:
|
||||
if is_reached_goal:
|
||||
answer_filename = 'workspace/interact/interact_dict.pkl'
|
||||
if os.path.exists(answer_filename):
|
||||
with open(answer_filename, 'rb') as file:
|
||||
parameters = pickle.load(file)
|
||||
if parameters['NoInteractiveMode']:
|
||||
print("Entro 1")
|
||||
model_save()
|
||||
os._exit(1)
|
||||
else:
|
||||
io.log_info('Model already trained to target iteration. You can use preview.')
|
||||
io.log_info('Model already trained to target iteration. You can use preview.')
|
||||
else:
|
||||
io.log_info('Starting. Target iteration: %d. Press "Enter" to stop training and save model.' % ( model.get_target_iter() ) )
|
||||
else:
|
||||
|
@ -173,15 +164,6 @@ def trainerThread (s2c, c2s, e,
|
|||
model_save()
|
||||
is_reached_goal = True
|
||||
io.log_info ('You can use preview now.')
|
||||
answer_filename = 'workspace/interact/interact_dict.pkl'
|
||||
if os.path.exists(answer_filename):
|
||||
with open(answer_filename, 'rb') as file:
|
||||
parameters = pickle.load(file)
|
||||
if parameters['NoInteractiveMode']:
|
||||
print("Entro 2 ")
|
||||
model_save()
|
||||
os._exit(1)
|
||||
|
||||
need_save = False
|
||||
while time.time() - last_save_time >= save_interval_min*60:
|
||||
last_save_time += save_interval_min*60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue