open-sesame icon indicating copy to clipboard operation
open-sesame copied to clipboard

Dimensionality Mismatch While Trying to Run Prediction

Open savan77 opened this issue 4 years ago • 7 comments

Hi,

Thanks for this work. I was trying to test on unannoatated data using the predict model. But, when I try to run the targetid, it throws following error. I think this has been reported before but not sure how to solve this. Also, I just downloaded the code and model so they are up to date. Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,400001}) Thanks

savan77 avatar Apr 14 '20 00:04 savan77

similar problem. I ran python -m sesame.targetid --mode predict --model_name fn1.7-pretrained-targetid --raw_input sentences.txt and get RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,400000})

zjxs1997 avatar Aug 27 '20 05:08 zjxs1997

Same error here. Did anyone resolve this issue? RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

heeh avatar Nov 03 '20 17:11 heeh

Same error here. Did anyone resolve this issue? RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

I've also met this problem, and it seems that the glove embeddings we use are not same as their pretrained model. Retrain this model on framenet data can solve this problem, but i got 'nan gradient' during train stage. Now i decided to ask them for their version of GloVe embeddings.

Zce1112zslx avatar Nov 07 '20 07:11 Zce1112zslx

@Zce1112zslx Thank you for figuring this out. I finally understand what's going on here.

heeh avatar Nov 08 '20 20:11 heeh

Facing the same issue. @heeh @Zce1112zslx, Can you please drop a note when it works for you?

@swabhs @sammthomson Would really appreciate your help!

ankushtale avatar Nov 09 '20 06:11 ankushtale

Same error here. Did anyone resolve this issue? RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050})

I've also met this problem, and it seems that the glove embeddings we use are not same as their pretrained model. Retrain this model on framenet data can solve this problem, but i got 'nan gradient' during train stage. Now i decided to ask them for their version of GloVe embeddings.

Hi, same issue! Have you obtained the GloVe embeddings?

jianliu-ml avatar Dec 30 '20 09:12 jianliu-ml

Not yet. And I can also not fixed the nan-gradient bug on retraining. I am now trying to add gradient-clip to their code. I will email you if I slove this promblem out. Thanks.

发送自 Windows 10 版邮件应用

发件人: jianliu-ml 发送时间: 2020年12月30日 17:35 收件人: swabhs/open-sesame 抄送: Zce1112zslx; Mention 主题: Re: [swabhs/open-sesame] Dimensionality Mismatch While Trying to RunPrediction (#48)

Same error here. Did anyone resolve this issue? RuntimeError: Dimensions of lookup parameter /_0 lookup up from file ({100,400574}) do not match parameters to be populated ({100,410050}) I've also met this problem, and it seems that the glove embeddings we use are not same as their pretrained model. Retrain this model on framenet data can solve this problem, but i got 'nan gradient' during train stage. Now i decided to ask them for their version of GloVe embeddings. Hi, same issue! Have you obtained the GloVe embeddings? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Zce1112zslx avatar Jan 02 '21 06:01 Zce1112zslx