diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-20 16:16:55 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-20 16:16:55 +0000 |
commit | 2f98f7c924dfc719da2619fedbba75b1a5ea995c (patch) | |
tree | bcf16d731d16b2122dc43800973546feef9da1dc | |
parent | 4bf64976c1971fe2ff8931dd094306d297ebabcf (diff) | |
parent | 1f26815dd3ea5a0b8c094854e47219aec866f28c (diff) | |
download | stable-diffusion-webui-gfx803-2f98f7c924dfc719da2619fedbba75b1a5ea995c.tar.gz stable-diffusion-webui-gfx803-2f98f7c924dfc719da2619fedbba75b1a5ea995c.tar.bz2 stable-diffusion-webui-gfx803-2f98f7c924dfc719da2619fedbba75b1a5ea995c.zip |
Merge branch 'release_candidate' into dev
-rw-r--r-- | modules/sd_models_xl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_models_xl.py b/modules/sd_models_xl.py index 01320c7a..40559208 100644 --- a/modules/sd_models_xl.py +++ b/modules/sd_models_xl.py @@ -12,8 +12,8 @@ def get_learned_conditioning(self: sgm.models.diffusion.DiffusionEngine, batch: for embedder in self.conditioner.embedders:
embedder.ucg_rate = 0.0
- width = getattr(self, 'target_width', 1024)
- height = getattr(self, 'target_height', 1024)
+ width = getattr(batch, 'width', 1024)
+ height = getattr(batch, 'height', 1024)
is_negative_prompt = getattr(batch, 'is_negative_prompt', False)
aesthetic_score = shared.opts.sdxl_refiner_low_aesthetic_score if is_negative_prompt else shared.opts.sdxl_refiner_high_aesthetic_score
|