Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
be27fd46
Commit
be27fd46
authored
Oct 30, 2022
by
evshiron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken progress api by previous rework
parent
17a2076f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
shared.py
modules/shared.py
+3
-0
No files found.
modules/shared.py
View file @
be27fd46
...
@@ -4,6 +4,7 @@ import json
...
@@ -4,6 +4,7 @@ import json
import
os
import
os
import
sys
import
sys
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
time
import
gradio
as
gr
import
gradio
as
gr
import
tqdm
import
tqdm
...
@@ -132,6 +133,7 @@ class State:
...
@@ -132,6 +133,7 @@ class State:
current_image
=
None
current_image
=
None
current_image_sampling_step
=
0
current_image_sampling_step
=
0
textinfo
=
None
textinfo
=
None
time_start
=
None
def
skip
(
self
):
def
skip
(
self
):
self
.
skipped
=
True
self
.
skipped
=
True
...
@@ -168,6 +170,7 @@ class State:
...
@@ -168,6 +170,7 @@ class State:
self
.
skipped
=
False
self
.
skipped
=
False
self
.
interrupted
=
False
self
.
interrupted
=
False
self
.
textinfo
=
None
self
.
textinfo
=
None
self
.
time_start
=
time
.
time
()
devices
.
torch_gc
()
devices
.
torch_gc
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment