scannertools icon indicating copy to clipboard operation
scannertools copied to clipboard

ValueError: Object arrays cannot be loaded when allow_pickle=False

Open seahyinghang8 opened this issue 5 years ago • 3 comments

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

seahyinghang8 avatar May 01 '19 09:05 seahyinghang8

What's the version of tensorflow and numpy?

willcrichton avatar May 01 '19 16:05 willcrichton

tensorflow==1.13.1 numpy==1.16.0

seahyinghang8 avatar May 02 '19 02:05 seahyinghang8

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

willcrichton avatar May 02 '19 03:05 willcrichton