From 16e7ac09df1cef85781494a1234a7aa3c51fb4a9 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Tue, 27 Sep 2022 02:26:13 +0100 Subject: [PATCH] job_timestamp initialization change --- modules/shared.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/shared.py b/modules/shared.py index c32da110..bd030fe8 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -66,7 +66,7 @@ class State: job = "" job_no = 0 job_count = 0 - job_timestamp = 0 + job_timestamp = '0' sampling_step = 0 sampling_steps = 0 current_latent = None @@ -80,6 +80,7 @@ class State: self.job_no += 1 self.sampling_step = 0 self.current_image_sampling_step = 0 + def get_job_timestamp(self): return datetime.datetime.now().strftime("%Y%m%d%H%M%S")