mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
use override to apply checkpoint
This commit is contained in:
parent
06b6d2f2e2
commit
cfbe68184c
@ -86,7 +86,7 @@ def apply_checkpoint(p, x, xs):
|
||||
info = modules.sd_models.get_closet_checkpoint_match(x)
|
||||
if info is None:
|
||||
raise RuntimeError(f"Unknown checkpoint: {x}")
|
||||
modules.sd_models.reload_model_weights(shared.sd_model, info)
|
||||
p.override_settings['sd_model_checkpoint'] = info.hash
|
||||
|
||||
|
||||
def confirm_checkpoints(p, xs):
|
||||
|
Loading…
Reference in New Issue
Block a user