added passthrough mode for esrgan upscale, triggered by img2img denoise 0.0 with 1 step

This commit is contained in:
Concedo
2026-03-21 16:19:10 +08:00
parent 58a585d0e7
commit a3d3800f3e
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -2435,7 +2435,7 @@ def sd_generate(genparams):
inputs.cfg_scale = cfg_scale
if distilled_guidance is not None:
inputs.distilled_guidance = distilled_guidance
inputs.denoising_strength = denoising_strength
inputs.denoising_strength = (0 if denoising_strength < 0 else (1 if denoising_strength > 1 else denoising_strength))
if shifted_timestep is not None:
inputs.shifted_timestep = shifted_timestep
if flow_shift is not None: