From 3dc9366d18eee980ebab704e2b88cfd4d79b9db0 Mon Sep 17 00:00:00 2001 From: leno3003 Date: Tue, 29 Mar 2022 14:12:12 +0200 Subject: [PATCH] check if pkl exist to apply modifications --- mainscripts/Trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainscripts/Trainer.py b/mainscripts/Trainer.py index ef0ac29..97412bd 100644 --- a/mainscripts/Trainer.py +++ b/mainscripts/Trainer.py @@ -84,7 +84,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("/home/deepfake/interact_dict.pkl"): + if os.path.exists("/home/deepfake/interact_dict.pkl"): model_save() os._exit(1) else: