added sumbmodules

This commit is contained in:
leno3003 2022-03-30 15:53:17 +02:00
parent c131eb692f
commit a3de74223f
3 changed files with 4 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class InteractBase(object):
self.process_messages_callbacks = {} self.process_messages_callbacks = {}
self.default_answers = {} self.default_answers = {}
answer_filename = '../../../worspace/interact/interact_dict.pkl' answer_filename = 'worspace/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:
self.default_answers = pickle.load(file) self.default_answers = pickle.load(file)

View file

@ -85,7 +85,7 @@ def trainerThread (s2c, c2s, e,
if is_reached_goal: if is_reached_goal:
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.')
answer_filename = '../../../worspace/interact/interact_dict.pkl' answer_filename = 'DeepFaceLab_Linux/worspace/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)
@ -171,6 +171,7 @@ def trainerThread (s2c, c2s, e,
model_save() model_save()
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 = 'DeepFaceLab_Linux/worspace/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)

View file

@ -295,6 +295,7 @@ class ModelBase(object):
self.choose_preview_history = io.input_bool("Randomly choose new image for preview history", False, help_message="Preview image history will stay stuck with old faces if you reuse the same model on different celebs. Choose no unless you are changing src/dst to a new person") self.choose_preview_history = io.input_bool("Randomly choose new image for preview history", False, help_message="Preview image history will stay stuck with old faces if you reuse the same model on different celebs. Choose no unless you are changing src/dst to a new person")
def ask_target_iter(self, default_value=0): def ask_target_iter(self, default_value=0):
answer_filename = 'DeepFaceLab_Linux/worspace/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)