mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
dont need to preserve alphas_cumprod_original
This commit is contained in:
parent
9c1ece8978
commit
648f6a8e0c
@ -181,11 +181,9 @@ def apply_refiner(cfg_denoiser):
|
||||
cfg_denoiser.p.extra_generation_params['Refiner'] = refiner_checkpoint_info.short_title
|
||||
cfg_denoiser.p.extra_generation_params['Refiner switch at'] = refiner_switch_at
|
||||
|
||||
alphas_cumprod_original = cfg_denoiser.p.sd_model.alphas_cumprod_original
|
||||
alphas_cumprod = cfg_denoiser.p.sd_model.alphas_cumprod
|
||||
with sd_models.SkipWritingToConfig():
|
||||
sd_models.reload_model_weights(info=refiner_checkpoint_info)
|
||||
cfg_denoiser.p.sd_model.alphas_cumprod_original = alphas_cumprod_original
|
||||
cfg_denoiser.p.sd_model.alphas_cumprod = alphas_cumprod
|
||||
|
||||
devices.torch_gc()
|
||||
|
Loading…
Reference in New Issue
Block a user