|
|
|
@ -524,6 +524,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
state.job_count = state.job_count * 2
|
|
|
|
state.job_count = state.job_count * 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.extra_generation_params["First pass size"] = f"{self.firstphase_width}x{self.firstphase_height}"
|
|
|
|
|
|
|
|
|
|
|
|
if self.firstphase_width == 0 or self.firstphase_height == 0:
|
|
|
|
if self.firstphase_width == 0 or self.firstphase_height == 0:
|
|
|
|
desired_pixel_count = 512 * 512
|
|
|
|
desired_pixel_count = 512 * 512
|
|
|
|
actual_pixel_count = self.width * self.height
|
|
|
|
actual_pixel_count = self.width * self.height
|
|
|
|
@ -545,7 +547,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
|
|
|
firstphase_width_truncated = self.firstphase_height * self.width / self.height
|
|
|
|
firstphase_width_truncated = self.firstphase_height * self.width / self.height
|
|
|
|
firstphase_height_truncated = self.firstphase_height
|
|
|
|
firstphase_height_truncated = self.firstphase_height
|
|
|
|
|
|
|
|
|
|
|
|
self.extra_generation_params["First pass size"] = f"{self.firstphase_width}x{self.firstphase_height}"
|
|
|
|
|
|
|
|
self.truncate_x = int(self.firstphase_width - firstphase_width_truncated) // opt_f
|
|
|
|
self.truncate_x = int(self.firstphase_width - firstphase_width_truncated) // opt_f
|
|
|
|
self.truncate_y = int(self.firstphase_height - firstphase_height_truncated) // opt_f
|
|
|
|
self.truncate_y = int(self.firstphase_height - firstphase_height_truncated) // opt_f
|
|
|
|
|
|
|
|
|
|
|
|
|