diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-12 12:54:32 +0300 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-12 12:54:32 +0300 |
commit | b293ed30610c040e621e1840d63047ae298f0650 (patch) | |
tree | ab85c6bea89827fe070f9adcd71c85355297d289 /modules/processing.py | |
parent | 64311faa6848d641cc452115e4e1eb47d2a7b519 (diff) |
make it possible to use hires fix together with refiner
Diffstat (limited to 'modules/processing.py')
-rwxr-xr-x | modules/processing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index 5996cbac..6ad105d7 100755 --- a/modules/processing.py +++ b/modules/processing.py @@ -1200,6 +1200,12 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): self.hr_c = self.get_conds_with_caching(prompt_parser.get_multicond_learned_conditioning, hr_prompts, total_steps, [self.cached_hr_c, self.cached_c], self.hr_extra_network_data)
def setup_conds(self):
+ if self.is_hr_pass:
+ # if we are in hr pass right now, the call is being made from the refiner, and we don't need to setup firstpass cons or switch model
+ self.hr_c = None
+ self.calculate_hr_conds()
+ return
+
super().setup_conds()
self.hr_uc = None
|