diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-30 11:10:26 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-30 11:10:26 +0000 |
commit | 40cd59207b96f9e522fdc104b43279880b671ce4 (patch) | |
tree | 0c1fb964da7ffa030f73fdbdfceada4aa54d935f /modules/processing.py | |
parent | 3bca90b249d749ed5429f76e380d2ffa52fc0d41 (diff) | |
download | stable-diffusion-webui-gfx803-40cd59207b96f9e522fdc104b43279880b671ce4.tar.gz stable-diffusion-webui-gfx803-40cd59207b96f9e522fdc104b43279880b671ce4.tar.bz2 stable-diffusion-webui-gfx803-40cd59207b96f9e522fdc104b43279880b671ce4.zip |
make it work with SDXL
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 7026487a..b8af1301 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1197,8 +1197,11 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): if self.hr_c is not None:
return
- self.hr_uc = self.get_conds_with_caching(prompt_parser.get_learned_conditioning, self.hr_negative_prompts, self.steps * self.step_multiplier, [self.cached_hr_uc, self.cached_uc], self.hr_extra_network_data)
- self.hr_c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, self.hr_prompts, self.steps * self.step_multiplier, [self.cached_hr_c, self.cached_c], self.hr_extra_network_data)
+ hr_prompts = prompt_parser.SdConditioning(self.hr_prompts, width=self.hr_upscale_to_x, height=self.hr_upscale_to_y)
+ hr_negative_prompts = prompt_parser.SdConditioning(self.hr_negative_prompts, width=self.hr_upscale_to_x, height=self.hr_upscale_to_y, is_negative_prompt=True)
+
+ self.hr_uc = self.get_conds_with_caching(prompt_parser.get_learned_conditioning, hr_negative_prompts, self.steps * self.step_multiplier, [self.cached_hr_uc, self.cached_uc], self.hr_extra_network_data)
+ self.hr_c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, hr_prompts, self.steps * self.step_multiplier, [self.cached_hr_c, self.cached_c], self.hr_extra_network_data)
def setup_conds(self):
super().setup_conds()
|