mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
X/Y plot support for switching checkpoints.
This commit is contained in:
@@ -127,9 +127,9 @@ def load_model():
|
||||
return sd_model
|
||||
|
||||
|
||||
def reload_model_weights(sd_model):
|
||||
def reload_model_weights(sd_model, info=None):
|
||||
from modules import lowvram, devices
|
||||
checkpoint_info = select_checkpoint()
|
||||
checkpoint_info = info or select_checkpoint()
|
||||
|
||||
if sd_model.sd_model_checkpint == checkpoint_info.filename:
|
||||
return
|
||||
|
Reference in New Issue
Block a user