paarthneekhara / text-to-image

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

generating images error #66

Open anudeekshith opened 4 years ago

anudeekshith commented 4 years ago

Traceback (most recent call last): File "encode_text.py", line 32, in main() File "encode_text.py", line 16, in main model = skipthoughts.load_model() File "/home/anu/Downloads/TAC-GAN-master/skipthoughts.py", line 60, in load_model utable, btable = load_tables() File "/home/anu/Downloads/TAC-GAN-master/skipthoughts.py", line 80, in load_tables utable = numpy.load(path_to_tables + 'utable.npy', encoding='bytes') File "/home/anu/.local/lib/python3.6/site-packages/numpy/lib/npyio.py", line 453, in load pickle_kwargs=pickle_kwargs) File "/home/anu/.local/lib/python3.6/site-packages/numpy/lib/format.py", line 739, in read_array raise ValueError("Object arrays cannot be loaded when " ValueError: Object arrays cannot be loaded when allow_pickle=False how to solve this this

halng commented 1 year ago

Change utable = numpy.load(path_to_tables + 'utable.npy', encoding='bytes') to utable = numpy.load(path_to_tables + 'utable.npy', encoding='bytes', allow_pickle=True)