paarthneekhara / text-to-image

Text to image synthesis using thought vectors
MIT License
2.17k stars 398 forks source link

Data_Loader error in loading utable.npy for SkipThoughts #36

Open divyat09 opened 6 years ago

divyat09 commented 6 years ago

In data_loader.py, the command to load data from a npy file:

utable = numpy.load('utable.npy')

But this results in EOFError:

File "/home/divyat/anaconda2/lib/python2.7/site-packages/numpy/lib/npyio.py", line 419, in load pickle_kwargs=pickle_kwargs) File "/home/divyat/anaconda2/lib/python2.7/site-packages/numpy/lib/format.py", line 640, in read_array array = pickle.load(fp, **pickle_kwargs) EOFError

I don't understand the error, what is happening exactly. The numpy.load() method calls a pickle.load() function which causes error. The file utable.npy is a file used for generating text embeddings using skipthoughts. I downloaded the files using the link suggested in the repository from here:

https://github.com/ryankiros/skip-thoughts#getting-started

LBJYPY commented 6 years ago

do you solve this problem?