aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-05 20:16:27 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-05 20:16:27 +0000
commitc26732fbee2a57e621ac22bf70decf7496daa4cd (patch)
treee9bc0afc7762e04618cdc57d219a48e8763a3387 /modules/processing.py
parent67d011b02eddc20202b654dfea56528de3d5edf7 (diff)
downloadstable-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.py2
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: