Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimensionality Mismatch While Trying to Run Prediction #48

Open
savan77 opened this issue Apr 14, 2020 · 7 comments
Open

Dimensionality Mismatch While Trying to Run Prediction #48

savan77 opened this issue Apr 14, 2020 · 7 comments

Comments

@savan77
Copy link

savan77 commented Apr 14, 2020

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

@zjxs1997
Copy link

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})

@heeh
Copy link

heeh commented Nov 3, 2020

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})

@Zce1112zslx
Copy link

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.

@heeh
Copy link

heeh commented Nov 8, 2020

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

@ankushtale
Copy link

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

@swabhs @sammthomson Would really appreciate your help!

@jianliu-ml
Copy link

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?

@Zce1112zslx
Copy link

Zce1112zslx commented Jan 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants