Skip to content

Commit

Permalink
fix bugs in cogvideo patch_embed (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
xibosun authored Dec 18, 2024
1 parent 0cbdf4a commit b5fb784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xfuser/model_executor/layers/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ def forward(self, text_embeds: torch.Tensor, image_embeds: torch.Tensor):
]
pos_embedding = torch.cat(pos_embed_list, dim=1)

embeds[:, self.max_text_seq_length :] += pos_embedding
embeds[:, text_embeds.shape[1] :] += pos_embedding

return embeds

0 comments on commit b5fb784

Please sign in to comment.