From b41d3b2efb3c51b8bf9f2c762a31feee141268a9 Mon Sep 17 00:00:00 2001 From: AI-Casanova <54461896+AI-Casanova@users.noreply.github.com> Date: Sat, 7 Oct 2023 12:12:24 -0500 Subject: [PATCH] Update sd_models.py for LyCORIS loading on Diffusers Backend --- modules/sd_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sd_models.py b/modules/sd_models.py index 8bf34d978..967d527ae 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -380,8 +380,8 @@ def read_metadata_from_safetensors(filename): def read_state_dict(checkpoint_file, map_location=None): # pylint: disable=unused-argument - if shared.backend == shared.Backend.DIFFUSERS: - return None + #if shared.backend == shared.Backend.DIFFUSERS: + #return None try: pl_sd = None with progress.open(checkpoint_file, 'rb', description=f'[cyan]Loading weights: [yellow]{checkpoint_file}', auto_refresh=True, console=shared.console) as f: