diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-15 12:47:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-15 12:47:02 +0000 |
commit | 97f0727489ddd3d7ca264c54ed0f63b6847502e2 (patch) | |
tree | 198167dd436df7e5073135e4f27201e9794a31ed /modules/processing.py | |
parent | 20a1f68c752f8e37492ea00911c97bfc572a6e67 (diff) | |
download | stable-diffusion-webui-gfx803-97f0727489ddd3d7ca264c54ed0f63b6847502e2.tar.gz stable-diffusion-webui-gfx803-97f0727489ddd3d7ca264c54ed0f63b6847502e2.tar.bz2 stable-diffusion-webui-gfx803-97f0727489ddd3d7ca264c54ed0f63b6847502e2.zip |
add First pass size always regardless of whether it was auto chosen or specified
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index b9a1660e..941ae089 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -528,7 +528,6 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): firstphase_height_truncated = int(scale * self.height)
else:
- self.extra_generation_params["First pass size"] = f"{self.firstphase_width}x{self.firstphase_height}"
width_ratio = self.width / self.firstphase_width
height_ratio = self.height / self.firstphase_height
@@ -540,6 +539,7 @@ 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
|