diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-05 20:16:27 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-05 20:16:27 +0000 |
commit | c26732fbee2a57e621ac22bf70decf7496daa4cd (patch) | |
tree | e9bc0afc7762e04618cdc57d219a48e8763a3387 /modules/processing.py | |
parent | 67d011b02eddc20202b654dfea56528de3d5edf7 (diff) | |
download | stable-diffusion-webui-gfx803-c26732fbee2a57e621ac22bf70decf7496daa4cd.tar.gz stable-diffusion-webui-gfx803-c26732fbee2a57e621ac22bf70decf7496daa4cd.tar.bz2 stable-diffusion-webui-gfx803-c26732fbee2a57e621ac22bf70decf7496daa4cd.zip |
added support for AND from https://energy-based-model.github.io/Compositional-Visual-Generation-with-Composable-Diffusion-Models/
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 bb94033b..d8c6b8d5 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -360,7 +360,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: #c = p.sd_model.get_learned_conditioning(prompts)
with devices.autocast():
uc = prompt_parser.get_learned_conditioning(shared.sd_model, len(prompts) * [p.negative_prompt], p.steps)
- c = prompt_parser.get_learned_conditioning(shared.sd_model, prompts, p.steps)
+ c = prompt_parser.get_multicond_learned_conditioning(shared.sd_model, prompts, p.steps)
if len(model_hijack.comments) > 0:
for comment in model_hijack.comments:
|