automatized arguments with pickle

This commit is contained in:
leno3003 2022-03-28 22:43:24 +02:00
parent afd87df67a
commit dee168e5a6
3 changed files with 15 additions and 6 deletions

View file

@ -163,6 +163,7 @@ def trainerThread (s2c, c2s, e,
model_save()
is_reached_goal = True
io.log_info ('You can use preview now.')
os._exit(1)
need_save = False
while time.time() - last_save_time >= save_interval_min*60:
@ -357,4 +358,4 @@ def main(**kwargs):
except KeyboardInterrupt:
s2c.put ( {'op': 'close'} )
io.destroy_all_windows()
io.destroy_all_windows()