Unverified Commit c3bd113a authored by InvincibleDude's avatar InvincibleDude Committed by GitHub
Browse files

Image info fix

parent f4b78e73
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -808,6 +808,13 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):

    def init(self, all_prompts, all_seeds, all_subseeds):
        if self.enable_hr:
            if self.hr_sampler != '---':
                self.extra_generation_params["Hires sampler"] = self.hr_sampler

            if self.hr_prompt != '':
                self.extra_generation_params["Hires prompt"] = f'({self.hr_prompt.replace(",", ";")})'
                self.extra_generation_params["Hires negative prompt"] = f'({self.hr_negative_prompt.replace(",", ";")})'

            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
                self.hr_resize_y = self.height
@@ -819,9 +826,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):

            if self.hr_resize_x == 0 and self.hr_resize_y == 0:
                self.extra_generation_params["Hires upscale"] = self.hr_scale
                self.extra_generation_params["Hires sampler"] = self.hr_sampler
                self.extra_generation_params["Hires prompt"] = f'({self.hr_prompt.replace(",", ";")})'
                self.extra_generation_params["Hires negative prompt"] = f'({self.hr_negative_prompt.replace(",", ";")})'
                self.hr_upscale_to_x = int(self.width * self.hr_scale)
                self.hr_upscale_to_y = int(self.height * self.hr_scale)
            else: