diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-26 11:48:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 11:48:43 +0000 |
commit | 645f4e7ef8c9d59deea7091a22373b2da2b780f2 (patch) | |
tree | 4a78e30ec8cafd14ecbb677485d2d91282d465ad /modules/sd_hijack_utils.py | |
parent | 6cff4401824299a983c8e13424018efc347b4a2b (diff) | |
parent | 10421f93c3f7f7ce88cb40391b46d4e6664eff74 (diff) | |
download | stable-diffusion-webui-gfx803-645f4e7ef8c9d59deea7091a22373b2da2b780f2.tar.gz stable-diffusion-webui-gfx803-645f4e7ef8c9d59deea7091a22373b2da2b780f2.tar.bz2 stable-diffusion-webui-gfx803-645f4e7ef8c9d59deea7091a22373b2da2b780f2.zip |
Merge pull request #7234 from brkirch/fix-full-previews
Fix full previews and--no-half-vae to work correctly with --upcast-sampling
Diffstat (limited to 'modules/sd_hijack_utils.py')
-rw-r--r-- | modules/sd_hijack_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack_utils.py b/modules/sd_hijack_utils.py index f81b169a..f8684475 100644 --- a/modules/sd_hijack_utils.py +++ b/modules/sd_hijack_utils.py @@ -5,7 +5,7 @@ class CondFunc: self = super(CondFunc, cls).__new__(cls)
if isinstance(orig_func, str):
func_path = orig_func.split('.')
- for i in range(len(func_path)-2, -1, -1):
+ for i in range(len(func_path)-1, -1, -1):
try:
resolved_obj = importlib.import_module('.'.join(func_path[:i]))
break
|