mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 21:42:08 -07:00
added sumbmodules
This commit is contained in:
parent
599aca6266
commit
c40d7ee52f
3 changed files with 50 additions and 44 deletions
|
@ -84,11 +84,16 @@ def trainerThread (s2c, c2s, e,
|
|||
if model.get_target_iter() != 0:
|
||||
if is_reached_goal:
|
||||
io.log_info('Model already trained to target iteration. You can use preview.')
|
||||
if os.path.exists("/home/deepfake/interact_dict.pkl"):
|
||||
|
||||
answer_filename = '../../../worspace/interact/interact_dict.pkl'
|
||||
if os.path.exists(answer_filename):
|
||||
with open(answer_filename, 'rb') as file:
|
||||
parameters = pickle.load(file)
|
||||
if parameters['NoInteractiveMode']:
|
||||
model_save()
|
||||
os._exit(1)
|
||||
else:
|
||||
io.log_info('Starting. Target iteration: %d. Press "Enter" to stop training and save model.' % ( model.get_target_iter() ) )
|
||||
else:
|
||||
io.log_info('Starting. Target iteration: %d. Press "Enter" to stop training and save model.' % ( model.get_target_iter() ) )
|
||||
else:
|
||||
io.log_info('Starting. Press "Enter" to stop training and save model.')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue