mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
call apply_alpha_schedule_override in load_model_weights for #14979
This commit is contained in:
parent
28bc85a20a
commit
da67afe5f6
@ -428,6 +428,8 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
|
||||
devices.dtype_unet = torch.float16
|
||||
timer.record("apply half()")
|
||||
|
||||
apply_alpha_schedule_override(model)
|
||||
|
||||
for module in model.modules():
|
||||
if hasattr(module, 'fp16_weight'):
|
||||
del module.fp16_weight
|
||||
@ -843,7 +845,6 @@ def reload_model_weights(sd_model=None, info=None, forced_reload=False):
|
||||
|
||||
sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)
|
||||
if not forced_reload and sd_model is not None and sd_model.sd_checkpoint_info.filename == checkpoint_info.filename:
|
||||
apply_alpha_schedule_override(sd_model)
|
||||
return sd_model
|
||||
|
||||
if sd_model is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user