-
Notifications
You must be signed in to change notification settings - Fork 471
Error in "model.load_state_dict" : IncompatibleKeys #130
Comments
@aconneau please help |
Could you try to "git pull" once again and see if you still obtain this error? |
Same error. """InferSent attempt 4 (redo Facebook).ipynb I get an error with this IncompatibleKeys(missing_keys=[], unexpected_keys=[]) import os !git clone https://github.com/facebookresearch/InferSent --quiet #-# Download word vectors os.mkdir('GloVe') os.mkdir('fastText') #-# Download InferSent models os.mkdir('encoder') #-# Download NLTK tokeniser import nltk #-# Load Pre-trained models from InferSent.models import InferSent os.chdir('/content/InferSent') |
I am not able to reproduce your error. What you sent in the above message is the code of the ipython notebook but not the full error message. |
I am getting the following error: RuntimeError: Error(s) in loading state_dict for NLINet: |
I am trying to run the demo file available with InferSent on Google Colab but while doing so, in particular, the line
model.load_state_dict(torch.load(MODEL_PATH))
, I get the following errorI run the same demo file without change. Can you help me regarding this error?
The text was updated successfully, but these errors were encountered: