we do not need to waste 10 seconds on T5 when CFG=1

This commit is contained in:
layerdiffusion
2024-08-08 00:19:16 -07:00
parent c00b45aa71
commit 396d9f378d
3 changed files with 10 additions and 2 deletions

View File

@@ -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,