mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-18 06:47:01 +08:00
Fix not working on old python.
This commit is contained in:
parent
380294e998
commit
e520ce90cc
@ -51,7 +51,7 @@ class ControlNetFlux(Flux):
|
|||||||
txt_ids: Tensor,
|
txt_ids: Tensor,
|
||||||
timesteps: Tensor,
|
timesteps: Tensor,
|
||||||
y: Tensor,
|
y: Tensor,
|
||||||
guidance: Tensor | None = None,
|
guidance: Tensor = None,
|
||||||
) -> Tensor:
|
) -> Tensor:
|
||||||
if img.ndim != 3 or txt.ndim != 3:
|
if img.ndim != 3 or txt.ndim != 3:
|
||||||
raise ValueError("Input img and txt tensors must have 3 dimensions.")
|
raise ValueError("Input img and txt tensors must have 3 dimensions.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user