Closed jkamalu closed 5 years ago
By the way, I have also tried unpickling the state .pkl myself outside of PyTorch with Python 2 and Python 3 and get the same error.
This is a copy of #110 which has been closed but nonetheless unresolved. Looks like it's bad/old links. So, I'll keep this open.
Hey! Were you able to resolve this issue? I'm facing the same error :(
The infersent.pkl file is empty. That is why pickle isn't able to open it. They need to re-upload it.
@marcoaleixo check this out: #127
Hi there, I get an error when running the following demo code. Note that the model import works fine. I am using Python 3.6.8 and PyTorch 1.0.1.
infer_sent = InferSent({ 'bsize': 64, 'word_emb_dim': 300, 'enc_lstm_dim': 2048, 'pool_type': 'max', 'dpout_model': 0.0, 'version': 1 }) infer_sent.load_state_dict(torch.load("./InferSent/encoder/infersent1.pkl"))
Error w/stack trace:
UnpicklingError Traceback (most recent call last)