FlagEmbedding icon indicating copy to clipboard operation
FlagEmbedding copied to clipboard

[BUG] about attention mask

Open zyk516 opened this issue 8 months ago • 0 comments

hello, i have a question. Could you help me ?

https://github.com/FlagOpen/FlagEmbedding/blob/master/research/visual_bge/visual_bge/modeling.py#L270,this line generate mask by cat mask of img and mask of txt. https://github.com/FlagOpen/FlagEmbedding/blob/master/research/visual_bge/visual_bge/modeling.py#L267,this line generate embedding by cat cls_token, img_embedding, txt_embedding without cls_token. The cat order of mask and embedding is diffrent. Is it right?

Thanks!

zyk516 avatar Apr 18 '25 08:04 zyk516