From 731eb7277454fe16b094f54750e05d20e05a8be8 Mon Sep 17 00:00:00 2001 From: Andray Date: Sun, 23 Jun 2024 21:16:48 +0400 Subject: [PATCH] fix sd2 switching --- modules/sd_models_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sd_models_config.py b/modules/sd_models_config.py index 9cec4f13d..733d70afd 100644 --- a/modules/sd_models_config.py +++ b/modules/sd_models_config.py @@ -31,7 +31,7 @@ def is_using_v_parameterization_for_sd2(state_dict): import ldm.modules.diffusionmodules.openaimodel - device = devices.cpu + device = devices.device with sd_disable_initialization.DisableInitialization(): unet = ldm.modules.diffusionmodules.openaimodel.UNetModel(