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 #9

Open
seahyinghang8 opened this issue May 1, 2019 · 3 comments

Comments

@seahyinghang8
Copy link
Contributor

After installing tensorflow, pandas and facenet to the code, the program still crashes. It prints out an extremely long error message, probably one for each core.

Print out right before the error:
Colocations handled automatically by placer.

Error:
Traceback (most recent call last):
File "/home/seahyh/.local/lib/python3.5/site-packages/scannerpy/kernel.py", line 105, in python_kernel_fn
result = kernel.execute(data)
File "/home/seahyh/.local/lib/python3.5/site-packages/scannerpy/op.py", line 556, in execute
return parse_ret(exec_fn(self, **args))
File "/home/seahyh/scannertools/scannertools/scannertools/face_detection.py", line 26, in execute
self.sess, os.path.dirname(align.file))
File "/home/seahyh/facenet/src/align/detect_face.py", line 283, in create_mtcnn
pnet.load(os.path.join(model_path, 'det1.npy'), sess)
File "/home/seahyh/facenet/src/align/detect_face.py", line 85, in load
data_dict = np.load(data_path, encoding='latin1').item() #pylint: disable=no-member
File "/home/seahyh/.local/lib/python3.5/site-packages/numpy/lib/npyio.py", line 447, in load
pickle_kwargs=pickle_kwargs)
File "/home/seahyh/.local/lib/python3.5/site-packages/numpy/lib/format.py", line 692, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

@willcrichton
Copy link
Member

What's the version of tensorflow and numpy?

@seahyinghang8
Copy link
Contributor Author

tensorflow==1.13.1
numpy==1.16.0

@willcrichton
Copy link
Member

Looks like an issue where facenet needs to get updated. For now, let's just enforce numpy==1.15.4.

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

2 participants