paarthneekhara / text-to-image

Text to image synthesis using thought vectors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data_Loader error in loading utable.npy for SkipThoughts

divyat09 opened this issue · comments

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

do you solve this problem?