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
2023661008
commit
ada17ab3eb
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 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:
|
||||
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.')
|
||||
else:
|
||||
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
|
||||
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)
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue