mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
remove alphas cumprod fix from samplers_common
This commit is contained in:
parent
94f23d00a7
commit
4dae91a1fe
@ -181,10 +181,8 @@ def apply_refiner(cfg_denoiser):
|
|||||||
cfg_denoiser.p.extra_generation_params['Refiner'] = refiner_checkpoint_info.short_title
|
cfg_denoiser.p.extra_generation_params['Refiner'] = refiner_checkpoint_info.short_title
|
||||||
cfg_denoiser.p.extra_generation_params['Refiner switch at'] = refiner_switch_at
|
cfg_denoiser.p.extra_generation_params['Refiner switch at'] = refiner_switch_at
|
||||||
|
|
||||||
alphas_cumprod = cfg_denoiser.p.sd_model.alphas_cumprod
|
|
||||||
with sd_models.SkipWritingToConfig():
|
with sd_models.SkipWritingToConfig():
|
||||||
sd_models.reload_model_weights(info=refiner_checkpoint_info)
|
sd_models.reload_model_weights(info=refiner_checkpoint_info)
|
||||||
cfg_denoiser.p.sd_model.alphas_cumprod = alphas_cumprod
|
|
||||||
|
|
||||||
devices.torch_gc()
|
devices.torch_gc()
|
||||||
cfg_denoiser.p.setup_conds()
|
cfg_denoiser.p.setup_conds()
|
||||||
|
Loading…
Reference in New Issue
Block a user