Fix not working on old python.

This commit is contained in:
comfyanonymous 2024-08-07 17:41:17 -04:00
parent 380294e998
commit e520ce90cc

View File

@ -51,7 +51,7 @@ class ControlNetFlux(Flux):
txt_ids: Tensor,
timesteps: Tensor,
y: Tensor,
guidance: Tensor | None = None,
guidance: Tensor = None,
) -> Tensor:
if img.ndim != 3 or txt.ndim != 3:
raise ValueError("Input img and txt tensors must have 3 dimensions.")