diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-16 00:24:05 +0200 |
---|---|---|
committer | MalumaDev <piano.lu92@gmail.com> | 2022-10-16 00:24:05 +0200 |
commit | b694bba39a2f9f9069201e27f0d312f4abe5b41f (patch) | |
tree | 08db9b88160496f4326397526200276c7bee1493 /modules/sd_hijack.py | |
parent | 9325c85f780c569d1823e422eaf51b2e497e0d3e (diff) | |
parent | 97ceaa23d00f6a17ca752dda757e6016f99230cb (diff) | |
download | stable-diffusion-webui-gfx803-b694bba39a2f9f9069201e27f0d312f4abe5b41f.tar.gz |
Merge remote-tracking branch 'origin/test_resolve_conflicts' into test_resolve_conflicts
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r-- | modules/sd_hijack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py index 491312b4..01fcb78f 100644 --- a/modules/sd_hijack.py +++ b/modules/sd_hijack.py @@ -29,8 +29,8 @@ def apply_optimizations(): ldm.modules.diffusionmodules.model.nonlinearity = silu
- if cmd_opts.force_enable_xformers or (cmd_opts.xformers and shared.xformers_available and torch.version.cuda and (
- 6, 0) <= torch.cuda.get_device_capability(shared.device) <= (8, 6)):
+
+ if cmd_opts.force_enable_xformers or (cmd_opts.xformers and shared.xformers_available and torch.version.cuda and (6, 0) <= torch.cuda.get_device_capability(shared.device) <= (9, 0)):
print("Applying xformers cross attention optimization.")
ldm.modules.attention.CrossAttention.forward = sd_hijack_optimizations.xformers_attention_forward
ldm.modules.diffusionmodules.model.AttnBlock.forward = sd_hijack_optimizations.xformers_attnblock_forward
|