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
99ab3d43
Commit
99ab3d43
authored
Aug 14, 2023
by
Robert Barron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hires prompt timeline: merge to latests, slightly simplify diff
parent
d61e31ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/processing.py
modules/processing.py
+4
-4
No files found.
modules/processing.py
View file @
99ab3d43
...
...
@@ -394,7 +394,7 @@ class StableDiffusionProcessing:
self
.
main_prompt
=
self
.
all_prompts
[
0
]
self
.
main_negative_prompt
=
self
.
all_negative_prompts
[
0
]
def
cached_params
(
self
,
required_prompts
,
steps
,
hires_steps
,
extra_network_data
,
use_old_scheduling
):
def
cached_params
(
self
,
required_prompts
,
steps
,
extra_network_data
,
hires_steps
=
None
,
use_old_scheduling
=
False
):
"""Returns parameters that invalidate the cond cache if changed"""
return
(
...
...
@@ -424,7 +424,7 @@ class StableDiffusionProcessing:
caches is a list with items described above.
"""
cached_params
=
self
.
cached_params
(
required_prompts
,
steps
,
hires_steps
,
extra_network_data
,
shared
.
opts
.
use_old_scheduling
)
cached_params
=
self
.
cached_params
(
required_prompts
,
steps
,
extra_network_data
,
hires_steps
,
shared
.
opts
.
use_old_scheduling
)
for
cache
in
caches
:
if
cache
[
0
]
is
not
None
and
cached_params
==
cache
[
0
]:
...
...
@@ -447,8 +447,8 @@ class StableDiffusionProcessing:
self
.
step_multiplier
=
total_steps
//
self
.
steps
self
.
firstpass_steps
=
total_steps
self
.
uc
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_learned_conditioning
,
negative_prompts
,
total_steps
,
[
self
.
cached_uc
],
self
.
extra_network_data
,
None
)
self
.
c
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_multicond_learned_conditioning
,
prompts
,
total_steps
,
[
self
.
cached_c
],
self
.
extra_network_data
,
None
)
self
.
uc
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_learned_conditioning
,
negative_prompts
,
total_steps
,
[
self
.
cached_uc
],
self
.
extra_network_data
)
self
.
c
=
self
.
get_conds_with_caching
(
prompt_parser
.
get_multicond_learned_conditioning
,
prompts
,
total_steps
,
[
self
.
cached_c
],
self
.
extra_network_data
)
def
get_conds
(
self
):
return
self
.
c
,
self
.
uc
...
...
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