Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix issue with batches and newbie. (#11435)

comfyanonymous31e961736a47
diff --git a/comfy/ldm/lumina/model.py b/comfy/ldm/lumina/model.py
index 5628e2ba3..e80b1c138 100644
--- a/comfy/ldm/lumina/model.py
+++ b/comfy/ldm/lumina/model.py
@@ -625,7 +625,7 @@ class NextDiT(nn.Module):
if pooled is not None:
pooled = self.clip_text_pooled_proj(pooled)
else:
- pooled = torch.zeros((1, self.clip_text_dim), device=x.device, dtype=x.dtype)
+ pooled = torch.zeros((x.shape[0], self.clip_text_dim), device=x.device, dtype=x.dtype)
adaln_input = self.time_text_embed(torch.cat((t, pooled), dim=-1))