mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
Revert "send weights to target device instead of CPU memory"
This reverts commit 0815c45bcd
.
This commit is contained in:
parent
0815c45bcd
commit
57e59c14c8
@ -579,7 +579,7 @@ def load_model(checkpoint_info=None, already_loaded_state_dict=None):
|
||||
|
||||
timer.record("create model")
|
||||
|
||||
with sd_disable_initialization.LoadStateDictOnMeta(state_dict, devices.device):
|
||||
with sd_disable_initialization.LoadStateDictOnMeta(state_dict, devices.cpu):
|
||||
load_model_weights(sd_model, checkpoint_info, state_dict, timer)
|
||||
timer.record("load weights from state dict")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user