mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-22 20:40:49 +08:00
Fix issue with batches and newbie. (#11435)
This commit is contained in:
parent
767ee30f21
commit
31e961736a
@ -625,7 +625,7 @@ class NextDiT(nn.Module):
|
|||||||
if pooled is not None:
|
if pooled is not None:
|
||||||
pooled = self.clip_text_pooled_proj(pooled)
|
pooled = self.clip_text_pooled_proj(pooled)
|
||||||
else:
|
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))
|
adaln_input = self.time_text_embed(torch.cat((t, pooled), dim=-1))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user