diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-06-01 18:35:14 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-06-01 18:35:14 +0000 |
commit | b6af0a3809ea869fb180633f9affcae4b199ffcf (patch) | |
tree | ac47f34ac97c08e8f83fb2c90f6977459121e6b5 /modules/sd_hijack_optimizations.py | |
parent | 20ae71faa8ef035c31aa3a410b707d792c8203a3 (diff) | |
parent | 8c3e64f4f6d67076031132b1628daba66dfa1121 (diff) | |
download | stable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.tar.gz stable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.tar.bz2 stable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.zip |
Merge branch 'release_candidate'
Diffstat (limited to 'modules/sd_hijack_optimizations.py')
-rw-r--r-- | modules/sd_hijack_optimizations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/sd_hijack_optimizations.py b/modules/sd_hijack_optimizations.py index 2ec0b049..80e48a42 100644 --- a/modules/sd_hijack_optimizations.py +++ b/modules/sd_hijack_optimizations.py @@ -59,7 +59,7 @@ class SdOptimizationSdpNoMem(SdOptimization): name = "sdp-no-mem"
label = "scaled dot product without memory efficient attention"
cmd_opt = "opt_sdp_no_mem_attention"
- priority = 90
+ priority = 80
def is_available(self):
return hasattr(torch.nn.functional, "scaled_dot_product_attention") and callable(torch.nn.functional.scaled_dot_product_attention)
@@ -73,7 +73,7 @@ class SdOptimizationSdp(SdOptimizationSdpNoMem): name = "sdp"
label = "scaled dot product"
cmd_opt = "opt_sdp_attention"
- priority = 80
+ priority = 70
def apply(self):
ldm.modules.attention.CrossAttention.forward = scaled_dot_product_attention_forward
@@ -116,7 +116,7 @@ class SdOptimizationInvokeAI(SdOptimization): class SdOptimizationDoggettx(SdOptimization):
name = "Doggettx"
cmd_opt = "opt_split_attention"
- priority = 20
+ priority = 90
def apply(self):
ldm.modules.attention.CrossAttention.forward = split_cross_attention_forward
|