fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

NameError: name 'BertEmbeddings' is not defined

Open Jiancong opened this issue 1 year ago • 5 comments

🐛 Bug

Meet BertEmbedding not defined bug

To Reproduce

Use this colab to repro https://colab.research.google.com/drive/1jnF0XTF12cB1pV5OUH_-jscMIJQDmKa1?usp=sharing

Code sample

Expected behavior

I need to run this code in https://github.com/facebookresearch/fairseq/tree/main/examples/MMPT as guided described

Environment

Additional context

Jiancong avatar Nov 13 '23 15:11 Jiancong

I have a similar problem with you. Have you resolved it?

MrHuangAm avatar Nov 15 '23 12:11 MrHuangAm

same problems here, was trying to use VideoCLIP and followed the readme in MMPT, and got the same error. would anyone give some advice? update: seems someone else provided a solution: https://github.com/facebookresearch/fairseq/issues/4347#issuecomment-1436478785

SystemErrorWang avatar Dec 06 '23 13:12 SystemErrorWang

这是来自黄彦浩的自动回复邮件。你好,你的邮件我已经收到

MrHuangAm avatar Dec 06 '23 13:12 MrHuangAm

Hi, this problem can be addressed by changing the following lines

Screenshot 2024-02-25 at 4 07 09 PM

I have applied some fix here :

https://github.com/MarkChenYutian/fairseq_SpaceQADepend/commit/8f0926631554933cfa899acec4f1184f4b4ac581

MarkChenYutian avatar Feb 25 '24 21:02 MarkChenYutian

这是来自黄彦浩的自动回复邮件。你好,你的邮件我已经收到

MrHuangAm avatar Feb 25 '24 21:02 MrHuangAm