mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-02 13:51:40 -08:00
fix model switching not working properly if there is a different yaml config
This commit is contained in:
parent
bd833409ac
commit
f4578b343d
1 changed files with 2 additions and 1 deletions
|
|
@ -196,7 +196,8 @@ def reload_model_weights(sd_model, info=None):
|
|||
return
|
||||
|
||||
if sd_model.sd_checkpoint_info.config != checkpoint_info.config:
|
||||
return load_model()
|
||||
shared.sd_model = load_model()
|
||||
return shared.sd_model
|
||||
|
||||
if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
|
||||
lowvram.send_everything_to_cpu()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue