paarthneekhara / text-to-image

Text to image synthesis using thought vectors
MIT License
2.16k stars 394 forks source link

unable to open pickle of skipthoughts #10

Closed Exception4U closed 7 years ago

Exception4U commented 7 years ago

XXX@XXX:~/codes/python_codes/text-to-image$ python generate_thought_vectors.py --caption_file="Data/sample_captions.txt" ['the flower shown has yellow anther red pistil and bright red petals'] Loading model parameters... Compiling encoders... Loading tables... Traceback (most recent call last): File "generate_thought_vectors.py", line 33, in main() File "generate_thought_vectors.py", line 23, in main model = skipthoughts.load_model() File "/home/tushar/codes/python_codes/text-to-image/skipthoughts.py", line 60, in load_model utable, btable = load_tables() File "/home/tushar/codes/python_codes/text-to-image/skipthoughts.py", line 80, in load_tables utable = numpy.load(path_to_tables + 'utable.npy') File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 406, in load pickle_kwargs=pickle_kwargs) File "/usr/local/lib/python2.7/dist-packages/numpy/lib/format.py", line 637, in read_array array = pickle.load(fp, **pickle_kwargs) EOFError

paarthneekhara commented 7 years ago

I guess you did not download data files required for skip-thought vectors. Follow the datasets instructions in the readme.