Commit f4578b34 authored by AUTOMATIC's avatar AUTOMATIC

fix model switching not working properly if there is a different yaml config

parent bd833409
...@@ -196,7 +196,8 @@ def reload_model_weights(sd_model, info=None): ...@@ -196,7 +196,8 @@ def reload_model_weights(sd_model, info=None):
return return
if sd_model.sd_checkpoint_info.config != checkpoint_info.config: 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: if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
lowvram.send_everything_to_cpu() lowvram.send_everything_to_cpu()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment