From a5f94fe0ddf1c7402d78ecd7c0c52e1013744623 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 24 Dec 2024 16:09:25 -0500 Subject: [PATCH] remove experimental from consistory Signed-off-by: Vladimir Mandic --- modules/lora/networks.py | 2 ++ scripts/consistory_ext.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lora/networks.py b/modules/lora/networks.py index fc90ddd2d..edb826080 100644 --- a/modules/lora/networks.py +++ b/modules/lora/networks.py @@ -311,6 +311,8 @@ def network_backup_weights(self: Union[torch.nn.Conv2d, torch.nn.Linear, torch.n t0 = time.time() weights_backup = getattr(self, "network_weights_backup", None) + if (shared.opts.lora_fuse_diffusers and not isinstance(weights_backup, bool)) or (not shared.opts.lora_fuse_diffusers and isinstance(weights_backup, bool)): + weights_backup = None # invalidate so we can change direct/backup on-the-fly if weights_backup is None and wanted_names != (): # pylint: disable=C1803 weight = getattr(self, 'weight', None) self.network_weights_backup = None diff --git a/scripts/consistory_ext.py b/scripts/consistory_ext.py index 45de1ea6c..7a8f21e3b 100644 --- a/scripts/consistory_ext.py +++ b/scripts/consistory_ext.py @@ -25,7 +25,7 @@ class Script(scripts.Script): return 'ConsiStory: Consistent Image Generation' def show(self, is_img2img): - return not is_img2img if shared.native and shared.cmd_opts.experimental else False + return not is_img2img if shared.native else False def reset(self): self.anchor_cache_first_stage = None