Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13229 from AUTOMATIC1111/initialize-…
Browse files Browse the repository at this point in the history
…state.time_start-befroe-state.job_count

initialize state.time_start befroe state.job_count
  • Loading branch information
AUTOMATIC1111 committed Sep 30, 2023
2 parents df48222 + cf1edc2 commit 3a4290f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shared_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def dict(self):

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
Expand All @@ -114,7 +115,6 @@ def begin(self, job: str = "(unknown)"):
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)
Expand Down

0 comments on commit 3a4290f

Please sign in to comment.