Fix issue with batches and newbie. (#11435)

This commit is contained in:
comfyanonymous 2025-12-19 21:23:51 -08:00 committed by GitHub
parent 767ee30f21
commit 31e961736a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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