mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
fix sd2 switching
This commit is contained in:
parent
a30b19dd55
commit
731eb72774
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user