We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a2076 commit be27fd4Copy full SHA for be27fd4
modules/shared.py
@@ -4,6 +4,7 @@
4
import os
5
import sys
6
from collections import OrderedDict
7
+import time
8
9
import gradio as gr
10
import tqdm
@@ -132,6 +133,7 @@ class State:
132
133
current_image = None
134
current_image_sampling_step = 0
135
textinfo = None
136
+ time_start = None
137
138
def skip(self):
139
self.skipped = True
@@ -168,6 +170,7 @@ def begin(self):
168
170
self.skipped = False
169
171
self.interrupted = False
172
self.textinfo = None
173
+ self.time_start = time.time()
174
175
devices.torch_gc()
176
0 commit comments