Merge pull request #13229 from AUTOMATIC1111/initialize-state.time_start-befroe-state.job_count

initialize state.time_start befroe state.job_count
This commit is contained in:
AUTOMATIC1111 2023-09-30 09:21:47 +03:00 committed by GitHub
commit 3a4290f833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ class State:
def begin(self, job: str = "(unknown)"):
self.sampling_step = 0
self.time_start = time.time()
self.job_count = -1
self.processing_has_refined_job_count = False
self.job_no = 0
@ -114,7 +115,6 @@ class State:
self.skipped = False
self.interrupted = False
self.textinfo = None
self.time_start = time.time()
self.job = job
devices.torch_gc()
log.info("Starting job %s", job)