guard against empty values

This commit is contained in:
Vladimir Mandic
2023-06-17 20:41:49 -04:00
parent 5f50c35388
commit e9f4ba0215
+2
View File
@@ -820,6 +820,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
self.applied_old_hires_behavior_to = None
def init(self, all_prompts, all_seeds, all_subseeds):
self.width = self.width or 512
self.height = self.height or 512
if self.enable_hr:
if opts.use_old_hires_fix_width_height and self.applied_old_hires_behavior_to != (self.width, self.height):
self.hr_resize_x = self.width