aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-19 07:05:07 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-19 07:05:07 +0000
commit2140bd1c108dd17bbf8601b10da7865ed1ac1607 (patch)
tree712545d80e542a21f538a0e75e25d94e977048a4 /modules/sd_hijack.py
parent1e5afd4fa9774314d649bddb3d18a9a75871902b (diff)
downloadstable-diffusion-webui-gfx803-2140bd1c108dd17bbf8601b10da7865ed1ac1607.tar.gz
stable-diffusion-webui-gfx803-2140bd1c108dd17bbf8601b10da7865ed1ac1607.tar.bz2
stable-diffusion-webui-gfx803-2140bd1c108dd17bbf8601b10da7865ed1ac1607.zip
make it actually work after suggestions
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r--modules/sd_hijack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index 75f1c540..08d31080 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -37,7 +37,7 @@ def list_optimizers():
new_optimizers = [x for x in new_optimizers if x.is_available()]
- new_optimizers = sorted(new_optimizers, key=lambda x: x.priority(), reverse=True)
+ new_optimizers = sorted(new_optimizers, key=lambda x: x.priority, reverse=True)
optimizers.clear()
optimizers.extend(new_optimizers)