Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Object arrays cannot be loaded when allow_pickle=False #39

Closed
Siddanth-pai opened this issue Feb 22, 2020 · 2 comments
Closed

Comments

@Siddanth-pai
Copy link

File "train_txt2im.py", line 458, in
main_train()
File "train_txt2im.py", line 133, in main_train
load_and_assign_npz(sess=sess, name=net_rnn_name, model=net_rnn)
File "train_txt2im.py", line 458, in
main_train()
File "train_txt2im.py", line 133, in main_train
load_and_assign_npz(sess=sess, name=net_rnn_name, model=net_rnn)
File "/home/siddanath/importantforprojects/text-to-image/utils.py", line 20, in load_and_assign_npz
params = tl.files.load_npz(name=name)
File "/home/siddanath/importantforprojects/text-to-image/tensorlayer/files.py", line 600, in load_npz
return d['params']
File "/home/siddanath/anaconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 262, in getitem
pickle_kwargs=self.pickle_kwargs)
File "/home/siddanath/anaconda3/lib/python3.7/site-packages/numpy/lib/format.py", line 722, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

@Siddanth-pai
Copy link
Author

Siddanth-pai commented Feb 22, 2020

My current numpy version is 1.17.2. Is this error due to the latest numpy version.

@Siddanth-pai
Copy link
Author

It turns out the problem is with the latest version of numpy. I suggest you downgrade the numpy version to 1.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant