added photos for thesis

This commit is contained in:
leno3003 2022-04-01 15:27:23 +02:00
parent 1c249838c1
commit cc02b0c324
4 changed files with 8 additions and 22 deletions

View file

@ -85,10 +85,7 @@ 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(answer_filename):
with open(answer_filename, 'rb') as file:
parameters = pickle.load(file)
if parameters['NoInteractiveMode']:
if io.get_default_answer('NoInteractiveMode') is not None:
model_save()
os._exit(0)
else:
@ -170,10 +167,7 @@ def trainerThread (s2c, c2s, e,
model_save()
is_reached_goal = True
io.log_info ('You can use preview now.')
if os.path.exists(answer_filename):
with open(answer_filename, 'rb') as file:
parameters = pickle.load(file)
if parameters['NoInteractiveMode']:
if io.get_default_answer('NoInteractiveMode') is not None:
model_save()
os._exit(0)
need_save = False