mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 17:41:06 +02:00
fix omnigen image placeholder
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -127,7 +127,7 @@ def set_pipeline_args(p, model, prompts: list, negative_prompts: list, prompts_2
|
||||
|
||||
if 'prompt' in possible:
|
||||
if 'OmniGen' in model.__class__.__name__:
|
||||
p.prompts = [p.replace('|image|', '<|image_1|>') for p in prompts]
|
||||
prompts = [p.replace('|image|', '<|image_1|>') for p in prompts]
|
||||
if hasattr(model, 'text_encoder') and 'prompt_embeds' in possible and len(p.prompt_embeds) > 0 and p.prompt_embeds[0] is not None:
|
||||
args['prompt_embeds'] = p.prompt_embeds[0]
|
||||
if 'StableCascade' in model.__class__.__name__ and len(getattr(p, 'negative_pooleds', [])) > 0:
|
||||
|
||||
Reference in New Issue
Block a user