mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-07 01:32:49 -08:00
X/Y plot support for switching checkpoints.
This commit is contained in:
parent
99585b3514
commit
304222ef94
3 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue