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
1c9d1b0e
Commit
1c9d1b0e
authored
Jun 04, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify self.extra_network_data
parent
f098e726
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/processing.py
modules/processing.py
+2
-4
No files found.
modules/processing.py
View file @
1c9d1b0e
...
@@ -339,9 +339,7 @@ class StableDiffusionProcessing:
...
@@ -339,9 +339,7 @@ class StableDiffusionProcessing:
self
.
c
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_multicond_learned_conditioning
,
self
.
prompts
,
self
.
steps
*
self
.
step_multiplier
,
self
.
cached_c
,
self
.
extra_network_data
)
self
.
c
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_multicond_learned_conditioning
,
self
.
prompts
,
self
.
steps
*
self
.
step_multiplier
,
self
.
cached_c
,
self
.
extra_network_data
)
def
parse_extra_network_prompts
(
self
):
def
parse_extra_network_prompts
(
self
):
self
.
prompts
,
extra_network_data
=
extra_networks
.
parse_prompts
(
self
.
prompts
)
self
.
prompts
,
self
.
extra_network_data
=
extra_networks
.
parse_prompts
(
self
.
prompts
)
return
extra_network_data
class
Processed
:
class
Processed
:
...
@@ -702,7 +700,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
...
@@ -702,7 +700,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if
len
(
p
.
prompts
)
==
0
:
if
len
(
p
.
prompts
)
==
0
:
break
break
p
.
extra_network_data
=
p
.
parse_extra_network_prompts
()
p
.
parse_extra_network_prompts
()
if
not
p
.
disable_extra_networks
:
if
not
p
.
disable_extra_networks
:
with
devices
.
autocast
():
with
devices
.
autocast
():
...
...
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