mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
make it possible to use hires fix together with refiner
This commit is contained in:
parent
64311faa68
commit
b293ed3061
3 changed files with 10 additions and 1 deletions
|
|
@ -151,6 +151,9 @@ def apply_refiner(cfg_denoiser):
|
|||
if refiner_checkpoint_info is None or shared.sd_model.sd_checkpoint_info == refiner_checkpoint_info:
|
||||
return False
|
||||
|
||||
if getattr(cfg_denoiser.p, "enable_hr", False) and not cfg_denoiser.p.is_hr_pass:
|
||||
return False
|
||||
|
||||
cfg_denoiser.p.extra_generation_params['Refiner'] = refiner_checkpoint_info.short_title
|
||||
cfg_denoiser.p.extra_generation_params['Refiner switch at'] = refiner_switch_at
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue