Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
6b68b590
Commit
6b68b590
authored
Jul 24, 2023
by
ljleb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use local vars
parent
ca45ff1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/processing.py
modules/processing.py
+6
-6
No files found.
modules/processing.py
View file @
6b68b590
...
...
@@ -722,20 +722,20 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
all_subseeds
=
p
.
all_subseeds
[:]
# apply changes to generation data
all_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
prompts
all_seeds
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
seeds
all_subseeds
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
subseeds
all_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
prompts
all_seeds
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
seeds
all_subseeds
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
subseeds
# update p.all_negative_prompts in case extensions changed the size of the batch
# create_infotext below uses it
old_negative_prompts
=
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:(
n
+
1
)
*
p
.
batch_size
]
=
p
.
negative_prompts
old_negative_prompts
=
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:(
iteratio
n
+
1
)
*
p
.
batch_size
]
=
p
.
negative_prompts
try
:
return
create_infotext
(
p
,
all_prompts
,
all_seeds
,
all_subseeds
,
comments
,
iteration
,
position_in_batch
,
use_main_prompt
)
finally
:
# restore p.all_negative_prompts in case extensions changed the size of the batch
p
.
all_negative_prompts
[
n
*
p
.
batch_size
:
n
*
p
.
batch_size
+
len
(
p
.
negative_prompts
)]
=
old_negative_prompts
p
.
all_negative_prompts
[
iteration
*
p
.
batch_size
:
iteratio
n
*
p
.
batch_size
+
len
(
p
.
negative_prompts
)]
=
old_negative_prompts
if
os
.
path
.
exists
(
cmd_opts
.
embeddings_dir
)
and
not
p
.
do_not_reload_embeddings
:
model_hijack
.
embedding_db
.
load_textual_inversion_embeddings
()
...
...
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