diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-22 17:09:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-22 17:09:51 +0000 |
commit | 324c7c732dd9afc3d4c397c354797ae5d655b514 (patch) | |
tree | fa32bc1dd18052956de27e577116ff0fbe076336 /modules/processing.py | |
parent | 774be6d2f271415a82d9a83147e8ee8bbad018d0 (diff) | |
download | stable-diffusion-webui-gfx803-324c7c732dd9afc3d4c397c354797ae5d655b514.tar.gz stable-diffusion-webui-gfx803-324c7c732dd9afc3d4c397c354797ae5d655b514.tar.bz2 stable-diffusion-webui-gfx803-324c7c732dd9afc3d4c397c354797ae5d655b514.zip |
record First pass size as 0x0 for #3328
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 372489f7..27c669b0 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -524,6 +524,8 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): else:
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:
desired_pixel_count = 512 * 512
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_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_y = int(self.firstphase_height - firstphase_height_truncated) // opt_f
|