LouieYang / deep-photo-styletransfer-tf

Tensorflow (Python API) implementation of Deep Photo Style Transfer
805 stars 186 forks source link

Object arrays cannot be loaded when allow_pickle=False #28

Open Mr-Parth opened 5 years ago

YK921 commented 5 years ago

I recommend that numpy Ver 1.16.1

pip install numpy==1.16.1

antonioii commented 4 years ago

I've had the same issue, then I uninstalled the numpy version and installed the 1.16.1 as above

YK921 commented 4 years ago

Try it, import numpy as np np_load_old = np.load np_load = lambda *a, *k : np_load_old(a, allow_pickle=true, **k)

lironber commented 1 year ago

I also encountered that, and when tried the previous suggestion/allow_pickle=True, got:

File "/usr/local/lib/python3.6/dist-packages/numpy/lib/format.py", line 727, in read_array array = pickle.load(fp, **pickle_kwargs) _pickle.UnpicklingError: pickle data was truncated