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
de64146a
Commit
de64146a
authored
Nov 02, 2022
by
Artem Zagidulin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add number of itter
parent
a9e97997
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
processing.py
modules/processing.py
+1
-1
scripts.py
modules/scripts.py
+3
-3
No files found.
modules/processing.py
View file @
de64146a
...
...
@@ -510,7 +510,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
break
if
p
.
scripts
is
not
None
:
p
.
scripts
.
process_one
(
p
)
p
.
scripts
.
process_one
(
p
,
n
)
with
devices
.
autocast
():
uc
=
prompt_parser
.
get_learned_conditioning
(
shared
.
sd_model
,
len
(
prompts
)
*
[
p
.
negative_prompt
],
p
.
steps
)
...
...
modules/scripts.py
View file @
de64146a
...
...
@@ -70,7 +70,7 @@ class Script:
pass
def
process_one
(
self
,
p
,
*
args
):
def
process_one
(
self
,
p
,
n
,
*
args
):
"""
Same as process(), but called for every iteration
"""
...
...
@@ -301,11 +301,11 @@ class ScriptRunner:
print
(
f
"Error running process: {script.filename}"
,
file
=
sys
.
stderr
)
print
(
traceback
.
format_exc
(),
file
=
sys
.
stderr
)
def
process_one
(
self
,
p
):
def
process_one
(
self
,
p
,
n
):
for
script
in
self
.
alwayson_scripts
:
try
:
script_args
=
p
.
script_args
[
script
.
args_from
:
script
.
args_to
]
script
.
process_one
(
p
,
*
script_args
)
script
.
process_one
(
p
,
n
,
*
script_args
)
except
Exception
:
print
(
f
"Error running process_one: {script.filename}"
,
file
=
sys
.
stderr
)
print
(
traceback
.
format_exc
(),
file
=
sys
.
stderr
)
...
...
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