allow zero denoising

This commit is contained in:
Vladimir Mandic
2023-09-19 15:14:58 -04:00
parent f82e05c5f1
commit d73f5f6ff6
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -965,6 +965,9 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
if (self.hr_upscale_to_x == self.width and self.hr_upscale_to_y == self.height) or self.hr_upscaler is None or self.hr_upscaler == 'None':
self.is_hr_pass = False
return
if self.denoising_strength == 0:
self.is_hr_pass = False
return
self.is_hr_pass = True
if not shared.state.processing_has_refined_job_count:
if shared.state.job_count == -1: