mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-27 17:51:22 +00:00
we do not need to waste 10 seconds on T5 when CFG=1
This commit is contained in:
@@ -89,6 +89,9 @@ class ConditionConstant(Condition):
|
||||
|
||||
|
||||
def compile_conditions(cond):
|
||||
if cond is None:
|
||||
return None
|
||||
|
||||
if isinstance(cond, torch.Tensor):
|
||||
result = dict(
|
||||
cross_attn=cond,
|
||||
|
||||
Reference in New Issue
Block a user