mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
work on convert-to-modular
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
import os
|
||||
from typing import TYPE_CHECKING
|
||||
import torch
|
||||
from modules import shared, errors, timer, prompt_parser_diffusers
|
||||
from modules import shared, errors, timer, prompt_parser_diffusers, processing_helpers
|
||||
from modules.logger import log
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -189,6 +189,9 @@ def set_prompt(p: StableDiffusionProcessing,
|
||||
args = set_fallback_prompt(args, possible, prompts=prompts, negative_prompts=negative_prompts, prompts_2=None, negative_prompts_2=None)
|
||||
prompt_attention = 'fixed'
|
||||
|
||||
if processing_helpers.is_modular():
|
||||
return prompt_attention, args
|
||||
|
||||
if 'prompt_embeds' not in args and 'negative_prompt_embeds' not in args: # pass secondary prompts as-in
|
||||
args = set_fallback_prompt(args, possible, prompts=None, negative_prompts=None, prompts_2=prompts_2, negative_prompts_2=negative_prompts_2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user