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